While working on a DOOM style 3D game, I came across what I'm fairly confident now is a bug in how tline3d
uses the w0
and w1
parameters. To illustrate the issue (and because explaining what's happening is fairly difficult, I'm not certain myself exactly what's happening) I've created a reproduction cart which also contains an implementation of what I would have expected tline3d
to do.
Press Enter or Start to toggle between the builtin implementation and my own.



You need to multiply the U and V coordinates by the W coordinates. This was touched upon in the gfx pipeline doc but is strangely missing from the manual.



Sure enough, that fixed it. Thanks for the info! Where's the GFX pipeline doc you mentioned btw, I think I could use having a look at it lol.
[Please log in to post a comment]