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

Alberto Luaces aluaces at udc.es
Tue Jul 28 00:38:38 PDT 2015


sam writes:

> 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.

Hi Sam, osgWidgets works with 2D coordinates...

-- 
Alberto




More information about the osg-users mailing list