Wonky texture in Polygon directx9

Started by
0 comments, last by Norman Barrows 10 years, 11 months ago

My rendering seems great and fine so far, except when I try to render a texture to a polygon (typically 4 vertices as a triangle list).

The texture is a very simple colourful rectangle:
[attachment=15788:001.png]

The above image is saved inside a 1024x1024 texture, so the Power of 2 is not an issue.

I render to a quad with an elongated bottom, and the centre of the texture get's a bit biased and wonky towards the left hand side, shown in the following image:
[attachment=15789:result.jpg]


I need the texture to be rendered evenly throughout the polygon, I need the following photoshopped picture as a result:
[attachment=15790:desiredresult.jpg]



I looked at PIX of the frame and the triangles are being rendered with the correct UV and vertices values
[attachment=15791:pix.jpg]

So I don't really know why it is skewing slightly to the left down the centre. Is it because of the triangle split down the diagonal of the polygon? Do I need to enable a blending method or something?

Advertisement

try it on a different quad. make one right quick in a modeler, or just write a few lines of code to set a buffer of 6 vertices and indices.

something simple like a 1x1 quad with the LL (SW) corner at the origin.

Norm Barrows

Rockland Software Productions

"Building PC games since 1989"

rocklandsoftware.net

PLAY CAVEMAN NOW!

http://rocklandsoftware.net/beta.php

This topic is closed to new replies.

Advertisement