Hello Brian,
It makes the building appear to be all white, since the texture is turned off. Is this correct? I tried disabling that part of the code, but now the backfaced outlines are not enough to make the object stand out. What I would really like to do is outline the object in a striking color (say bright yellow, or something) and then render the textured object with a slight cast if the same color. Is this possible in OSG? I have searched though the archives, but without a lot of success yet. Just a pointer to some techniques that might work, or to a forum thread I missed would be a great help!
What you would need to get that effect would be to have the outline's stateset contain a material with a bright yellow emissive color (and enable GL_LIGHTING) and then change the main pass's stateset to give the material a slight yellow tint. Just a bit though, because it will be added to the main material color (diffuse * texture) so you don't want to drown that out completely with the emissive color.
Play around with these things, you should be able to get what you want. Hope this helps, J-S -- ______________________________________________________ Jean-Sebastien Guay [email protected] http://www.cm-labs.com/ http://whitestar02.webhop.org/ _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

