#9775 - Lupin - Sun Aug 17, 2003 10:43 pm
I got an very fast solid filled triangle code working, but now I wonder how I'd do texture mapped ones, I tried some methodes, but I don't know how to do that :(
Does anybody have an good explanation how to map polygons correctly? An webpage about 3d theory and scanline conversion would be cool.
#9920 - johnny_north - Thu Aug 21, 2003 10:01 pm
Did you find an answer? I know there's a site out there by doobie(?). I looked at some of the code a while back. Can't remember if all of the code is in C or asm. A couple of engines have been posted to gbadev with sources as well. You might be able to dig through them to find the answer.
I also have a book at home written for Mac 3D programming back in 1995 or so. It has been the most complete and well written explanation of 3D I've come across so far. The texture mapping routines are written in C, probably far from optimized, but they would give you good ideas. It was also written about the time fpus were not entirely in use, so it uses fixed point I think. I think the book is titles "Trick of the Mac 3D Game programming Gurus" or something like that. If you want the code for the texture mapper, let me know and I'll post it.
#9957 - Lupin - Sat Aug 23, 2003 11:28 am
It would be great if you would be able to post it here, because I need every information i could get. Expecially the texture mapping part is driving me insane :(