Page 1 of 1

Messed up looking textures/images?

Posted: Wed Jan 16, 2008 11:15 pm
by Forte
I've been trying to get some textures from the .hack//G.U. games (namely the card images) and I've kinda succeded, but they look terribly wrong.

Here's an example:

Image

That's the image how Texture Finder made it(with pixel format "332=8"). After some tweaking with irfanview I got this:

Image

That's almost it. Here's how the image should look like btw:

Image

It seems like a problem with the palette. So, an ideas how to get from the first image to the last?

Incase you want to take a look at the file yourself. Here it is.

Posted: Thu Jan 17, 2008 2:43 am
by GameZelda
EDIT: I didn't see the sample. Looking at it now
EDIT 2: Nothing. It wasn't it. I converted the sample manually right

Probably, you've started to get the palette from a wrong place.

It starts at offset 272, it's 1024 bytes long.

The image seems to have blue and red colors swapped according to the "original" picture that you've posted (BGR instead of the PC-standard RGB). I will check it.

EDIT 3: Yes, red and blue colors are swapped. After correcting it, I get the correct image :) )

Posted: Thu Jan 17, 2008 7:18 pm
by Forte
I didn't actually have an idea what I was doing when I made the topic, but now the images look right with your info.
Thanks a lot :)

Posted: Thu Jan 17, 2008 9:25 pm
by Rheini
BGR isn't that uncommon, it is used in the .bmp format for example.
I think this also has a good reason, but I can't remember why.