Hello, I follow this mailing list for a few days now and want to ask my first question:
I want to write a Group node that draws the first Drawable in the subgraph with stencil buffer before drawing all subsequent Drawables as decals with disabled depth test. The position of the first Drawable is used for depth sorting in transparent bin. My approach is to set an empty DrawCallback on every Drawable. The first Drawable has a DrawCallback that calls the drawImplementation of all other Drawables. The layer effect works fine (decals without z-fighting), but I get in serious trouble with the inheritance of States and Attributes when pushing and popping StateSets to the RenderInfo StateSet stack. It seems that inherited States from parent nodes are not part of this stack and therefor cannot be inherited when pushing another StateSet onto the stack. How can I manage the States manually in my DrawCallback? Do I have to use other techniques I haven't thought of? Thanks for your help, Armin _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

