The Forum is up for sale: XeNTaX Forum looking for new owner

Star Wars: Jedi Starfighter

Get your graphics formats figures out here! Got details for others? Post here!
CZW
veteran
Posts: 151
Joined: Thu May 05, 2005 3:15 pm
Has thanked: 117 times
Been thanked: 15 times

Star Wars: Jedi Starfighter

Post by CZW »

i have unpack archives files.. and found one texture folder, with .TEX files
i tried to convert TEX to BMP, i have test some possibility and soft, but i think this is a variant ...
someone could help me ??

thx
You do not have the required permissions to view the files attached to this post.
CZW
veteran
Posts: 151
Joined: Thu May 05, 2005 3:15 pm
Has thanked: 117 times
Been thanked: 15 times

Post by CZW »

up .. nobody havea solution ?????
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 680 times
Contact:

Post by Mr.Mouse »

Hmm, well, just looking at it briefly, it would seem to be a texture of 128x128 in size, it's not compressed it seems, as 128x128 = 0x4000h, and it has a palette of 256 colours probably (256xRGBAlpha = 0x400). Together this is 0x4400h, the exact size of the texture data (starts at offset 0x14h).

But I haven't looked throroughly enough as to type of texture.
CZW
veteran
Posts: 151
Joined: Thu May 05, 2005 3:15 pm
Has thanked: 117 times
Been thanked: 15 times

Post by CZW »

i have test many convert tools , for .tex format.. but no one work .. :(
Deniz Oezmen
VIP member
VIP member
Posts: 185
Joined: Mon Aug 28, 2006 2:07 pm
Has thanked: 1 time
Been thanked: 14 times
Contact:

Post by Deniz Oezmen »

Starting from Mr.Mouse's description (though the palette comes first, so the texture data actually starts at 0x0414 ;-)) and for a moment ignoring the alpha channel, as I currently only have a BMP writing library at hand, this is what I have got. I am not sure whether the palette orientation is BGR (on the left) or RGB (on the right).

So, there is not much to it, as already suspected.

Any thoughts?
You do not have the required permissions to view the files attached to this post.
CZW
veteran
Posts: 151
Joined: Thu May 05, 2005 3:15 pm
Has thanked: 117 times
Been thanked: 15 times

Post by CZW »

my god ..
excellent ...
i'm a noob about file description .. could give me a small progam for convert .tex ?? please
Deniz Oezmen
VIP member
VIP member
Posts: 185
Joined: Mon Aug 28, 2006 2:07 pm
Has thanked: 1 time
Been thanked: 14 times
Contact:

Post by Deniz Oezmen »

Sure, test the attached program. Usage via the command line:

Code: Select all

TEX2TGA *.tex
or similar ...

Im not sure about the alpha channel, though. The results look a bit weird to me, but then again, I do not know what this texture is supposed to represent. You will have to check that for yourself.

[Edit: attached updated version]
You do not have the required permissions to view the files attached to this post.
Last edited by Deniz Oezmen on Sun Mar 25, 2007 11:04 am, edited 1 time in total.
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Post by Darkfox »

Looks to me like it is supposed to be a ship.
Deniz Oezmen
VIP member
VIP member
Posts: 185
Joined: Mon Aug 28, 2006 2:07 pm
Has thanked: 1 time
Been thanked: 14 times
Contact:

Post by Deniz Oezmen »

Darkfox wrote:Looks to me like it is supposed to be a ship.
I thought that too, but the black parts of the image are marked as opaque, while everything else (also what I would interpret as metal) is attributed a value somewhere in the middle ranges. Thus, even turning the scale upside down does not make much sense.

Interesting fact: The palette seems to be sorted by what I have presumed to be the alpha value. I'm not sure whether this has some importance.
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Post by Darkfox »

I also noted that in the example picture you displayed the right image seemed to have correct skin tone for the pilot's face. Hm. Games and their odd formats, no?
Deniz Oezmen
VIP member
VIP member
Posts: 185
Joined: Mon Aug 28, 2006 2:07 pm
Has thanked: 1 time
Been thanked: 14 times
Contact:

Post by Deniz Oezmen »

Maybe the right example uses the correct colour sequence. I am still not sure about that ...
But you are right, games tend to have have very odd formats. I am actually quite grateful for the current trend towards the use of standardized file formats.
CZW
veteran
Posts: 151
Joined: Thu May 05, 2005 3:15 pm
Has thanked: 117 times
Been thanked: 15 times

Post by CZW »

Deniz Oezmen wrote:Sure, test the attached program. Usage via the command line:

Code: Select all

TEX2TGA *.tex
or similar ...

Im not sure about the alpha channel, though. The results look a bit weird to me, but then again, I do not know what this texture is supposed to represent. You will have to check that for yourself.
wooww
all working perfectly... except, le blue channel must be the red .. i think ...
Deniz Oezmen
VIP member
VIP member
Posts: 185
Joined: Mon Aug 28, 2006 2:07 pm
Has thanked: 1 time
Been thanked: 14 times
Contact:

Post by Deniz Oezmen »

CZW wrote:all working perfectly... except, le blue channel must be the red .. i think ...
Okay, that probably settles our discussion. ;-)
See the above post, I have updated the attachment accordingly.
CZW
veteran
Posts: 151
Joined: Thu May 05, 2005 3:15 pm
Has thanked: 117 times
Been thanked: 15 times

Post by CZW »

perfect work, congratulations !!!!!!!!

now, the color is perfect..
cuz see a havoc blue isn't logical, now is red as usual ....
You do not have the required permissions to view the files attached to this post.
CZW
veteran
Posts: 151
Joined: Thu May 05, 2005 3:15 pm
Has thanked: 117 times
Been thanked: 15 times

Post by CZW »

now the right color .. red
You do not have the required permissions to view the files attached to this post.
Post Reply