kim95616 0 Posted September 11, 2020 I want boolean outside camera area. How can i do? Share this post Link to post Share on other sites
ronit1996 2 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. Share this post Link to post Share on other sites
konstantin magnus 808 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 Share this post Link to post Share on other sites
Librarian 572 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 Share this post Link to post Share on other sites
konstantin magnus 808 Posted September 15, 2020 Alternatively transform a box into camera space and boolean intersect it with your geometry. frustum_cut_boole.hipnc Share this post Link to post Share on other sites
underscoreus 3 Posted September 17, 2020 Shameless plug... Quick walk through here mfb__geoculler__1_0.hdanc Share this post Link to post Share on other sites