Hi Rafael,

On 5/16/07, Robert Osfield <[EMAIL PROTECTED]> wrote:
I haven't yet attempted to add support for fusion distance, so I can't
off the top of my head say what the final API will look like.  I'll
have a think about this tonight.

I have gone ahead and add support for controlling fusion distance into
osgViewer::View, this means it'll work with both Viewer and
CompositeViewer.

The osgstereimage example now is more staightforward than it was in
the osgProducer, no grappling around with SceneView, you can set it
straight on the viewer.

   
viewer.setFusionDistance(osgUtil::SceneView::USE_FUSION_DISTANCE_VALUE,radius);

Note, if you attach a CameraManipulator to a View then on each frame
the FusionDistance settings up updated from this, overwriting the
local View's values.  This is consistent with the way that how
osgProducer too.  This is required to allow manipulators like
TerrainManipulator and TrackballManipulator to scale the fusion
distance auomatically as you zoom in/out.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to