HI Helong,

2009/5/30 神和龙 <[email protected]>:
>    1.  When I use this function to configure the fusion distance,
>
> setFusionDistance(osgUtil::SceneView::USE_FUSION_DISTANCE_VALUE ,
> fusionDistance)
>
> It seems none effect. As it is calculated automatically by osg and equals to
> the distance between eye and the center of the scene. How can control it?


The fusion distance is used during for automatic compute of the
interocular distance (distance between left and right eyes) in world
space, but it's only used with certain camera manipulators - the
trackball and terrain manipulators.

What end effect are you looking for?


>    2.   How to realize the stereo effect of the prerender texture?
>
>         I use a camera to render the normal scene and another prerender
> camera to render the reflect texture of the scene. The normal scene can get
> stereo effects. But the texture in prerender camera couldn't have stereo
> effects.
>
>        How can the prerender camera are controlled by the stereo parameters.

The best way to achieve this is to here two render to texture
subgraphs, one for each eye, and have the cull traversal choose
between these based on a cull traversal mask.  Have a look at the
osgstrereoimage example for an example of left/right eye subgraphs in
action.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to