A few months ago I decided to dip my toes into emulation and get myself writing more C/C++. The project I chose was to try and decompress MIO0 textures from games like Mario 64 and Star Fox 64.
It took a lot of failed attempts (mostly due to lack of experience with C and C++) and some breaks from the project as a whole, but today I finally finished a program and C that will decompress all the blocks in a .z64 file, assuming it finds any.
Below you can see my quickly throwing some of the image data on to an HTML canvas for demonstrating, with the C program output on the left. There's a weird yellow color plaguing most of it that I'm pretty sure is supposed to be black (and a bunch of image data encoded in a different color format), but at least it's there!
It took a lot of failed attempts (mostly due to lack of experience with C and C++) and some breaks from the project as a whole, but today I finally finished a program and C that will decompress all the blocks in a .z64 file, assuming it finds any.
Below you can see my quickly throwing some of the image data on to an HTML canvas for demonstrating, with the C program output on the left. There's a weird yellow color plaguing most of it that I'm pretty sure is supposed to be black (and a bunch of image data encoded in a different color format), but at least it's there!






