Archived

This topic is now archived and is closed to further replies.

Link

a curious defect in my vertex image

Recommended Posts

i''ve a player drawing in bmp or tga image, i open it in my game and i draw it tile for tile in triangle (every tile i read from the image i draw it in 2 triangle which make the rectangle the same dimension of the first player tile i''ve read), i make alpha all the with pixel... now i present it in the screen... but the thing strange is that at the first border of the image i draw in the game there is a strange dark line (came from the 2° and 3° vertex of the first and second triangle drawed). what is it? Why it appear in the image of the player?

Share this post


Link to post
Share on other sites
I believe this is due to texture wrapping. My guesses would be to :
- disable texture wrapping
- make the rectangle smaller (so you don''t draw that small part at the top)

ToohrVyk
-------------
Extatica - a free 3d game engine
Available soon!
Click here to learn more

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
why don''t you read the documentation?

Share this post


Link to post
Share on other sites
now i would understand by what this bug depend! if it is a my error, or DirectX!
Because i don''t think to scale the triangle just to parry directx bug!

Share this post


Link to post
Share on other sites
ok i''ve resolved it, i think it is a bug of directx infact if i do 0.2f - 0.2f the result is not equal to 0, but 0.0000xx where xx is some numbers...

Share this post


Link to post
Share on other sites