Rotation instance issue with unity_instance attribute

   4943   10   1
User Avatar
Member
17 posts
Joined: Jan. 2013
Offline
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

Attachments:
rotation_issue.mp4 (3.0 MB)
rotation_issue.hda (21.8 KB)
teapots_package.unitypackage (246.1 KB)

User Avatar
Member
12 posts
Joined: Aug. 2017
Offline
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.
Edited by squaredanced - Sept. 24, 2019 04:41:42
User Avatar
Member
571 posts
Joined: May 2017
Offline
I'll investigate this. Thank you.
User Avatar
Member
571 posts
Joined: May 2017
Offline
This is fixed in Houdini 17.5.389 (tomorrow's daily build).
User Avatar
Member
17 posts
Joined: Jan. 2013
Offline
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.
User Avatar
Member
571 posts
Joined: May 2017
Offline
I am not seeing this problem with your HDA.
User Avatar
Member
17 posts
Joined: Jan. 2013
Offline
I recorded video with problem.

Attachments:
rotation_problem_002.mp4 (1.8 MB)

User Avatar
Member
571 posts
Joined: May 2017
Offline
Fixed in 17.5.423+
User Avatar
Member
17 posts
Joined: Jan. 2013
Offline
Thank You!
User Avatar
Member
17 posts
Joined: Jan. 2013
Offline
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!

Attachments:
scale_issue_001.PNG (104.7 KB)
scale_issue_002.PNG (107.7 KB)
teapots_deform_package.unitypackage (103.1 KB)
rotation_issue.hda (33.2 KB)

User Avatar
Member
571 posts
Joined: May 2017
Offline
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.
  • Quick Links