For an object ,how to use a camera to cut it ?

   1708   3   1
User Avatar
Member
5 posts
Joined: June 2015
Offline
Just keep part of inside the camera area ,and remove part of outside the camera area.

Similar with Project SOP node.
User Avatar
Member
1794 posts
Joined: May 2006
Offline
Co-worker shared this cunning trick with me recently;

uvtexture sop, project uv's from camera.

You can then use a wrangle to remove points that aren't within the 0-1 uv range, eg:


float u = @uv;
float v = @uv;

if (u<0 || u>1) {
removepoint(0, @ptnum);
}

if (v<0 || v>1) {
removepoint(0, @ptnum);
}

Attachments:
delete_outside_frustum.hipnc (227.7 KB)

http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
459 posts
Joined: Oct. 2011
Offline
Great tip!

-b
http://www.racecar.no [www.racecar.no]
User Avatar
Member
5 posts
Joined: June 2015
Offline
thank you ,mestela.
I find this tool,https://www.orbolt.com/asset/vosiloB_::Clip_Camera?show_login [orbolt.com]
this is what I need.
  • Quick Links