Miscellaneous Forums > Graphical

Extract CLUT and turn it into a Paint Shop Pro palette?

(1/4) > >>

NERV Agent:
I am dealing with the ".TIM" file that contains the hand cursor graphics in "WINDOW.BIN". This ".TIM" has 16 CLUTs, each with 16 colors. I would like to extract some of these CLUTs and have them in ".PspPalette" or ".pal" format that can be used with Jasc Paint Shop Pro 9.

I realize I can always take an existing 16 color Paint Shop Pro palette and just change the index values to match what is in the CLUT, but that is time consuming. (Also, if this was a 256 color CLUT, that would be an arthritis inducing nightmare.)

Is there a way to extract CLUTs from a ".TIM" and have it in a palette format that can be loaded into Jasc Paint Shop Pro 9?

Maki:
I can code a tool for this, but that palette format for your software could be a problem. I doubt there's a file structure somewhere out there. What if I exported each color from palette to HEX codes? Could that help you a bit?

NERV Agent:
Hmmm. To be honest, I don't know how the formatting for a ".PspPalette" or ".pal" file works.

However, I did find some resources on the file structure of a ".TIM" file awhile back, which includes the CLUT.

https://web.archive.org/web/20120529162751/http://rveach.romhack.org/PSXInfo/tim.html

http://www.romhacking.net/documents/timgfx.txt

Thanks for the response.

Maki:

--- Quote from: NERV Agent on 2017-07-16 06:54:43 ---Hmmm. To be honest, I don't know how the formatting for a ".PspPalette" or ".pal" file works.

However, I did find some resources on the file structure of a ".TIM" file awhile back, which includes the CLUT.

https://web.archive.org/web/20120529162751/http://rveach.romhack.org/PSXInfo/tim.html

http://www.romhacking.net/documents/timgfx.txt

Thanks for the response.

--- End quote ---

Okay, if you could please send me two-three palettes containing:
-only white
-only blue
-only red

I'll try to reverse it

hotdog963al:
Jasc (Paint Shop Pro) Palette files start with the following 3 lines:


--- Code: ---JASC-PAL
0100
256

--- End code ---

Then that follows with 256 lines of RGB values (each colour value separated with a space, eg: 0 0 0)
Simple as that :)

Navigation

[0] Message Index

[#] Next page

Go to full version