[vtkusers] VTk Stereo - Help Rendering Left & Right Eye Seperately

Sankhesh Jhaveri sankhesh.jhaveri at kitware.com
Tue Jun 6 14:23:40 EDT 2017


If zSpace creates the OpenGL context, you could also use the
vtkRenderingExternal module (ExternalVTKWidget in particular) which allows
one to use VTK in third party visualization architectures. For an example,
take a look at the VruiVTK examples <https://github.com/VruiVTK> on GitHub
that allow using VTK inside VRUI.
​

On Tue, Jun 6, 2017 at 2:12 PM Aashish Chaudhary <
aashish.chaudhary at kitware.com> wrote:

> If you are using zspace, then you can use Paraview VR plugin and a
> configuration that lets you open two windows (one for left eye and one for
> right). One of my colleague was able to run a setup like this in the past.
> However, then you are using ParaView inside zspace and not using zSpace SDK
> directly.
>
> - Aashish
>
> On Tue, Jun 6, 2017 at 2:03 PM Teek <EZ7543 at wayne.edu> wrote:
>
>> Ahhh I should've been more clear. But I'm using zSpace as my display which
>> handles the stereoscopic rendering fine if I use Crystal Eyes.
>>
>> Would it be possible for me to have 2 renderers on top of each other in
>> one
>> window, and then use the front and back buffers for each renderer?
>>
>> For my use, I can't actually use just the center of the two eyes. I would
>> need to render each eye separately or set the camera for each eye.
>>
>> zSpace has an example of rendering in OpenGL in which they render the
>> scene
>> twice using GL_FRONT_LEFT and GL_BACK_LEFT buffers, respective to each
>> eye.
>> I'm trying to recreate that with VTK because VTK implies volume rendering
>> significantly.
>>
>>
>> Sankhesh Jhaveri-2 wrote
>> > Perhaps, I misunderstood what you’re trying to do.
>> >
>> > That API lets you render a whole scene (i.e. OpenGL context) with one
>> eye.
>> > For rendering both, left and right, you’d have to have two different
>> > windows with the same scene - one for left and one for right.
>> > The compositing will have to be dealt with, by the external system this
>> > way.
>> >
>> > What is the display setup you use? CAVE, HMD, etc?
>> >
>> > If you’re using off-axis projection, you could use
>> > vtkCamera::SetEyePosition
>> > (the center of the two eyes) and vtkCamera::SetEyeSeparation. However,
>> > these settings are only used for off-axis frustum calculation.
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://vtk.1045678.n5.nabble.com/VTK-Stereo-Help-Rendering-Left-Right-Eye-Separately-tp5743559p5743566.html
>> Sent from the VTK - Users mailing list archive at Nabble.com.
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtkusers
>>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-- 
Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware
<http://www.kitware.com/> | (518) 881-4417
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170606/e12083d0/attachment.html>


More information about the vtkusers mailing list