Yu Yu Hakusho Forever Texture *LGTX

Textures, recreate headers, conversions, algorithms and parsing of image files
reh
Posts: 48
Joined: Sun Apr 21, 2019 2:09 am

Yu Yu Hakusho Forever Texture *LGTX

Post by reh »

Hello again, I'm trying to get the textures for this game, but so far with no success.

Sample files:
lgtx.zip

I thank you for your help!
Allen
Posts: 156
Joined: Tue Sep 01, 2015 9:44 am

Re: Yu Yu Hakusho Forever Texture *LGTX

Post by Allen »

The image uses 8BPP, swizzled texture and palette. I think it also has 4bpp format, but it is not in the sample.

I learned a lot from this forum, I hope this can also help you. :)

In fact, Noesis's built-in functions are already can unswizzle image and palette.
This is learned from the Episoder script.

Code: Select all

pixel = rapi.imageUntwiddlePS2 (pixel, width, height, 8)
textureData = rapi.imageDecodeRawPal (pixel, palette, width, height, 8, "r8g8b8p8", noesis.DECODEFLAG_PS2SHIFT)
reh
Posts: 48
Joined: Sun Apr 21, 2019 2:09 am

Re: Yu Yu Hakusho Forever Texture *LGTX

Post by reh »

Allen wrote:I learned a lot from this forum, I hope this can also help you. :)

Thanks for helping me :)

I'm really interested in learning to create scripts with python, but in relation to reading the image I get lost, I don't understand how to identify the palettes or what the size of the image would be, although this part I think is trial and error to find out.

Thank you for sharing some of your knowledge with me.