jonidunno Posted November 10, 2017 Share Posted November 10, 2017 I'm trying to delete points bases on the camera's origin. I have a vex script that was calculating the visibility: vector camera_dir = point(1,"P",1) - point(1,"P",0); f@vis = dot(@N,camera_dir); the problem is that it's based off of having two points from a ray sop. Can I just do it based off the camera origin itself? Any help would be amazing! Thanks, camOrigin01_v001.hip Quote Link to comment Share on other sites More sharing options...
Noobini Posted November 10, 2017 Share Posted November 10, 2017 but why not do it like this ? DeleteFromCamView.hipnc Quote Link to comment Share on other sites More sharing options...
Noobini Posted November 10, 2017 Share Posted November 10, 2017 here I've even done away with the Group...just do the N right in the Delete itself... 3 Quote Link to comment Share on other sites More sharing options...
jonidunno Posted November 10, 2017 Author Share Posted November 10, 2017 Thanks for the response, I'll take a look at it! Quote Link to comment Share on other sites More sharing options...
jonidunno Posted November 10, 2017 Author Share Posted November 10, 2017 53 minutes ago, Noobini said: here I've even done away with the Group...just do the N right in the Delete itself... It looks like this method only works when you do it directly from a prim. If you scatter points or do it from the ray it doesn't work. Quote Link to comment Share on other sites More sharing options...
Noobini Posted November 10, 2017 Share Posted November 10, 2017 (edited) that's coz it hasn't got N set yet. So here I initialize N, then delete geo but keep points with an Add, then Delete...works... Edited November 10, 2017 by Noobini 1 1 Quote Link to comment Share on other sites More sharing options...
jonidunno Posted November 10, 2017 Author Share Posted November 10, 2017 Thank you this is great! 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.