Jump to content
Sign in to follow this  
kim95616

Boolean outside camera area?

Recommended Posts

what do you mean by boolean outside camera area? if you are talking about removing all objects that are outside camera frustum then you have to get the camera frustum by some method (using volume or calculating it via vex or vops) and then use it with your geo in the boolean node.

Share this post


Link to post
Share on other sites
vector _ndc = toNDC("/obj/cam1", @P);

float _ox=ch("ox");
float _oy=ch("oy");
float _oz=ch("oz");

if ((_ndc[0]<0-_ox)||(_ndc[0]>1+_ox)) removepoint(geoself(), @ptnum);
if ((_ndc[1]<0-_oy)||(_ndc[1]>1+_oy)) removepoint(geoself(), @ptnum);
if ((_ndc[2]>0+_oz)) removepoint(geoself(), @ptnum);

 

 

157_CameraClipWrangle_v01.gif

Edited by Librarian
  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×