Hi, I have an application that I'm developing that uses RTT to render's an image to a quad in my scene that is based on the overall scene. Best analogy that I can give is that the rendered quad is similar to a security camera. The main display consists of a drawable that has a shader program attached to it to produce lighting effects. The shader has a parameter that allows the lighting effect to be toggled. The security camera is rendered using a series of camera nodes. Each camera node has a quad, a texture, and a shader attached to the geometry node for the quad. All this works nicely.
The problem that I have run into is that ideally, I would like to toggle the lighting effects shader for the RTT. Currently, the main display's shader has lighting enabled, but the lighting effects are carried into the RTT for the security camera. Ideally, I'd like to enable the main display's lighting effects, but disable them for the RTT so that I can produce more realistic effects like night vision if that is possible. One thing to keep in mind is that all lighting effects are done through the shader, but I do have a flag in the shader program that can disable the effect. I'm guessing that either node visitors or setting a cull mask might be the way to go, but I haven't had any luck with either of those methods. It's very possible that I'm going about it the wrong way. Any ideas? Thanks, Brian _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/