Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What tool for generating/editing textures? #611

Open
markusbkk opened this issue May 8, 2024 · 1 comment
Open

What tool for generating/editing textures? #611

markusbkk opened this issue May 8, 2024 · 1 comment

Comments

@markusbkk
Copy link

markusbkk commented May 8, 2024

The examples inside ee/draw are normally very informative and well designed.

The only thing that is seemingly missing is how to actually create the .raw file that is then turned into a C array by bin2c.

Is there any documentation on this anywhere? Any tools for it? Or Gimp plugins? I know there used to be a bmp2c utility, as well. But the only download I can find is a RAR file with an autorun.exe and other seemingly Windows CD-ROM looking files on the inside.

@F0bes
Copy link
Contributor

F0bes commented Aug 1, 2024

It's just the raw colour values of the texels.

It's important to know the colour format you're using.
PSMCT32 is just RGBA 8/8/8/8
PSMCT24 is just RGB 8/8/8
PSMCT16 is RGBA 5/5/5/1

You can easily export PSMCT32 and PSMCT24 using Gimp (or Adobe Photoshop) by exporting as "Raw image data"

For palettes it's a little tricky. With gimp try exporting as c source/header files and you'll have a structure with your clut and palette. I usually export as 8 bit and use a python script to convert it to 4 bit if I want a 4bit itex.

For PSMCT16, I do not know of any tools that do it natively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants