[osg-users] I made the libRocket GUI library usable with OSG

Robert Osfield robert.osfield at gmail.com
Sat Jan 7 04:36:13 PST 2017


HI Denis,

I cannot comment on specific of librocket.

If you want to use 2D elements in a 3D scene the standard way of doing
this is to use a Camera that sets the project and view matrices to
creates a 2D projection.  The osghud example illustrates how to do
this.  Perhaps this would be useful to you.

The other alternative is to simply use the OSG's native osgWidget NodeKit.

Robert.

On 7 January 2017 at 12:15, Denis Colesnicov <eugustus at gmail.com> wrote:
> Hi Robert,
>
> Implementation librocket, which are published them in order. Problem is only in the GUI display is on the node that rotates around the axis XYZ. Myself but needs to appear as a 2D GUI, something like over the base OSG viewport. I should if you would like to display scores and other information in the game, so I do not want the information to be rotated in any direction but to always shows at front. Of course this applies also to menus, settings, etc. ... OSG'm not so good, I learn, so do not know how do I do this. I tried to add another camera and to hang it on the GUI but I failed. It is surprisingly interesting that any other GUI has a problem with that it is not possible, or is it difficult to implement 3D as a way librocket again not possible to implement a 2D? Due to poor English and lack of tutorial and guidance in my language, I do not fail. Should you ever been so good and tried to advise how to do it, it would be cool.
>
> Thank you!
>
> Cheers,
> Denis
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=69914#69914
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list