On 16. Oct 2010, at 16:53, Martin Lambers 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?

> 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.



HTH,

Stefan.



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

Reply via email to