HI Martin,

I can't really work out what exactly is going on from your email. The
compute near/far doesn't normally have problems these days, and the
values your are reporting suggest that they haven't been set at all -
is the scene empty?

As for large numbers, I would always recommend keeping your vertex
data with a local origin and using a MatrixTransform above the local
subgraph that positions it in the large coordinate frame i.e. Earth
Center Earth Fixed.  VPB/osgTerrain use this technique to ensure
numercial stability during rendering and intersection testing.   I
would say that this isn't done to avoid near/far issues though as they
don't normally arise when handling large coords - you instance sounds
pretty odd.

Robert.

On Thu, Dec 10, 2009 at 9:43 PM, Martin Beckett <[email protected]> wrote:
> When displaying a model positioned at real world coords (ie values in 6 
> figures) I get an error about "_clampProjectionMatrix not applied" and a 
> znear of roughly max_float and a zfar of -max_float.
>
> This only seems to be a problem with vertex data, display osg::shapes at 
> these coords is fine.
>
> Is there a simple fix to set the near/far planes to this coordinate system?
>
> Each part of the scene is in local coords with a PAT node setting the map 
> coords. Would it help to have a parent map node with the large offset handled 
> there?
>
>
> Martin
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=21280#21280
>
>
>
>
>
> _______________________________________________
> 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