[osg-users] 2d Rectangle to 3d position

sam brkopac at gmail.com
Mon Jul 27 12:30:00 PDT 2015


Hi All,

I have a gui that I'm trying to convert over to the osgWidget system and
I'm having an issue with understanding exactly how this will work. My 2d
elements are stored as:

rect = left, top, right, bottom
rect = 0,449,640,480;

How would I go about converting the above into the proper 3d points to pass
to the add widget? Do I need to translate 2d screen space into some 3d
coordinates, or?.... I feel like I'm missing something fundamental.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150727/36539ec1/attachment-0002.htm>


More information about the osg-users mailing list