hi everyone.
i want to create a group of points that i view in each frame or a group of points that are in front of camera.
does Houdini have a tools or trick to do that?
select points in front of camera
8943 5 2- Mohsen_Tabasi
- Member
- 53 posts
- Joined: June 2009
- Offline
- keyframe
- Member
- 1529 posts
- Joined: July 2005
- Offline
- Mohsen_Tabasi
- Member
- 53 posts
- Joined: June 2009
- Offline
that's nice, but has a problem.
points that are in back of the camera, selected too :shock:
like this :
http://www.freeimagehosting.net/image.php?57c27dc12b.jpg [freeimagehosting.net]
points that are in back of the camera, selected too :shock:
like this :
http://www.freeimagehosting.net/image.php?57c27dc12b.jpg [freeimagehosting.net]
- old_school
- Staff
- 2540 posts
- Joined: July 2005
- Offline
This expression works:
$MAPU>0&&$MAPU<1 && $MAPV>0&&$MAPV<1 && $MAPW>0&&$MAPW<1
You also have to manage the w depth component (which is “real” handy btw).
Make sure that the UV Texture SOP is set to point mode and the same for the Group SOP that this expression is being typed in to.
All the points in the camera frustrum should be picked up with this expression. Try feeding in a box SOP with a lot of divisions.
$MAPU>0&&$MAPU<1 && $MAPV>0&&$MAPV<1 && $MAPW>0&&$MAPW<1
You also have to manage the w depth component (which is “real” handy btw).
Make sure that the UV Texture SOP is set to point mode and the same for the Group SOP that this expression is being typed in to.
All the points in the camera frustrum should be picked up with this expression. Try feeding in a box SOP with a lot of divisions.
There's at least one school like the old school!
- Mohsen_Tabasi
- Member
- 53 posts
- Joined: June 2009
- Offline
- cool1986vfx
- Member
- 26 posts
- Joined: Dec. 2010
- Offline
-
- Quick Links