Suppose if I want to set the near and far plane for the scene to some
specific values , how should i go about doing this ?

Iam doing
viewer->getCamera()->setProjectionMatrixAsFrustum() just before the
viewer.run() . Is it fine ?

Amal.

On 8/14/07, Robert Osfield <[EMAIL PROTECTED]> wrote:
>
> On 8/14/07, Amal <[EMAIL PROTECTED]> wrote:
> >
> >
> > I want to find them in a node which is attached to the scen graph. I
> need
> > them in a Shader code for calculating the depth.
>
>
> OpenGL provides built in uniform gl_ModelViewMatrix which is directly
> available from in the shader.  You'll need to compute the near/far
> from this yourself.
>
> Robert.
> _______________________________________________
> 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

Reply via email to