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

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -