Page 1 of 1

Palette Swapping

Posted: Tue Mar 26, 2024 3:18 pm
by Mega Shocked
I'm curious if devkitpro offers the ability to do palette swapping?

.t3s files are setup like this...

Code: Select all

--atlas -f rgba5551 -z auto
And each .png image is indexed with the exact same colour order.

Is it possible to do palette swaps?

EX: I have 4 main characters but they each have a unique colour palette...

The option I am using is I have 4 .t3s files each atlas of frames is identical with the exception of the palette information.
Is it possible to have 1 .t3s and set and set the palette?

In a scenario like "player select" all 4 players are visible at the same time.

Re: Palette Swapping

Posted: Sat Mar 30, 2024 1:43 pm
by WinterMute
Mega Shocked wrote: Tue Mar 26, 2024 3:18 pm I'm curious if devkitpro offers the ability to do palette swapping?
devkitPro is the organisation maintaining the tools and libraries. We provide devkitARM which allows you to compile code for the 3DS as well as libctru, citro3d, citro2d and many precompiled open source libraries as "portlibs" via pacman. Sorry to be a pain - it's just frustrating to have people continually talk about devkitPro as if we're software and it would be nice if there was more understanding of what it is we do.
Is it possible to do palette swaps?
Unfortunately the Pica has no paletted texture format so no. What you're already doing is the simplest and most straightforward way to get the result you want.