Jump to content

Boolean outside camera area?


kim95616

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.

Link to comment
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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...