Hello Volker,

On 07/01/2013 04:12 AM, Volker Settgast wrote:
> I just found out that the OSGStereoLeftEye shader variable is not yet
> implemented. I want to add it to OSGShaderVariableOSG.
> My idea is to include this information similar to TileFullSize into the
> DrawEnvironment. Following the path of information it seems this is done with 
> a
> virtual function in OSGCamera to collect the information from the
> TileCameraDecorator (if present).
>
> As this is quite a chain of modifications, I just want to ask if this is the 
> the
> desired way of doing it.

hmm, desired is a bit relative here ;)
Purely from an interface aesthetics perspective it seems a bit out of 
place in Camera (just like the tile stuff), but if we want to be 
pragmatic about it that seems the way to add it.

> StereoLeftEye of course only makes sense if there is a
> ShearedStereoCameraDecorator or ProjectionCameraDecorator present.

I'd think StereoCameraDecorator (the base class of these two) is the 
place to override the virtual function that provides the left/right eye 
info.

        Cheers,
                Carsten

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to