gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Graphics > Please help me with DDA polygon rendering

#10168 - Lupin - Thu Aug 28, 2003 8:08 pm

I always get distortions on my polygon, I first thought this is because of flipped mode 5, but it doesn't seem so, because the distortion always appears as soon as the long side of the poly is on the left side.

I tried everything, but I couldn't find out how to handle this problem :(

Maybe you could take an look at my source code (you could find the function in poly.c) or at least try the bin and tell me your guess (I don't even have an idea why this distortion appears).

here is the ROM:
http://mitglied.lycos.de/lupin003/link.htm

Sorry for not posting the source here, but i find that it's way too long.