v_chernobay
Sept. 16, 2019 07:50:41
I faced with issue with instance rotation when I use “unity_instance” attribute (see attached video). It's problem appear when prefab has non-zero rotation in X axis.
If I use “instance” attribute issue don't appears.
Houdini version: 17.5.376
Unity version: 2018.4.4f1
squaredanced
Sept. 24, 2019 02:32:47
Hello! I have the same issue. We have a bunch of prefabs with non-zero rotation on x-axis (-90,0,0), and we can't fix them all 'cause it will mess up many levels that already been made. And we still need full control on rotation in our instanced prefabs. The issue ruins many of our assets. So we have two choices: we lose our prefabs and get predictable rotations, or we save our prefabs and rotations all messed up. We can accept none of these options. Files attached in the previous message illustrate the issue pretty clear. Please have a look at it. Thank you in advance.
seelan
Sept. 24, 2019 07:44:47
I'll investigate this. Thank you.
seelan
Sept. 24, 2019 21:26:10
This is fixed in Houdini 17.5.389 (tomorrow's daily build).
v_chernobay
Sept. 26, 2019 13:01:33
Thank you. Rotation by X axis works correct now. But rotation by axis Y and Z is changed among themselves. Instance rotates by Y axis when I rotate by Z axis. And rotates by Z when I rotate by Y.
In the HDA that I attached earlier, when switching between attributes “unity_instance” and “instance”, rotation mismatch is noticeable.
seelan
Oct. 1, 2019 16:59:48
I am not seeing this problem with your HDA.
v_chernobay
Oct. 2, 2019 02:18:49
I recorded video with problem.
seelan
Oct. 29, 2019 09:25:45
Fixed in 17.5.423+
v_chernobay
Oct. 29, 2019 09:48:36
Thank You!
v_chernobay
Oct. 30, 2019 05:54:09
Hi!
There is same bug but with scales. The Y and Z axes are also flipped.
In attachment I upload a new hda file in which the scales and flips are added for testing. And a new package with teapots to check flips.
Thanks!
seelan
Oct. 30, 2019 10:58:58
That is due to the prefab you are specifying for the unity_instance. In your screenshot, you are using the deform_90 version, which is rotated, so when you apply the scale it applies to the imported rotated prefab. If you change to the regular deform, it should work properly.