How to use python vtk to get the stereo effect? -
i got vtk working rendering 3d objects. want render in stereo way. cannot figure out how tried
ren.resetcamera() window = vtk.vtkrenderwindow() #window.getstereocapablewindow() #window.stereocapablewindowon() window.addrenderer(ren) window.setstereorender(1)
but doesn't work. body can give idea?
this piece of code guarantee work
window = vtk.vtkrenderwindow() window.getstereocapablewindow() window.stereocapablewindowon() window.addrenderer(ren) window.setstereorender(1) window.setstereotypetointerlaced()
Comments
Post a Comment