Thomas, Take a look at osgEarthUtil::AutoClipPlaneHandler for inspiration.
Glenn Waldron : Pelican Mapping : +1.703.652.4791 On Fri, Feb 26, 2010 at 4:50 PM, Thomas Canipel <[email protected]>wrote: > Hi, > > I have actually problem with the far/near plan, by using the osgEarth, I > want to reprensent for example an object on the earth that could be of the > size of 1meter, of course by computing the near plan and the far plan by > moving close to the box the object is clipped, after reading some topic on > the forum I try to apply the method by setting 2 camera , they share the > same graphic context, for one I define DO_NOT_COMPUTE_NEAR_FAR for the other > one COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES, then when a redraw is needed , > I look for the position of the camera and if its close to the earth for > example I switch to the camera that dont have the compute near far, and if > you zoom out i switch the camera again to have the one that compute the near > far automatically. > > The problem I get is after 2 changement of camera , atioglxx crash without > further information... is there something wrong in the way I am doing it ? > > > > Thank you! > > Cheers, > Thomas > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=24962#24962 > > > > > > _______________________________________________ > 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

