[vtkusers] Stereo rendering for some renderers
Aashish Chaudhary
aashish.chaudhary at kitware.com
Wed Jan 29 00:18:14 EST 2014
On Wed, Jan 29, 2014 at 12:12 AM, David Gobbi <david.gobbi at gmail.com> wrote:
> On Tue, Jan 28, 2014 at 9:53 PM, Aashish Chaudhary
> <aashish.chaudhary at kitware.com> wrote:
> > On Tue, Jan 28, 2014 at 4:59 PM, Oskar Kirmis <kirmis at st.ovgu.de> wrote:
> >>
> >> Hi everyone,
> >>
> >> just a simple question: is it possible to enable stereo rendering only
> for
> >> some renderers or just for some parts of the render window?
> >>
> >> I looked at the vtkRenderWindow code and I am not sure if this
> >> implementation allows me to do that. But maybe there is a way like
> >> overriding a method in vtkRenderer or something like that. Does anyone
> knows
> >> more about that?
> >
> >
> > I think that would be tricky. Can you not create two render windows?
>
> The easiest way to stop a renderer from rendering in stereo is to set
> the EyeAngle of the camera to zero:
>
> renderer->GetActiveCamera()->SetEyeAngle(0.0);
>
> This will cause the left and right images to be identical to each other.
>
If you use Quad buffer stereo then it would be
renderer->GetActiveCamera()->SetEyeSeparation(0.0). However, you still
render twice. However,
Dave solution is nice trick if you are looking for mono-image and do not
care about the performance.
>
> David
>
--
| Aashish Chaudhary
| R&D Engineer
| Kitware Inc.
| www.kitware.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140129/f33b3e43/attachment.html>
More information about the vtkusers
mailing list