mario 64 texture decompression

  • Thread starter Thread starter 2006kiaoptima
  • Start date Start date
  • Views Views 968
  • Replies Replies 0
  • Likes Likes 1

2006kiaoptima

Member
Newcomer
Joined
Apr 26, 2024
Messages
6
Reaction score
10
Trophies
0
Age
25
XP
58
Country
United States
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!


mio0.png
 
  • Like
Reactions: VinsCool

Site & Scene News

Popular threads in this forum