[vtkusers] VTK Stereo - Help Rendering Left & Right Eye Separately
EZ7543 at wayne.edu
Fri Jun 9 16:14:31 EDT 2017
Going to try this way. I'm assuming that I'll have to iterate through a
RendererCollection from the RenderWindow in order to get the ActiveCamera
correct? Then for each Renderer set the camera->SetEyePosition.
VTK - Users mailing list wrote
> You should be able to write a subclass of vtkWin32OpenGLRenderWindow
> (or whatever **actual** vtkRenderWindow subclass gets instantiated for
> your app) and then provide your own overrides of the methods
> StereoUpdate, StereoMidpoint, and StereoRenderComplete.
> In the StereoUpdate method, call the parent method first, and then
> call camera->SetEyePosition to be at the left eye. In the
> StereoMidpoint method, call the parent method first, and then call
> camera->SetEyePosition to be at the right eye.
> In the StereoRenderComplete method, call the parent method first, and
> then call camera->SetEyePosition back to its pre-stereo rendering
> The trick with SetEyePosition calls is that they coordinates have to
> be in **camera** space, not world space.
> David C.
View this message in context: http://vtk.1045678.n5.nabble.com/VTK-Stereo-Help-Rendering-Left-Right-Eye-Separately-tp5743559p5743612.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers