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

Reply via email to