On Jul 3, 2008, at 11:06 AM, Abhishek Seth wrote:
Hi !I am having problems with how models look when loaded in my Application. I am using OSGNav Sample program from VR Juggler 2.2.1 with OSG 2.4. Juggler uses osgUtil::SceneView but does not use osgViewer::.When I load the file in OsgViewer it looks great; however in Juggler's OSGNav it looks awful (the colors get washed out). I suspect this is related to how Juggler is handling the Materials and Lighting while rendering the model. I have spent a fair amount of time working through osgviewer.exe in the debuger to try to determine the what it is doing with lighting. It seems to set up multiple lights and calls into the light::apply each frame. Juggler sets up a sigle light and never calls into the light::apply after the initial set up. Before I investigate this further I thought I'd asked the list since I have the suspicion that is this something simple and someone might recognive the issue my just looking at a few screen shots. I have attached screenshots for both Juggler's OSGNav & OSGViewer and also the osg file them self. Furthermore, I have also included a simple model of a cube that demonstrates the same effect.
I imagine this has something to do with how the light is being setup. I would try using different settings in the:
http://developer.vrjuggler.org/docs/vrjuggler/2.2/programmer.reference/classvrj_1_1OsgApp.html#1b1994aa3043cd522e749853595d4796 or setup your own light: http://developer.vrjuggler.org/docs/vrjuggler/2.2/programmer.reference/classvrj_1_1OsgApp.html#e0a9dc2d8da29770af997f811df10144 Here is what your data looks like in my VR Juggler / OSG app. Doug
<<inline: Picture 1.png>>
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

