WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   stereo in one single eye only (https://forum.worldviz.com/showthread.php?t=1620)

michaelrepucci 08-27-2008 08:44 AM

stereo in one single eye only
 
I'm making some code for some research in which we want some trials to use normal stereo - I've enabled this with viz.MainWindow.stereo(viz.QUAD_BUFFER) and it works great - and in other trials we want the image only displayed to the left or right eye (user selected). I tried enabling this with viz.MainWindow.stereo(viz.STEREO_LEFT) but this seems to render just the left eye's perspective to both eyes. How can I set Vizard to render my scene to the left eye and nothing to the right eye?

michaelrepucci 08-27-2008 09:16 AM

I partially answered my own question. I found that for each object in the scene I can specify to which buffer(s) that object is rendered. For example, object.enable(viz.RENDER_LEFT) and object.disable(viz.RENDER_RIGHT), shows that object only to the left eye. But it'd be nice to be able to specify this for the entire scene, without doing so for each object. Any ideas?

farshizzo 08-27-2008 09:19 AM

Set the scene for the right eye to an unused scene, this way nothing will appear.
Code:

viz.MainView.setScene(2,viz.RIGHT_EYE)


All times are GMT -7. The time now is 10:18 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC