<DIV> Reena</DIV>
<DIV> </DIV>
<DIV>I am running VTK in stereo on alienware monitor on (NVIDIA QUADRO 5800 -
can be other with 3-pin DIN and 3D vision compartanle )<BR>Cable needs to be
DVI-DVI.</DIV>
<DIV>see attached images for Nvidia control panel.</DIV>
<DIV>On Windows 7 only can run examples with <FONT size=2
face=Consolas><FONT size=2
face=Consolas>iren->Initialize();iren->Start();</DIV>
<P></P>
<DIV> </DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV><STRONG>BAD NEWS: (I ANYONE KNOWS HOW TO FIX
THIS PLEASE HELP )</STRONG></DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV><STRONG>Without iren->start(); stereo works only for short time and the
window goes white... (same true for stereo projectors)</STRONG></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Try this extample wit loop modification:</DIV>
<DIV>C:\Users\demo\VTK\Examples\Tutorial\Step2\Cxx</DIV>
<DIV><FONT size=2 face=Consolas><FONT size=2 face=Consolas>
<P></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff
size=2 face=Consolas><FONT color=#0000ff size=2
face=Consolas>int</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2
face=Consolas> i;</P>
<P></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff
size=2 face=Consolas><FONT color=#0000ff size=2
face=Consolas>int</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2
face=Consolas> rotations = 0;</P>
<P></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff
size=2 face=Consolas><FONT color=#0000ff size=2
face=Consolas>for</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2
face=Consolas> (i = 0; i <= 360, rotations < 10 ; ++i)</P>
<P>{</FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff
size=2 face=Consolas><FONT color=#0000ff size=2
face=Consolas>if</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2
face=Consolas>(i == 360) { i = 0; rotations++;}</P>
<P></FONT></FONT><FONT color=#008000 size=2 face=Consolas><FONT color=#008000
size=2 face=Consolas><FONT color=#008000 size=2 face=Consolas>// render the
image</P></FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2
face=Consolas>
<P>renWin->Render();</P>
<P></FONT></FONT><FONT color=#008000 size=2 face=Consolas><FONT color=#008000
size=2 face=Consolas><FONT color=#008000 size=2 face=Consolas>// rotate the
active camera by one degree</P></FONT></FONT></FONT><FONT size=2
face=Consolas><FONT size=2 face=Consolas>
<P>ren1->GetActiveCamera()->Azimuth( 1 );</P>
<P>}</P></FONT></FONT></DIV>
<DIV> </FONT></FONT></DIV>
<DIV> </DIV>
<DIV>-- <BR>Elena Slobounov <BR><BR>On Fri, Feb 11, 2011 07:16 PM, <B>Ruf
<ruf2811@gmail.com></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: #000 1px solid; PADDING-LEFT: 3px;
PADDING-RIGHT: 0px; MARGIN-LEFT: 3px; MARGIN-RIGHT: 0px" id=quoted_response>
<PRE>
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
</PRE></BLOCKQUOTE>