Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Messed up looking textures/images?

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
User avatar
Forte
advanced
Posts: 41
Joined: Mon Aug 06, 2007 9:51 pm
Has thanked: 2 times
Been thanked: 5 times

Messed up looking textures/images?

Post 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.
GameZelda
advanced
Posts: 61
Joined: Wed Nov 14, 2007 5:56 pm
Been thanked: 29 times

Post 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 :) )
User avatar
Forte
advanced
Posts: 41
Joined: Mon Aug 06, 2007 9:51 pm
Has thanked: 2 times
Been thanked: 5 times

Post 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 :)
Rheini
Moderator
Posts: 652
Joined: Wed Oct 18, 2006 9:48 pm
Location: Germany
Has thanked: 19 times
Been thanked: 46 times
Contact:

Post 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.
Post Reply