[osg-users] Window Position of Widget
I have a widget button--which is essentially a label--inside a widget box which is placed somewhere within a viewer, say at 100x150. This button should open up, right below it, a dropdown menu, which is another box. The issue I'm having is that if I use getOrigin() or getPosition() for the button, I get a value of 0,0 which is where it is placed relative to the origin of the window it is in. This causes an issue because the window that drops down below it needs the actual position of the button relative to the entire screen. Is there some way I can get this absolute position of the button origin? Or is there some other way I can get around this issue so I can get the dropdown window to actually be below my button? Thanks -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=37532#37532 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Transparent Viewers/Close Viewer
That worked beautifully! Thanks! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=36650#36650 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Imported Model Transparency
Hello, I have a scene with an OSG constructed 3d grid layout. I then import models I've created with Blender (in the .obj format) into the grid. When I view these things together, you can see the grid through the model, but you cannot see one model through another model. Is this a Blender issue? Or is there some way that I'm rendering the imported models incorrectly? Thanks -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=36654#36654 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Imported Model Transparency
Nevermind, solved. The issue was that I had the box's GL_DEPTH_TEST set to off. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=36658#36658 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Transparent Viewers/Close Viewer
So, along the same lines... One of these views contains a windowmanager that controls my 2D GUI that I want on top of the other views. Since my GUI is an L shape, with the main 3D view surrounded by the L, placing the GUI on top of the other views blocks off those views (since the view is a square), but placing the other views on top of the GUI view prevents me from placing GUI elements above those views... Is there a simpler way than just creating more views for GUI elements I want to sit on top of everything else? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=3#3 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Transparent Viewers/Close Viewer
Hello, I am currently building an application that uses multiple viewers within a composite viewer. Is there a way to make a viewer semi-transparent? Also, is there a way to temporarily close/reopen a viewer? Thanks -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=36602#36602 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org