kim95616 Posted September 11, 2020 Share Posted September 11, 2020 I want boolean outside camera area. How can i do? Quote Link to comment Share on other sites More sharing options...
ronit1996 Posted September 11, 2020 Share Posted September 11, 2020 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. Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted September 15, 2020 Share Posted September 15, 2020 Hi Kim, the volume node can create the camera's frustum, which can be transferred to point attributes for poly-cutting. frustum_cut.hipnc Quote Link to comment Share on other sites More sharing options...
Librarian Posted September 15, 2020 Share Posted September 15, 2020 (edited) 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); Edited September 15, 2020 by Librarian 2 Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted September 15, 2020 Share Posted September 15, 2020 Alternatively transform a box into camera space and boolean intersect it with your geometry. frustum_cut_boole.hipnc Quote Link to comment Share on other sites More sharing options...
underscoreus Posted September 17, 2020 Share Posted September 17, 2020 Shameless plug... Quick walk through here mfb__geoculler__1_0.hdanc Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.