hi dirk, 
i am Davide with another mail add.
this is my code:

GLUTWindowPtr gwin= GLUTWindow::create();
    beginEditCP(gwin);
      gwin->setId(winid);
      gwin->init();
    endEditCP(gwin);

 mgr=new SimpleSceneManager();

    mgr->setWindow(gwin);

    mgr->setRoot(root);    
                
    mgr->showAll();

   
    ViewportPtr vp=gwin->getPort(0);

cam=PerspectiveCameraPtr::dcast(vp->getCamera());
    
    
    //decorators per la stereoscopia
    cam_sx=ShearedStereoCameraDecorator::create();
    cam_dx=ShearedStereoCameraDecorator::create();

    beginEditCP(cam_sx);
    {
      cam_sx->setDecoratee(cam);
      cam_sx->setEyeSeparation(eyesep);

      cam_sx->setZeroParallaxDistance(dist);
      cam_sx->setLeftEye(true);
    }
    endEditCP(cam_sx);

    beginEditCP(cam_dx);
    {
      cam_dx->setDecoratee(cam);
      cam_dx->setEyeSeparation(eyesep);
    
      cam_dx->setZeroParallaxDistance(dist);
      cam_dx->setLeftEye(false);
    }
    endEditCP(cam_dx);

}

hope it makes the question more clear.
thx bye


Il mar, 2004-09-28 alle 15:59, Dirk Reiners ha scritto:
>       Hi Davide,
> 
> On Tue, 2004-09-28 at 08:22, Davide Pasquini wrote:
> > I have a visualization stereo problem under windows with opensg ( I
> > should let notice that the same application in linux works!!!!)
> ...
> >  
> > 
> > The result is that the left viewport is visible,and the right viewport
> > is invisible....
> > 
> > I have a Quadro Fx 1100 ad the option for stereo is enabled....
> 
> if the code works on Linux, it should work on Windows. The interesting
> question is how you create your window, as that has to have stereo
> buffers enabled.
> 
> Do you use GLUT? Or do you open the Window in a different way?
> 
>       Dirk
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to