[osg-users] Testing osgUI library

Robert Osfield robert.osfield at gmail.com
Tue Jan 5 02:52:20 PST 2016


Hi Rocio,

I haven't yet had a chance to test the example (it's holidays here :-)
but in principle it should be possible to use osgUI within a HUD as
well as in the 3D scene.  One of the motivations for developing osgUI
was the need to have a GUI in a 3D scene with full stereo rendering
(HMD's and powerwalls) so this is where I've done all the testing.

My best guess for why it isn't working in the HUD case is a precision
issue with the intersection routines. As a test try rotating the GUI
very slightly so it has some depth rather being planner.  If this gets
things working then we know that it's an issue with intersection tests
and these need to be adapted to handle the planar HUD case.

Robert.

On 23 December 2015 at 12:12, Rocio Tortajada
<rocio.tortajada at mirage-tech.com> wrote:
> Hi!
>
> I've tried the osgUI library. I loaded the TabWidget.lua from the osg-data
> into the scene and when I clicked on the tabs it worked as expected
>
> The problem arises when I added the TabWidget in the HUD camera, as far as
> we tested the intersections to the widget seems not to be working. Is the
> osgUI library supporting HUD cameras?  Are we missing something?
>
> Find attached an example with my test code, on the left of the scene there
> is a 3D TabWidget and on the right there is a TabWidget inside the HUD
> camera. The test is very simple, but  if you find it interesting it can be
> added to the OSG examples.
>
> Thank you!
>
> Rocío
>
> _______________________________________________
> 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