[PD] GEM mapping units to pixels

chris clepper cgclepper at gmail.com
Sun May 13 21:38:21 CEST 2007


Setting a 1:1 perspective tells GL to make x=y in units even though the
ratio is 1.33:1 in the display.  By not doing this rectangle 1 1 would be
drawn to match the 4:3 ratio of the window (although the default in GEM is
x=y so you have to change it to something other than 1:1 to have this
happen).

The test2 patch resets some of the ratios to 1:1 so the perspective corrects
that back to fit the window, otherwise the square is taller than it is wide.

Hopefully I didn't make this more confusing.

On 5/13/07, cyrille henry <cyrille.henry at la-kitchen.fr> wrote:
>
>
>
> chris clepper a écrit :
> > You are wondering why a 1:1 perspective works for a 4:3 window?
> >
> yes.
>
> cyrille
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20070513/db6edf6d/attachment.htm>


More information about the Pd-list mailing list