Hi All,
I want some help regarding computation of projected model co-ordinates.
The problem is like this. I have a cuboidal model (car). I have been able to
compute its bounding box -- so I know the world co-ordinates of the car bound
corners. The scene is being rendered to a texture with an image size of MxN
Pixels. I would like to calculate the image co-ordinates corresponding to the 8
bounding box corner co-ordinates. Is there any function available in OSG which
I can use to achieve this. If not, it would be very kind of you to indicate
some pointers on how to do it. I thought it would be as simple as multiplying
the model vectors by the osg::View::getCamera()->getViewMatrix() *
osg::View::getCamera()->getProjectionMatrix(), but I think I am missing
something.
Please Help. Thanks in advance.
Regards
Harash
---------------------------------
Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on,
when. _______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org