In some cases spawned gameobjects do not match geometry spreadsheet data

   1908   4   0
User Avatar
Member
29 posts
Joined: Sept. 2017
Offline
Hi,

i spawned several trees and rocks with the help of a scatter and a point wrangle (to set prefab instance and rotation) node. In unity some trees (small rotation of x- and z-axis, full rotation on y-axis) are rotated like rocks (random rotation of all axis).

I compared the rotation data in unity and houdini and it is different. What can cause this behaviour?





Thanks,
daschatten
Edited by chrism - July 30, 2019 12:07:04

Attachments:
Houdini - Object Spawn 01.png (1.6 MB)
Houdini - Object Spawn 02.png (29.6 KB)
Houdini - Object Spawn 03.png (62.6 KB)

User Avatar
Member
29 posts
Joined: Sept. 2017
Offline
I did some more tests and it looks like there is something wrong with the conversion logic in the engine:

1. Scatter some points, add “unity_instance” and “instance_prefix” to some of them. Result is having e.g. trees without instance prefix. -> Seems wrong



2. Scatter some points, add “unity_instance” to all of them (some with invalid prefab name “remove”). Result is having trees, rocks and empty gameobjects. -> Seems ok



3. Scatter some points, add “unity_instance” to all of them (some with invalid prefab name “remove”) but now remove all points with unity_instance==“remove”. Result is having trees and rocks only. –> Seems ok



But in all cases i still got wrongly rotated trees. I even found a tree which should be a rock (assuming ids match: 3470 in this case):


Attachments:
Houdini - Object Spawn 04.png (74.1 KB)
Houdini - Object Spawn 05.png (33.8 KB)
Houdini - Object Spawn 06.png (61.3 KB)
Houdini - Object Spawn 07.png (3.1 MB)
Houdini - Object Spawn 08.png (152.4 KB)

User Avatar
Member
571 posts
Joined: May 2017
Offline
Need some more information to debug this issue.

Does the rotation bug show up only when combining trees and rocks in the same scatter? Do you get correct rotation for the trees if you only have trees?

How are you setting the tree and rocks values to your scatter points in your HDA network? Is it through 2 scatter nodes, or a single scatter with groups? Can you post a screenshot of it?

Can you provide a simple HDA that produces the problem so I can debug it here?

Would be great if you can submit this via our bug system so we can track it. Thanks.
User Avatar
Member
29 posts
Joined: Sept. 2017
Offline
seelan
Need some more information to debug this issue.

Does the rotation bug show up only when combining trees and rocks in the same scatter? Do you get correct rotation for the trees if you only have trees?

How are you setting the tree and rocks values to your scatter points in your HDA network? Is it through 2 scatter nodes, or a single scatter with groups? Can you post a screenshot of it?

Can you provide a simple HDA that produces the problem so I can debug it here?

Would be great if you can submit this via our bug system so we can track it. Thanks.

I just put together a HDA with the three use cases from my second post. But case three refused to work, it removed the terrain somehow. But this showed me something interesting… without a terrain the rotation is correct!

I attached the asset with a sample network to test. If you toggle the blast nodes you see that the rotation changes with/without terrain.

Will submit a bug report now…
Edited by daschatten - July 10, 2019 11:23:11

Attachments:
Houdini - Object Spawn Network.png (55.4 KB)
Scatter_Test.hdalc (41.8 KB)

User Avatar
Member
2 posts
Joined: July 2019
Offline
Hi,

i'm fairly new to Houdin too,Could you provide me with a simple HDA file of scattering for can be used in Unity?

Thanks
  • Quick Links