I got the vtk working for rendering 3D objects. Now I want to render it in stereo way. But cannot figure out how to do it I tried something like this
ren.ResetCamera()
window = vtk.vtkRenderWindow()
#window.GetStereoCapableWindow()
#window.StereoCapableWindowOn()
window.AddRenderer(ren)
window.SetStereoRender(1)
But it doesn't work. Any body can give some idea?
This piece of code will guarantee it will work
window = vtk.vtkRenderWindow()
window.GetStereoCapableWindow()
window.StereoCapableWindowOn()
window.AddRenderer(ren)
window.SetStereoRender(1)
window.SetStereoTypeToInterlaced()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.