I was attempting to transform the ocean surface along the z-axis as described Kim using a MatrixTransform in the constructor of OceanScene where OceanSurface is added to the Scene as a child node. The surface is indeed transformed properly, but the reflection it completely wrong. First off it gives the illusion the surface is still at the original z-axis position, but it also seems to be reflecting the top of my landscape onto the water which doesn't seem correct to me. Though I believe the problem with the reflection is because the bottom of my landscape scene is transparent. I am more interested in fixing the z-offset reflection problem. I have attached a screen shot of the reflection I am seeing.
This is the code I am using to transform the ocean surface along the z-axis. > osg::MatrixTransform* mt = new osg::MatrixTransform( > osg::Matrixd::transform(osg::Vec3d(0.0, 0.0, 1.0)) ); > mt->addChild(_oceanSurface.get()); > addChild(mt); Screenshots of the reflection can be seen here: http://www.xavia.org/osgocean/ Regards, Matt Lehner _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

