instance pos wrong

   2458   3   0
User Avatar
Member
25 posts
Joined: 7月 2018
Offline
I use a heightfield_scatter to scatter some instance.
Because heightfield self contain two point,


when use

if (!HEU_GeneralUtility.GetArray3Arg(_geoID, _partID, HAPI_RSTOrder.HAPI_SRT, session.GetInstanceTransformsOnPart, instanceTransforms, 0, numInstances))

HEU_PartData.cs line 776
to get instance pos, the first two instance pos is zero.


Is this a bug or i set something wrong?
Thanks.
Edited by ChenA - 2019年11月28日 05:41:16

Attachments:
houdini_instance.png (14.6 KB)

User Avatar
Member
3 posts
Joined: 2月 2019
Offline
Same problem, I took hours to identity this bug, apparently, GetInstanceTransformsOnPart returns transforms started from ALL points regardless “part” index, as a workaround I have to add a “Sort” to have instanced point attributes sorted before other heightfield layers primitives.

I tested on Houdini 17.5.173, 18.0.287, all no luck. BTW, where can I report a bug to SideFX?

Attachments:
GetInstanceTransformsOnPart_Bug.png (67.6 KB)

User Avatar
スタッフ
2491 posts
Joined: 9月 2007
Offline
imskull
BTW, where can I report a bug to SideFX?

https://www.sidefx.com/forum/topic/38188/ [www.sidefx.com]
Chris McSpurren
Senior Quality Assurance Specialist
SideFX
User Avatar
Member
3 posts
Joined: 2月 2019
Offline
chrism
imskull
BTW, where can I report a bug to SideFX?

https://www.sidefx.com/forum/topic/38188/ [www.sidefx.com]

Reported, thanks.
  • Quick Links