Hi Nick, The callback is only called when you have enable the compute near far mode. I don't recall the details off the top of my head, but I'd guess if you have slave Camera's in action you'll need to attach to the Slave Camera.
Robert. On 11 February 2014 17:56, Trajce Nikolov NICK < [email protected]> wrote: > Hi Community, > > Any insights how this works? I have inherited from this class and tried to > set my computation of the znear/zfar but it seam it is not called. The code > is like this: > > class MyClass : public osg::CullSettings::ClampProjectionMatrixCallback > { > ... > bool clampProjectionMatrixImplementation(osg::Matrixf& projection, > double& znear, double& zfar) const > { > znear = 1.0; > zfar = 1000; > return true; > } > // same for the double implementation > > then this callback is attached to the main camera, but it is not called > ever > > Any clue? Thanks a bunch > > Nick > > -- > trajce nikolov nick > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

