Jump to content

Delete Points based on Camera Origin


Recommended Posts

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! 




Link to comment
Share on other sites

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.

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.

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...