On Nov 6, 2014, at 3:49 PM, Csaba Nagy <ncs...@javampire.com> wrote:

> In that context, does anybody know what is the meaning of the "stereo"
> as in the "dm_get_stereo" function of dm.h ? Is that what I think, an
> existing effort at VR-type view (2 views slightly displaced for the 2
> eyes) ?

It is what you think, but ...

> If so, that means there might already be code to do what we want, it
> just needs to be wrapped up in the right way…

… it’s not been used in a very long time.  There indeed is code in libdm for 
stereo output, but most of the interfaces don’t do anything with it.  It looks 
like mainly the ogl interface does anything with the eye parameter.

Mged, however, will generate dual displays slightly displaced, intended for 
stereo viewing.  See src/mged/dozoom.c where it calculates a different view 
depending on which eye is getting displayed.  See src/mged/mged.c where it 
utilizes dm_get_stereo() to determine how to update the view.  I believe it 
only works with a stereo-capable context such as the OpenGL display manager 
interface..

Cheers!
Sean


------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to