stardance has been extended another month! the new deadline is october 31 :)

You are browsing as a guest. Sign up (or log in) to start making projects!

13h 38m 21s logged

3D Renderer Line drawer :bruhhh:

So I was working on a 3D rendering program
:actually-nothing:
Writing a whole 3D render in assembly was slightly overambitious I think. It took thousands of lines of code and hundreds of memory allocations, functions and random stuff.
:actually-nothing:
It is supposed to be able to do rotation, projection, and wireframe drawing, and I tried making it draw a simple cube.
:actually-nothing:
As of right now it doesn’t work. Debugging DTA assembly is hard :pf: especially when you have 1400 lines of it. (i thought of splitting it up into several files, but the way that it’s assembled and stuff makes it difficult, I still do have many files but I merge them all before assembling)
:actually-nothing:
There’s some problems with the math and conditional stuff and if i try to run the whole renderer the screen just shows one pixel at coordinates (0, 0) flickering.
:actually-nothing:
But I was able to program a functional line drawing algorithm based on generalized Bresenham’s line drawing algorithm! :yayayayayay: (see picture) It basically works by taking two start and end coordinates, and adjusting the x towards the end coordinate, while measuring the error of the y-coordinate from the ideal line and adjusting for it. idk im bad at explaining things.

I’ll probably write more about this in detail once I get the 3D renderer fully working.

0
51

Comments 0

No comments yet. Be the first!