How to use the osgUI

28 views
Skip to first unread message

breakwall lon

unread,
Jan 17, 2020, 4:19:57 AM1/17/20
to OpenSceneGraph Users

I can't found the example for osgUI on internet.

How to use the osgUI?

like osgUI::Pushbutton, osgUI::ComboBox and so on.

I want to help.



Robert Osfield

unread,
Jan 21, 2020, 5:55:49 AM1/21/20
to OpenSceneGraph Users

The osgUI NodeKit was written to be used from C++ and/or Lua script.  During development the primary focus was on making sure it was functional via Lua script and as part of Present3D presentations (see OpenSceneGraph/applicaton/present3D).

Due to the focus on Lua script usage I didn't write any C++ examples, instead it was all done via Lua scripts.  There a couple of Lua scripts in the OpenSceneGraph-Data/ui directory that illustrate it in action.  For example try:

     osgviewer ~/Data/OpenSceneGraph-Data/ui/TabWidget.lua.90,0,0.rot 

Note the 90,0.0.rot uses a psuedo plugin to rotate the widget that is on the XY plane by default to the XZ plane to fit with the OSG default viewing orientation (X to the east/right, Y north/forward, Z up).

The project that funded this work, after the end of the project I haven't had time have time to further develop.
Reply all
Reply to author
Forward
0 new messages