Hello Stefan!

On 17/10/10 15:56, Stefan Eilemann wrote:
>> To keep things simple, I plan to use a single 2D canvas in the Equalizer
>> configuration for video - anything else would not make much sense. Now I
>> need information about this canvas in two places:
>>
>> 1. The config needs to know the geometry of the whole canvas, so that it
>> can decide which part of the canvas to use to keep the aspect ratio of
>> the video.
> 
> Can you use the canvas wall to get the width & height?

Yes, but how do I get it? I can get the canvas with getCanvases()[0].
But how do I get the wall of the canvas?

>> 2. The channels needs to know its relative viewport inside the canvas so
>> that it can display the correct subset of the video.
> 
> Either use Channel::getFrustum or Channel::getViewport.
> 
> I would probably just place the video on a screen-aligned and screen-centered 
> quad at depth 1.0, with a configurable size. i.e. of height 1.0 and width = 
> f( height, aspect ratio). This approach requires you to change nothing in the 
> GL path.
> 
> The viewport is the fractional viewport wrt the destination view.

I guess I was looking for Channel::getViewport, but I'm a little
confused what 'destination view' means. How is this related to the
segment defined in the configuration file? Is this the same?

Martin
-- 
Computer Graphics and Multimedia Systems Group
University of Siegen, Germany
http://www.cg.informatik.uni-siegen.de/

_______________________________________________
eq-dev mailing list
[email protected]
http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev
http://www.equalizergraphics.com

Reply via email to