Hi Marco, It would be useful to have an example that illustrates the problems. Would any of the existing osg render to texture examples illustrate this problem?
Robert. On Mon, Nov 24, 2008 at 1:05 PM, Marco Jez <[EMAIL PROTECTED]> wrote: > Hi Robert, > > The osg_ViewMatrix and osg_ViewMatrixInverse uniforms are currently being > loaded with the "root" view matrix only, ignoring any nested Camera nodes > along the scene graph. This breaks advanced view-dependent effects like > shader-based mirror reflections, which need to capture the scene from other > points of view (potentially in a recursive fashion). > I had to find a quick-and-dirty solution to this issue last week, so I > patched CullVisitor in order to keep a stack of view matrices and update the > uniforms accordingly. Without thinking of potential side effects, this > approach worked for me. > This patch is not meant to be applied to the OSG trunk as-is, but maybe it > can be useful as a starting point for elaborating a more robust solution. > > Cheers, > Marco > > > No virus found in this outgoing message. > Checked by AVG - http://www.avg.com > Version: 8.0.175 / Virus Database: 270.9.9/1809 - Release Date: 24/11/2008 > 903 > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
