Log In  


So you know those CMY Cubes? The ones where you rotate them around and the colors mix in the light?

After recently being taught how to mix colors using bitplanes, this idea came to mind, and I just had to make it

Cart #cmyplatonicsolids-0 | 2025-02-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
12


The 5 Platonic Solids, in all their CMY glory!

This was actually quite the challenge for me, as I've never messed with 3D rendering before. So I had to learn how to find the vertexes of each polyhedra, and I had to learn how to rotate them using matrix multiplication. But that was all quite fun, and I hope I can use them again in a future project that isn't just basically a gif

The final hurdle was actually filling the polygons in, as Pico-8 doesn't have a built in fill function outside of rectfill() and circfill(). And I certainly wasn't going to make my own fill function.

After an hour of digging, I found "Polygon Drawing Method" by user @paranoidcactus, so a big thanks to them!

12


Congratulations! Welcome to the world of low-res 3D!

And you shared one of the clearest and most understandable pieces of 3D rendering code.
Thank you!

I'm fascinated by translucent objects.
Your challenge to express them is amazing.


i had a weird idea for this. (i'm terrible at coding and cant afford a pico 8)
what if you placed a 2d level with different platform colors inside one of these cubes, and used z/x to rotate the cube and depending on what face/color the cube is showing, some platforms disappear>?



[Please log in to post a comment]