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

Support for rare PVR texture formats #34

Open
PiKeyAr opened this issue Apr 29, 2021 · 2 comments
Open

Support for rare PVR texture formats #34

PiKeyAr opened this issue Apr 29, 2021 · 2 comments

Comments

@PiKeyAr
Copy link

PiKeyAr commented Apr 29, 2021

Hello, I found some textures using the somewhat rare "Bump map" pixel format that isn't currently supported so I thought I should share them as a sample in case you would like to support them in the future.
image
Bump.zip

@PiKeyAr PiKeyAr changed the title Support for the NJD_TEXFMT_BUMP pixel format Support for rare PVR texture formats Apr 29, 2021
@PiKeyAr
Copy link
Author

PiKeyAr commented Apr 29, 2021

Here are some other texture formats I found:

YUV422

image
yuv422.zip

Index8 with ARGB8888 palette (pixel format 6)

ARGB8888 Index8.zip
UVSample.zip
image

Other formats

According to the Ninja Guide, there are also strided, two paletted formats with mipmaps and some weird "ABGR" format that can also have mipmaps.

#define NJD_TEXFMT_PALETTIZE4_MM(0x0600)
#define NJD_TEXFMT_PALETTIZE8_MM(0x0800) - UVSample.pvr linked above is in this format apparently
#define NJD_TEXFMT_STRIDE  (0x0B00)
#define NJD_TEXFMT_ABGR (0x0E00)
#define NJD_TEXFMT_ABGR_MM (0x0F00)

And some other color formats:

#define NJD_TEXFMT_YUV_420 (0x06)
#define NJD_TEXFMT_RGB_555 (0x05)

@PiKeyAr
Copy link
Author

PiKeyAr commented Apr 29, 2021

Got lucky with the SDK:
textures.zip
Files of interest:
PAL4MM.PVR - NJD_TEXFMT_PALETTIZE4_MM
PAL8MM.PVR - NJD_TEXFMT_PALETTIZE8_MM
ST.PVR - NJD_TEXFMT_STRIDE
BRA.PVR and BRA12.PVR- YUV422

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

No branches or pull requests

2 participants