Also, keep in mind that you have complete control over the units being used by setting various states in the gemwin.  You can have 16x9 &#39;units&#39; for a 16:9 display (or 1920x1080 &#39;units&#39; for that matter).<br>
<br><div class="gmail_quote">On Mon, Jun 7, 2010 at 3:13 PM, B. Bogart <span dir="ltr">&lt;<a href="mailto:ben@ekran.org">ben@ekran.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
This is normal media-art practise, mapping one range of values to another. Having one normalized system of coords does not solve all problems, sometimes you want to know the position in actual pixels, sometimes you don&#39;t. Not to mention the beauty of non-linear mappings.<br>

<br>
Getting a handle on mapping from one set of numbers to another is the very centre of interactive media, and what one should get used to once they figure out what functions/object boxes/operations do.<br>
<br>
I&#39;ve always covered gemunits in my gem classes. Knowledge of things like the [rectangle 5.333 4] that fills the 4:3 gemwin, and the [rectangle 7.111 4] rect that fills the 16:9 gemwin have become normal...<br>
<br>
I prefer rounder aspect ratios myself (1:1, 2:1, 3:1,...), blame the screen makers!<br><font color="#888888">
<br>
.b.</font><div><div></div><div class="h5"><br>
<br>
On 10-06-07 03:59 AM, patko wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
<br>
----- &quot;cyrille henry&quot;&lt;<a href="mailto:ch@chnry.net" target="_blank">ch@chnry.net</a>&gt;  a écrit :<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
openGL coordinate can easily be change using the perspec message to<br>
gemwin.<br>
<br>
</blockquote>
<br>
Allright, then if I want to have gemwin coordinates system adapted to the blob,<br>
I&#39;d need to find out how to multiply perspect values to have my zeros at the lower corner left<br>
and my ones to higher corner right.<br>
<br>
  By fiddling with numberboxes I&#39;ve figured out that any windows with a 4:3 ratio has one horizontal<br>
unity that is about 5.33 and vertical unity about 4.<br>
  So it&#39;s really tricky to get values that are only between 0 and 1<br>
inside the edges of the rendering window.<br>
<br>
  In fact , at the end it&#39;s far easier to multiply the values outputed by [pix_blob] on x by 10.66 and remove 5.33,<br>
and on y by 8 and remove 4, or divide gemmouse values by gemwin dimen and then multiplying by the same values.<br>
<br>
  Is there a way to not-have-to fiddle values for getting an accurate positioning of objects in gemwin?<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt;  <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</div></div></blockquote></div><br>