Exploded View in Z direction only

   1825   3   0
User Avatar
Member
45 posts
Joined: March 2017
Offline
Hello

I have a voronoi fracture of some pieces of a box, super simple set up. Now I would like to “explode” the pieces like the explodedview sop does but only in the z direction. The explodedview sop only explodes from the center axis out in all directions.

Anyone have a simple way of doing this?
User Avatar
Member
2528 posts
Joined: June 2008
Offline
Sure, what you can do is follow up the explodedview with an attributepointwrangle and copy the original X,Y coordinates over top the exploded view XY. Then only Z axis will be affected.

Attachments:
Untitled-1.jpg (222.5 KB)
ap_exploded_view_Z_ONLY.hiplc (134.2 KB)

Using Houdini Indie 20.0
Ubuntu 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
1736 posts
Joined: May 2006
Offline
pack your geo, try this in a point wrangle:

vector bb = relpointbbox(0,@P);
bb = fit(bb,0,1,-1,1);
@P.z += bb.z*ch('explode');

Attachments:
explode_z.gif (315.5 KB)

http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
45 posts
Joined: March 2017
Offline
Thanks both of you! I figured out something else with a pointvop but thanks! Its always great to see different ways of approaching a problem.
  • Quick Links