Hi Glenn, I can't really give a straight answer without spending some time on the code, but it does sound like CullStack should be returning the viewport of the nested Camera, and if it isn't there is probably a bug lurking somewhere in CullVisitor::apply(Camera&) so I'd recommend having a look at the internals of CullVisitor to see the management of the viewport stack, a little fix is probably all that is required.
Robert. On Dec 17, 2007 4:09 PM, Glenn Waldron <[EMAIL PROTECTED]> wrote: > Hi, hopefully this is an easy one! > > I am subclassing MatrixTransform and overriding the accept(NodeVisitor&) > method in order to perform some custom auto-scaling. It works fine until I > put the node under an RTT camera. Upon doing so, the > CullStack::getViewport() method still returns the viewport corresponding to > the main camera -- what I'm looking for are the dimensions of the RTT > surface. > > What is the correct call in this case? Thanks in advance. -gw > > -- > Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : 703-652-4791 > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org