Hi Nelson -- Given a world/eye coordinate distance from the eye, a
viewport, and a projection matrix, you can determine the world/eye
coordinate distance subtended by a single pixel by back-transforming
through the OpenGL transformation pipe. At a former employer, I used
such a technique to control the LOD of our rendered terrain.
Paul Martz
Skew Matrix Software LLC
_http://www.skew-matrix.com_ <http://www.skew-matrix.com/>
+1 303 859 9466
Cysneros, Nelson A CIV SPAWARSYSCEN-PACIFIC, 56510 wrote:
I'm trying to determine the given distance per pixel (or group of
pixels) on my scene.
I'm using an Intersection to get the World XYZ coordinates at a given
Screen XY point, then getting a second set of World XYZ coordinates
after incrementing the Screen point.
Then Calculating the distance between the two World XYZ coordinates.
Is there a better way of doing this?
Thanks
------------------------------------------------------------------------
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org