Hi.
I'm having the problem understanding the multipass rendering of the simple
water effect as seen in here:
https://github.com/xarray/osgRecipes/blob/master/cookbook/chapter6/ch06_08/simple_water.cpp
The example contains:
* scene (airplane);
* RTT camera (renders reversed scene to texture);
* water plane (uses the texture of the reversed scene).

I don't understand why the final osg::Group that is added to
osgViewer::Viewer has all three nodes added:
* scene;
* RTT camera;
* water plane.

Can anybody explain why RTT camera should be added to Viewer? It's only
used to generate texture for water plane, so why add it?
Thanks.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to