Hi im in houdini with a geometry that has a texture.
i render with a camera that has transform information such as translate, rotate, also the pixel aspect, focal lenght and aperture etc
i render in 1920 x 1080
if i know the geometry points position in the 3d scene, how can i calculate in which coordenates in 2D 1920x1080 those points gonna finish at?
3d coordinates of the scene to 2d image coordinates
2608 2 1- traiano
- Member
- 20 posts
- Joined: Dec. 2011
- Offline
- jsmack
- Member
- 7803 posts
- Joined: Sept. 2011
- Offline
Depending on what context you need to compute the screen coordinates, you can use these functions/vops:
http://www.sidefx.com/docs/houdini/vex/functions/toNDC [www.sidefx.com]
https://www.sidefx.com/docs/houdini/nodes/vop/tondc [www.sidefx.com]
https://www.sidefx.com/docs/houdini/nodes/vop/tondcgeo [www.sidefx.com]
and to go the other way:
http://www.sidefx.com/docs/houdini/vex/functions/fromNDC [www.sidefx.com]
https://www.sidefx.com/docs/houdini/nodes/vop/fromndc [www.sidefx.com]
https://www.sidefx.com/docs/houdini/nodes/vop/fromndcgeo [www.sidefx.com]
http://www.sidefx.com/docs/houdini/vex/functions/toNDC [www.sidefx.com]
https://www.sidefx.com/docs/houdini/nodes/vop/tondc [www.sidefx.com]
https://www.sidefx.com/docs/houdini/nodes/vop/tondcgeo [www.sidefx.com]
and to go the other way:
http://www.sidefx.com/docs/houdini/vex/functions/fromNDC [www.sidefx.com]
https://www.sidefx.com/docs/houdini/nodes/vop/fromndc [www.sidefx.com]
https://www.sidefx.com/docs/houdini/nodes/vop/fromndcgeo [www.sidefx.com]
- traiano
- Member
- 20 posts
- Joined: Dec. 2011
- Offline
-
- Quick Links