Well - all I can think, is taking Dave's comment above into acount too, is that one of us is describing a polygon that is facing down the -z axis. If you want to keep a texture readable (I like using text as the example) and view it looking towards the +z axis, then you would put t:(0,0) on the (1,0,0) vertext and the the t:(1,1) on the (0,1,0) vertext, which would of course look backwards if viewed down the -Z axis. As Dave said - if your using the poly-convert-to-indexed code, then perhaps pulling the wrong UVs. <br>

<br><div class="gmail_quote">On Wed, Apr 8, 2009 at 1:21 AM, gabor papp <span dir="ltr"><<a href="mailto:gabor.lists@mndl.hu">gabor.lists@mndl.hu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="im">> looks correct. You'll notice that the x,y coordinates are the same as the<br>
> s,t coordinates and they're all 1st quadrant.<br>
</div>yes, you are right. the default plane coordinates look like this:<br>
0: p: #(-0.5 -0.5 0.0) t: #(0.0 0.0 0.0)<br>
1: p: #( 0.5 -0.5 0.0) t: #(1.0 0.0 0.0)<br>
2: p: #( 0.5  0.5 0.0) t: #(1.0 1.0 0.0)<br>
3: p: #(-0.5  0.5 0.0) t: #(0.0 1.0 0.0)<br>
p0 is bottom-left and p2 is top-right. texture coordinates: t0 is (0, 0)<br>
and t2 is (1, 1). i think the cause of the problem is that the top-left<br>
of the texture (1st pixel) should be at the texture coordinate (0, 0),<br>
and the bottom-right (last pixel) should be at (1, 1). so with these 1st<br>
quadrant texture coordinates the original, vertically flipped behaviour<br>
was right. now we have flipped the rows in the texture reading code<br>
(reading the last line first, and the first line last), which results in<br>
the problems with the pixels data.<br>
<br>
i think the coordinates should be vertically flipped, and the png<br>
reading code should be restored to its normal behaviour:<br>
0: p: #(-0.5 -0.5 0.0) t: #(0.0 1.0 0.0)<br>
1: p: #( 0.5 -0.5 0.0) t: #(1.0 1.0 0.0)<br>
2: p: #( 0.5  0.5 0.0) t: #(1.0 0.0 0.0)<br>
3: p: #(-0.5  0.5 0.0) t: #(0.0 0.0 0.0)<br>
<br>
or we can choose to have first quadrant texture coordinates with the<br>
normal, flipped texture.<br>
<br>
what is your opinion? am i missing something?<br>
<br>
best,<br>
<font color="#888888">gabor<br>
<br>
</font></blockquote></div><br>