Skip to content

Commit

Permalink
4-bit Conversion Details
Browse files Browse the repository at this point in the history
Additional details were added for 4-bit graphics with transparencies.
  • Loading branch information
Immorpher committed Dec 19, 2024
1 parent 436a649 commit a293fa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphics/textures/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ <h3>Nintendo 64</h3>

<ul><li><a href="https://github.com/thekovic/wadutil64/releases/">wadutil64</a></li></ul>

<p>Most graphics software do not have a specific option to save PNGs as a 4-bit format. However in GIMP you can set the texture to 16 colors by going to "Image" then "Mode", and then "Indexed...". You can select a custom palette of 16 colors or have it auto-generate one of 16 colors. Make sure to disable the option of "Remove unused and duplicate colors", as the final palette has to be exactly 16 colors. Now when you export the image in GIMP as a PNG it should be the right format.</p>
<p>Most graphics software do not have a specific option to save PNGs as a 4-bit format. However in GIMP you can set the texture to 16 colors by going to "Image" then "Mode", and then "Indexed...". You can select a custom palette of 16 colors or have it auto-generate one of 16 colors. Make sure to disable the option of "Remove unused and duplicate colors", as the final palette has to be exactly 16 colors. Note that GIMP doesn't consider transparency as a color, so if you have transparency you will need to select 15 colors so the transparency can be used in the 16th spot. Now when you export the image in GIMP as a PNG it should be in the right form for conversion.</p>

<p>Due to hardware limitations relating to the texture cache (TMEM) size, each individual (CI4) texture on the Nintendo 64 can only be 4096 pixels total maximum. Furthermore, the textures must be 8-byte aligned. This includes texture sizes such as: 64x64 pixels, 128x32 pixels, and 256x16 pixels.</p>

Expand Down

0 comments on commit a293fa1

Please sign in to comment.