[osg-users] osgUI details or examples
Robert Osfield
robert.osfield at gmail.com
Sun Nov 29 11:22:03 PST 2015
Hi Árpi,
osgUI is an independent development to osgWidget so you won't need the
osgWidget::WindowManager at all. osgUI's advantage over osgWidget is that
it can be used within 3D scene - something required for stereo applications
that require UI and support for scripting of both the creating and
behaviours of the UI. However is quite new and not all the features have
been fully fleshed out/debugged, and the documentation lags behind as
well.
Most of the dev work I did on osgUI I used lua scripts to implement the UI
so it might be best to look at the lua scripts in OpenSceneGraph-Data/ui
directory to see examples of osgUI + lua in action. OSG-3.4 has lua
support built into it via the lua plugin that integrates Lua 5.2 sources
directly in the plugin.
Robert.
On 29 November 2015 at 15:59, Horváth Árpád <horvatha4 at googlemail.com>
wrote:
> Hi,
>
> Where can I find some details or examples about the new (?) osgUI
> namespace? Its look like interesting for me.
> I tried this code but nothing appeared:
>
> _wm = new osgWidget::WindowManager(...);
> ...
> _testbox = new osgUI::ComboBox();
> _testbox->addItem( new osgUI::Item("valami") );
> _testbox->addItem( new osgUI::Item("semmi") );
> _testbox->addItem( new osgUI::Item("akármi") );
> _wm->addChild( _testbox );
>
>
> Thank you!
>
> Cheers,
> Árpi
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=65788#65788
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20151129/4e5c20e9/attachment-0003.htm>
More information about the osg-users
mailing list