Re: [osg-users] Osg steteo problems!! Help!!!
HI Helong, 2009/5/30 神和龙 shenhel...@126.com: 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 osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Osg steteo problems!! Help!!!
HI Yongjin, On Mon, Jun 1, 2009 at 7:48 PM, Yongjin Li liyj...@gmail.com wrote: Dear Robert, I think the fusion distance is not the distance between left and right eyes but is the distance from the center of two eyes to the sight convergence point. I'm afraid you've misread my email. I didn't say the fusion distance was the interoccular distance, please re-read. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Osg steteo problems!! Help!!!
Dears, I have two problems when using osg stereo functions. 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? 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. Thank You Very Much. Best Regards. Helong -- 以下是签名,请略过。。。 一分之千 沧海一粟 神和龙___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org