a curious defect in my vertex image
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?
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
- 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
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!
Because i don''t think to scale the triangle just to parry directx bug!
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...
That''s a computer bug. Computers do approximation errors all the time.
ToohrVyk
-------------
Extatica - a free 3d game engine
Available soon!
Click here to learn more
ToohrVyk
-------------
Extatica - a free 3d game engine
Available soon!
Click here to learn more
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement