donut.c
i wonder where the mistake is in here, i've read over https://www.a1k0n.net/2011/07/20/donut-math.html and thought i'd give it a try, but without magic transformation matrices and with some resemblance to a proper pipeline. the result i get looks somewhat like a torus, but not really one https://gist.github.com/rossiyareich/286b387a2bdfb59eeada23bdb59e7be9
a1k0n.net
Donut math: how donut.c works
10 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
custom type
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Ooh, a c# port of the donut program from the obfuscated c contest?
from the article
i dont understand the obfuscated c too as it premultiplies the transformation matrix
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
The code...is a donut...
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
i hate it when stuff almost works but doesnt
whatever, i'll just leave it at this
i thought about writing a software rasterizer and creating a 3d console engine but from doing this i don't think it's going to be particularly fun or performant
back to doing unity