Hi Chris,
With very close up views to the terrain where the terrain extends for
a large distance away from the camera you can find that the near
clipping plane clips out geometry. This issue is just down to the
size of overall model and not directly related to osgEarth - it's only
that osgEarth can create models of large geographic area, you'll see
the same issue with any large model.
To manage this issue the easiest option would probably to disable the
default compute of the near/far planes that the OSG provides and set
the near/far planes manually via the projection matrix.
viewer.getCamera()->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);
And then set the the viewer's projection matrix manually using:
viewer.getCamera()->setProjectionMatrixAsFrustum(...);
You also can switch on the far culling plane so that the OSG culls out
geometry beyond the far plane distance. Have a look at
include/osg/CullSetting for more details.
Robert.
On Thu, Jan 28, 2010 at 8:55 PM, Chris Innanen <[email protected]> wrote:
> (And because I couldn't yet post a link in the last message, here's a
> snapshot of the clipping problem I'm seeing:)
>
> When I bring the camera down within 100 meters or so of the "sea floor", this
> is what I'm seeing. The nearest chunks of the terrain are being clipped.
>
> [Image: http://nonsanity.com/x/osgEarth_clipping.jpg ]
>
> ~ Chris Innanen
> ~ Nonsanity
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=23385#23385
>
>
>
>
>
> _______________________________________________
> 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