Hide pop object until it collide with the grid
851 1 0- medieval_cortex
- Member
- 7 posts
- Joined: Feb. 2019
- Offline
I'm loosely following this tutorial: https://www.youtube.com/watch?v=zgZoWYYWzeE&list=PLiavqwl4YqPirG3qYsI-n95t55y05CUVJ [www.youtube.com]
I'd like to hide the lines until they collide with the grid. The ‘pop collision detect’ seems to output a Hit Num Attribute as shown in the screenshot but I have no idea how to use that data to hide the lines. Specifically I'd like to hide the points inside the line, I wouldn't want the whole line to pop in existence as soon as it touch the ground if possible (unless it makes things a lot more complex, then I'll be fine with this haha).
Thank you,
and obviously I'm very new to this.
- Enivob
- Member
- 2536 posts
- Joined: June 2008
- Offline
You could try setting the @Alpha attribute based upon hitnum. It might not hide it in the viewport, but with the correct material, it should work for the render.
Otherwise, perhaps try carving the line based upon the hit count..?
f@Alpha = 0.0; if (@hitnum>0) {f@Alpha = 1.0;}
Otherwise, perhaps try carving the line based upon the hit count..?
Edited by Enivob - Dec. 20, 2019 09:22:40
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
-
- Quick Links