How to display local coordinate gnomon of packed prim?
1873 5 2- jerry7
- Member
- 652 posts
- Joined: Nov. 2013
- Offline
- mestela
- Member
- 1804 posts
- Joined: May 2006
- Offline
There must be an easier way than this, but figured I'd share my method...
I like stealing tricks from kinefx. The rigpose node is a nice neat way of showing local transforms, I've used it to manipulate independent points, then copy packed geo onto them.
Here I tried it in reverse. Works, but a little fiddly, I couldn't find a sop node to extract the packed transform to instance attributes. A few things got close, but weren't quite right.
So, shapes -> assemble + pack -> transform
Then a wrangle to get the transform as a matrix3:
And that to a rigpose, you'll see little gnomons to show the axis. You can use the same trick to extract an orient...
...and then use a regular visualiser to see the axis, except of course the viewport won't let you use visualisers over packed geo. If you extract the points you'll see them. Rigpose is easier.
Bonus points for then copying the original packed geo onto the rigpose points, but didn't want to over complicate the example.
I like stealing tricks from kinefx. The rigpose node is a nice neat way of showing local transforms, I've used it to manipulate independent points, then copy packed geo onto them.
Here I tried it in reverse. Works, but a little fiddly, I couldn't find a sop node to extract the packed transform to instance attributes. A few things got close, but weren't quite right.
So, shapes -> assemble + pack -> transform
Then a wrangle to get the transform as a matrix3:
3@transform = matrix3(getpackedtransform(0,@ptnum));
And that to a rigpose, you'll see little gnomons to show the axis. You can use the same trick to extract an orient...
@orient = quaternion(matrix3(getpackedtransform(0,@ptnum)));
...and then use a regular visualiser to see the axis, except of course the viewport won't let you use visualisers over packed geo. If you extract the points you'll see them. Rigpose is easier.
Bonus points for then copying the original packed geo onto the rigpose points, but didn't want to over complicate the example.
- Mohanpugaz
- Member
- 146 posts
- Joined: June 2016
- Offline
Matt's solution is great and to add to that,
I will use this button here to visualize the gnomon, i havent realized that button exists for a long time when i started with Houdini. so sharing for someone who might not know this.
I will use this button here to visualize the gnomon, i havent realized that button exists for a long time when i started with Houdini. so sharing for someone who might not know this.
Mohan Pugaz
movfx
https://www.instagram.com/movfx/ [www.instagram.com]
https://www.youtube.com/channel/@_movfx
movfx
https://www.instagram.com/movfx/ [www.instagram.com]
https://www.youtube.com/channel/@_movfx
- mestela
- Member
- 1804 posts
- Joined: May 2006
- Offline
- mestela
- Member
- 1804 posts
- Joined: May 2006
- Offline
flowerpeaceful
So, to display the local coordinate frame gnomon of the packed primitive, you just gotta dive into the node called "packedprim_geo" and enable the "Display Local Coordinates" option. Easy-peasy, right? Let me know if you need any more help, dude!
I'm an idiot, where is this option? I can't see a 'packedprim_geo' node in my tab menu. Went looking in the display options, can't see anything for packed geo there either...
- tamte
- Member
- 8839 posts
- Joined: July 2007
- Offline
mestelawelcome to the world of hallucinated AI answers, fun times aheadflowerpeaceful
So, to display the local coordinate frame gnomon of the packed primitive, you just gotta dive into the node called "packedprim_geo" and enable the "Display Local Coordinates" option. Easy-peasy, right? Let me know if you need any more help, dude!
I'm an idiot, where is this option? I can't see a 'packedprim_geo' node in my tab menu. Went looking in the display options, can't see anything for packed geo there either...
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
-
- Quick Links