Delete occluded geo from animated camera

   821   4   1
User Avatar
Member
385 posts
Joined: 7月 2018
Offline
I have an animated camera going through a large model. How could i remove all geo that is never seen by the camera for the entire frame range?

i know this needs a solver for one and also maybe the intersect function. Shooting from the camera to each point if we find an intersection then its occluded but later it might not be. If its not then hit=-1. So if i multiplied every frame the hit value with the new one if the end result is negative it means the camera saw the geo at least once so i keep it.

Does this sound reasonable or is there some other easier way to do this?
User Avatar
Member
133 posts
Joined: 3月 2016
Offline
This -> ? https://www.youtube.com/watch?v=yweaCsLepXE [www.youtube.com]
Love Houdini
User Avatar
Member
385 posts
Joined: 7月 2018
Offline
yeah that method assigns a uv value even to occluded geo unfortunately as long as it is in the frame somewhere
User Avatar
Member
4513 posts
Joined: 2月 2012
Offline
I did this many times in production where I generally scatter points on faces to get more uniform raytracing towards the camera in a solver sop and if it ever not hit anything for any of its points, then I keep those faces.
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 | animatrix2k7.gumroad.com
User Avatar
Member
385 posts
Joined: 7月 2018
Offline
animatrix_
I did this many times in production where I generally scatter points on faces to get more uniform raytracing towards the camera in a solver sop and if it ever not hit anything for any of its points, then I keep those faces.

Something like this?

Attachments:
delete_camera_occluded.hiplc (418.0 KB)

  • Quick Links