[eq-dev] pixel coordinate system?

Stefan Eilemann eilemann at gmail.com
Sat Sep 13 13:30:06 CEST 2008


On 12. Sep 2008, at 13:22, Dan Wilcox wrote:

>
> Howdy,
>
> I'm trying to use a pixel-based coordinate system in an Equalizer test
> application, something like:
>
>    gluPerspective(90, w/h, 0.1, 10);
>    where w, h are the window width/height
>
> And I set the wall in a 1 window config file as the following, but  
> wasn't
> able to get what I expected:
>
>    bottom_left   [ 0 0 -1 ]
>    bottom_right [  w 0 -1 ]
>    top_left        [ 0  h -1 ]

This would set the bottom left corner to the origin, and your frustum  
would not be centered. You could do this:

bottom_left  [ -w/2 -h/2 -1 ]
bottom_right [  w/2 -h/2 -1 ]
top_left     [ -w/2  h/2 -1 ]

...or use a projection{}, which lets you specify a field-of-view.


> Thanks, I'm really excited for what Equalizer offers, both for our  
> projects
> at work and our new media projects.

Great, please let me know when you have something concrete. I'ld like  
to mention it on the website, if that's ok with you.

Btw, it's funny how the circle closes. Decades ago a project presented  
at the AEC (Worldskin) caused my partner, Patrick Bouchaud, to write  
OpenGL Multipipe SDK -- which in turn caused me to write Equalizer. ;)


Cheers,

Stefan.




More information about the eq-dev mailing list