[vtkusers] VTK Stereo Rendering capability

ELENA S SLOBOUNOV ess3 at psu.edu
Sat Feb 12 15:08:09 EST 2011


 Reena
 
I am running VTK in stereo on alienware monitor on (NVIDIA QUADRO 5800 - can be
other with 3-pin DIN and 3D vision compartanle )
Cable needs to be DVI-DVI.
see attached images for Nvidia control panel.
On Windows 7  only can run examples with iren->Initialize();iren->Start();



 
 
BAD NEWS:   (I ANYONE KNOWS HOW TO FIX THIS     PLEASE HELP   )
 
Without iren->start(); stereo works only for short time and the window goes
white... (same true for stereo projectors)
 
 
Try this extample wit loop modification:
C:\Users\demo\VTK\Examples\Tutorial\Step2\Cxx



int i;


int rotations = 0;


for (i = 0; i <= 360, rotations < 10 ; ++i)


{if(i == 360) { i = 0; rotations++;}


// render the image


renWin->Render();


// rotate the active camera by one degree


ren1->GetActiveCamera()->Azimuth( 1 );


}
 
 
-- 
Elena Slobounov 

On Fri, Feb 11, 2011 07:16 PM, Ruf <ruf2811 at gmail.com> wrote:

> Hi,
>
>I am a new user of VTK, I am using a NVIDIA 3d Vision kit, a PNY Quadro 600
>graphics card with an Alienware AW2310 3d-ready display.  I am facing
>problems in rendering a simple cone in 3D.  Is there any special setting
>required to be done, while running the application.  Does it need a
>fullscreen mode for the stereoscopic display.
>
>The below is my sample code:
>//-----------------------------------------------
>#include "vtkActor.h"
>#include "vtkConeSource.h"
>#include "vtkPolyData.h"
>#include "vtkPolyDataMapper.h"
>#include "vtkRenderWindow.h"
>#include "vtkRenderWindowInteractor.h"
>#include "vtkRenderer.h"
>
>int main( int argc, char *argv[] )
>{
> vtkRenderer *renderer = vtkRenderer::New();
> vtkRenderWindow *renWin = vtkRenderWindow::New();
>   renWin->AddRenderer(renderer);
> vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
>   iren->SetRenderWindow(renWin);
>
> vtkConeSource *cone = vtkConeSource::New();
>   cone->SetResolution(6);
>
> vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New();
>   coneMapper->SetInputConnection(cone->GetOutputPort();
>
> vtkActor *coneActor = vtkActor::New();
>   coneActor->SetMapper(coneMapper);
>
> renderer->AddActor(coneActor);
> renderer->SetBackground(0,0,0);
> renWin->SetSize(300,300);
>renWin->StereoCapableWindowOn(1);
> renWin->SetStereoTypeToCrystalEyes();
> renWin->StereoRenderOn();
> 
>
> // interact with data
> renWin->Render();
>
> iren->Start();
>
> // Clean up
> renderer->Delete();
> renWin->Delete();
> iren->Delete();
>
> cone->Delete();
> coneMapper->Delete();
> coneActor->Delete();
>
> return 0;
>}
>//-----------------------------------------------
>
>Any help would be appreciated.
>
>Thanks and Regards,
>Reena
>-- 
>View this message in context:
>http://vtk.1045678.n5.nabble.com/VTK-Stereo-Rendering-capability-tp3382286p3382286.html
>Sent from the VTK - Users mailing list archive at Nabble.com.
>_______________________________________________
>Powered by www.kitware.com
>
>Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
>Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110212/b0472c78/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3d_settings.png
Type: application/octet-stream
Size: 114119 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110212/b0472c78/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resolution.png
Type: application/octet-stream
Size: 116333 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110212/b0472c78/attachment-0001.obj>


More information about the vtkusers mailing list