Today I got triangle fill and basic z-depth order working! It took about four hours (o.O), but it looks really cool: I also fixed a bug with key inputs being delayed. I needed to get all the SDL events each frame instead of just the first one. It’s really nice to not have to wait…
Tag: Pikuma 3D Graphics Course
Learning C, Day 10 (Back-Face Culling)
I spent about two and a half hours today on the course (more vector math) and I got back-face culling working! The next part of the course is filling the triangles, which is something I’ve been wondering how to do for a while. I can’t wait to see what I can make with the engine…
Learning C, Day 9 (Porting to PICO-8)
Today I worked on vector math to eventually implement back-face culling. I spent about an hour on that and then I ported the renderer so far to PICO-8: And it only took about 30 minutes! Working in C really makes me appreciate how much PICO-8 does behind the scenes. PICO-8 can’t load files directly, so…
Learning C, Day 8 (Loading OBJ Files)
Today I spent about two and a half hours on the course and I got my renderer loading OBJ files! So I had to render the Blender Suzanne monkey: I’m pretty sure my method of parsing OBJ files is awful, so I’ll probably rewrite it at some point. Here’s the code snippet: I’ll see you…
Learning C, Day 7 (Wireframe Cube)
I spent about four hours on the course today and I made a new cube: Things I worked on: Fixing the game loop to run at a constant speed Adding types for working with triangles DDA line drawing Maybe it doesn’t look as cool as the last one, but this one uses a system of…
Learning C, Day 6 (Point Cube)
Finally some 3D today! But first, Vim. I spent about half an hour just messing around in Vim and after that I used it for the rest of the day. Vim is so cool. It has shortcuts and commands for everything. A few times I found myself guessing commands correctly. For example, “$” means “move…
Learning C, Day 5 (Drawing Grids)
About an hour and a half learning C and 3D graphics today. I’m really enjoying the course so far. Not a whole lot to report on, I just refactored the code and wrote functions for drawing rectangles, grids, and single pixels. Note: I’ve got to learn vim. The course instructor is zooming in vim. Makes…
Learning C, Day 4 (3D Graphics Beginning)
Recently I’ve been playing some 3D PICO-8 games and I’m intrigued as to how the game creators squished 3D graphics into PICO-8’s limitations. I have experience with Blender, so I’m familiar with the high level concepts of 3D graphics, but I don’t understand how they work at a low level. So… I got a course…