Instancing Leaves orientation / transformation issue

   1339   1   0
User Avatar
Member
2 posts
Joined: July 2020
Online
Hello,

I am new to Houdini and having a really difficult time trying to instance my leaves from a tree model I created inside Speedtree. I am importing the speedtree model as an alembic.

1. I have pulled the transformation matrix and promoted them to points, however when I copy grid to points the transformation is repeating the same number over every point leaving me with no transformation.
Image Not Found



2. I have pulled the orient attribute to points used a for each loop to extract points and packed inside the loop, this way gets me closer, some transformation but it is not the same as the original orientation.

Image Not Found



Attachments:
Screen Shot 2021-05-30 at 8.08.07 PM.png (1.8 MB)
Screen Shot 2021-05-30 at 8.07.55 PM.png (1.5 MB)
Screen Shot 2021-05-30 at 6.52.50 PM.png (379.1 KB)

User Avatar
Member
52 posts
Joined: June 2016
Offline
Hi,
I think you should try first to convert your "transform" matrix into quaternion and get an @orient attribute on points
Try to do this in VOP or VEX

take a look at this maybe :
https://www.sidefx.com/docs/houdini/nodes/vop/matxtoquat.html [www.sidefx.com]

https://www.sidefx.com/docs/houdini/vex/functions/quaternion [www.sidefx.com]

you can find as well interesting stuff here : https://www.tokeru.com/cgwiki/index.php?title=JoyOfVex17#Orient_via_matrix [www.tokeru.com]
  • Quick Links