Hi!!!
Someone have an example or technique of how to fetch the exact frustrum handle of the camera to convert in geometry for clipping purposes?
Thanks.
Camera Frustrum Handle Geometry
7695 2 1- Alejandro Echeverry
- Member
- 691 posts
- Joined: June 2006
- Offline
Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
- axebeak
- Member
- 51 posts
- Joined: Oct. 2006
- Offline
Not sure if the handle geometry can be accessed somehow, but frustum representation suitable for culling or clipping can be easily calculated from the camera parameters directly.
For perspective camera see the attached example, there are 5 Python SOPs:
“Make Frustum” calculates the corner points;
“Cull AABB” - fast culling check for boxes (plane “sidedness”);
“Cull AABB Ex” - exact culling test for axis-aligned boxes;
“Cull Sphere” - fast sphere culling;
“Cull Sphere Ex” - exact sphere culling;
Note that the sphere and the box in the scene are positioned so that they are marked as visible (green) by the fast tests, but culled by the exact versions.
For perspective camera see the attached example, there are 5 Python SOPs:
“Make Frustum” calculates the corner points;
“Cull AABB” - fast culling check for boxes (plane “sidedness”);
“Cull AABB Ex” - exact culling test for axis-aligned boxes;
“Cull Sphere” - fast sphere culling;
“Cull Sphere Ex” - exact sphere culling;
Note that the sphere and the box in the scene are positioned so that they are marked as visible (green) by the fast tests, but culled by the exact versions.
- Alejandro Echeverry
- Member
- 691 posts
- Joined: June 2006
- Offline
Thank you very much.
Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
-
- Quick Links