Hi Brad, You could use a draw callback on the drawable and there query OpenGL or the osg::State object to find out what state has been applied.
In general the OSG is pretty reliable w.r.t state application, the same scheme has been in place for the best part of decade now. Areas that are most likely to come unstuck is in your set of the scene graph - perhaps you aren't placing the StateSet's in appropriate place in the scene graph to get the result you want, the OSG uses top down inheritance of StateSet, state isn't inherited to siblings like in Inventor. Another area that you might come unstuck is not assigning all the vertex attributes that you require correctly - a missing colour array, or normal array? Try outputting your scene graph to a .osg file and then inspect it. Robert. On Fri, May 21, 2010 at 10:06 PM, Brad Huber <[email protected]> wrote: > I’m having an issue where some particular drawables aren’t rendering > correctly. I’m pretty certain that the state at render time is not what I’m > actually wanting it to be. Does anyone know of a convenient way to inspect > the actual state at render time? > > > > The problem is convoluted enough that I’m not sure I can just trust looking > at the stateset of it (and its parents) before hand. I want to know the > real render time answer. > > > > PS I tried putting another drawable as a sibling to the first drawable which > looks at renderInfo.getState() but I don’t think this is what I want for a > couple of reasons… > > > > Thanks > > -Brad > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

