[maxmsp] Re: Typographical Teaser
Christian Töpfner
c at klingt.org
Tue Jan 29 19:52:26 MST 2008
- Previous message: [maxmsp] Re: Typographical Teaser
- Next message: [maxmsp] Re: Re: Typographical Teaser
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Coordinates in OpenGL originate in the centre point of your drawing context, going 1 unit to the borders of the drawing area (on the zero plane, where your z position = 0). That means that the visible area (on the zero plane) is 2 units wide and high with the origin at its centre. That said, converting pixels to GLworld is then straight forward: xGL = xPixel/widthPixel * 2 - 1 and respectively for y. c On 29 Jan 2008, at 23:23, Leafcutter John wrote: > > I have decided to go with jitter to display my floating words but > i'm having a problem due to my lack of knowledge in this area. > > I'm using jit.gl.text2d to render the words and trying to move them > round the jit.pwindow in response to mousedown in the same window. > The problem is that the jit.pwindow spits out pixel coordinates > like LCD but the jit.gl.text2d objects want a float number as > position input. The number seems to be some sort of scaled value > related to the size of the jit.pwindow but i cant seem to figure > out the relationship - Anyone know?? > > Thnaks, > > John. > -- > http://www.leafcutterjohn.com > > "The Forest And The Sea" > Out on Staubgold Records > Staubgold 68 CD/LP > _______________________________________________ > maxmsp mailing list > maxmsp at cycling74.com > http://www.cycling74.com/mailman/listinfo/maxmsp
- Previous message: [maxmsp] Re: Typographical Teaser
- Next message: [maxmsp] Re: Re: Typographical Teaser
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
