Hi, How to have view dependents effects on a multiple view render ?
Let us say that I have two views on one scene (split-screen), each view following a different car in a racing game. Reflection Mapping (RM) has to be applied to the current car on each view and disabled for all other cars. I made a shader in which we can activate or deactivate the rendering of the reflection Map via a Uniform variable. We can modify the texture used for RM using uniforms too. In my OSG tree, the two view have the same scene_root child (it is not a duplicate). So at each rendered view (corresponding to a osg::Camera), I need to activate RM for the current car and provide the good RM map. Just after the view is rendered I need to deactivate RM on this same car. I try to do this using preDrawCallBack (to activate RM on the current car of the current view, and provide the correct RM map) and postDrawCallback (to deactivate RM on the current car) on the camera of each view. Although the callbacks are called, the RM is not rendered. Is that normal ? Do I do things in the correct way ? Thank you! Cheers, Gaëtan PS, I previously posted this message on the forum, but I saw in a topic that mailing sould be use. So i do.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

