Hi,
I am trying to isolate the points of a point cloud that are visible from a camera. With ray/intersect/intersect_all nodes only work with primitives, so I though is there is any way to intersect on points (maybe making them bigger or thickening the ray?) other than create a primitive per point with a copy node, which slows things down quite a bit.
I was wondering if there is any way to access the OpenGL buffer of the viewport, as the occlusion works there if you scale up the point size in the Display Options>Point Size.
Thanks!
Point cloud self occlusion/hide from camera view
3973 7 0- perpen
- Member
- 60 posts
- Joined: 4月 2006
- Offline
- arjanM
- Member
- 28 posts
- Joined: 11月 2013
- Online
- perpen
- Member
- 60 posts
- Joined: 4月 2006
- Offline
- arjanM
- Member
- 28 posts
- Joined: 11月 2013
- Online
The extra prims where somewhat of a work around to get the correct pscale values.
It was meant more as an example to use the uvtexture to flatten the point cloud in camera space and then use the pcfind function to remove points.
I made an example without the extra prims and just divided one by the old pscale and then I needed to multiply it by 1.7 to make it work. I don't know the correct math to do this, but it works and it is quite fast.
It was meant more as an example to use the uvtexture to flatten the point cloud in camera space and then use the pcfind function to remove points.
I made an example without the extra prims and just divided one by the old pscale and then I needed to multiply it by 1.7 to make it work. I don't know the correct math to do this, but it works and it is quite fast.
- perpen
- Member
- 60 posts
- Joined: 4月 2006
- Offline
- animatrix_
- Member
- 4549 posts
- Joined: 2月 2012
- Offline
I created a free scene that deletes points from a camera view using occlusion in a point cloud with variable radius, without instancing actual geometry:
Because of the perspective distortion, it might look like there are overlapping points but I added a planar camera projection preview mode that shows that no point is actually overlapping.
https://www.patreon.com/posts/19277999 [www.patreon.com]
Because of the perspective distortion, it might look like there are overlapping points but I added a planar camera projection preview mode that shows that no point is actually overlapping.
https://www.patreon.com/posts/19277999 [www.patreon.com]
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
- perpen
- Member
- 60 posts
- Joined: 4月 2006
- Offline
- RobertHellersdorf
- Member
- 3 posts
- Joined: 6月 2021
- Offline
-
- Quick Links