Textures of Beta Diablo 3, ".tex" files converter needed :)

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
Tabris
n00b
Posts: 16
Joined: Thu Jan 27, 2011 2:56 am

Textures of Beta Diablo 3, ".tex" files converter needed :)

Post by Tabris » Thu Sep 08, 2011 9:44 am

Hi guys,

here is some samples of Diablo 3 textures files.

Could someone take a look and find a way to convert this .tex (textures files) into dds or tga files ?

Thanks.

file : http://dl.free.fr/q1mpHIHGZ/D3_sample.rar

aquarius
ultra-n00b
Posts: 1
Joined: Mon Jul 05, 2010 6:53 pm

Re: Textures of Beta Diablo 3, ".tex" files converter needed

Post by aquarius » Thu Sep 08, 2011 10:43 am

Tabris wrote:Hi guys,

here is some samples of Diablo 3 textures files.

Could someone take a look and find a way to convert this .tex (textures files) into dds or tga files ?

Thanks.

file : http://dl.free.fr/q1mpHIHGZ/D3_sample.rar
:keke:

Tabris
n00b
Posts: 16
Joined: Thu Jan 27, 2011 2:56 am

Re: Textures of Beta Diablo 3, ".tex" files converter needed

Post by Tabris » Thu Sep 08, 2011 1:14 pm

I've tried severals "Tex to tga" converters, and for now.. nothing :(

SirLoon
advanced
Posts: 45
Joined: Fri Dec 18, 2009 5:26 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Textures of Beta Diablo 3, ".tex" files converter needed

Post by SirLoon » Thu Sep 08, 2011 1:25 pm

Tabris wrote:I've tried severals "Tex to tga" converters, and for now.. nothing :(
open file via F3 in total commander and you will see that its not normal texture but just container. Second half of file looks like it contains small data streams but i didnt found what format it is or how it is xored bcause im short of time

Tabris
n00b
Posts: 16
Joined: Thu Jan 27, 2011 2:56 am

Re: Textures of Beta Diablo 3, ".tex" files converter needed

Post by Tabris » Thu Sep 08, 2011 3:35 pm

:D I don't have Total commander :ninja: .

Here is a new package made from new assets of the lastest patch : http://dl.free.fr/muRbxNBnU/afterpatch.rar

noopic
ultra-n00b
Posts: 1
Joined: Thu Sep 08, 2011 4:43 pm

Re: Textures of Beta Diablo 3, ".tex" files converter needed

Post by noopic » Thu Sep 08, 2011 4:50 pm

SirLoon, I also can not find that kind of format. The only thing that I realized that some blocks are repeated at intervals of 48 characters. I understand that in this container are the TGA data files and maybe even some information. Perhaps in archives.

SirLoon
advanced
Posts: 45
Joined: Fri Dec 18, 2009 5:26 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Textures of Beta Diablo 3, ".tex" files converter needed

Post by SirLoon » Thu Sep 08, 2011 5:29 pm

noopic wrote:SirLoon, I also can not find that kind of format. The only thing that I realized that some blocks are repeated at intervals of 48 characters. I understand that in this container are the TGA data files and maybe even some information. Perhaps in archives.
i already tryed tga files and it doesnt works. first block is kinda weird it looks to be identical to headers of next blocks

User avatar
Falo
advanced
Posts: 78
Joined: Fri Oct 23, 2009 1:29 pm
Been thanked: 33 times

Re: Textures of Beta Diablo 3, ".tex" files converter needed

Post by Falo » Thu Sep 08, 2011 6:28 pm

this is Diablo III's new format, the first 40 byte ("DEADBEEF" header) is just a generic header,
after that comes data that is unique to every filetype, but normaly an offset table follows
the game uses file ext to find out how to read the file,

tex files are container,
a simple bms script to extract raw data: (still not readable, but better to analys)

Code: Select all

goto 0x34
get numFiles long

for x = 0 to numFiles
get Offset long
get Size long

math Offset += 16

set Name x
string Name += ".tex"

log Name Offset Size

next x

Tabris
n00b
Posts: 16
Joined: Thu Jan 27, 2011 2:56 am

Re: Textures of Beta Diablo 3, ".tex" files converter needed

Post by Tabris » Thu Sep 08, 2011 8:04 pm

The files you're talking about, could that be these list files ?

http://dl.free.fr/viwQRMCWy

SirLoon
advanced
Posts: 45
Joined: Fri Dec 18, 2009 5:26 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Textures of Beta Diablo 3, ".tex" files converter needed

Post by SirLoon » Thu Sep 08, 2011 8:23 pm

Falo wrote:this is Diablo III's new format, the first 40 byte ("DEADBEEF" header) is just a generic header,
after that comes data that is unique to every filetype, but normaly an offset table follows
the game uses file ext to find out how to read the file,

tex files are container,
a simple bms script to extract raw data: (still not readable, but better to analys)

Code: Select all

goto 0x34
get numFiles long

for x = 0 to numFiles
get Offset long
get Size long

math Offset += 16

set Name x
string Name += ".tex"

log Name Offset Size

next x
you extracted one capsule but you need extract rest. find offset 0x12368 and its start of header of some file which looks xored, there are many of them

User avatar
Falo
advanced
Posts: 78
Joined: Fri Oct 23, 2009 1:29 pm
Been thanked: 33 times

Re: Textures of Beta Diablo 3, ".tex" files converter needed

Post by Falo » Fri Sep 09, 2011 12:42 am

Tabris wrote:The files you're talking about, could that be these list files ?

http://dl.free.fr/viwQRMCWy
nope, that's filelists, i'm not talking about the mpq's, every file inside the D3 MPQ's has the DEADBEEF header.
SirLoon wrote:you extracted one capsule but you need extract rest. find offset 0x12368 and its start of header of some file which looks xored, there are many of them
there is no xored part ? your offset 0x12368 points directly into the raw textures

*.tex files are:
- 0xDEADBEEF header
- offset table (if more then 1 file, then every other file is a mip-map)
- original file names (before converting to *.tex) & some unknown data
- raw textures

the script extracts only the raw image (RGB8888), this is already viewable with texturefinder,
we need to find out what the unknown data is to extract real images.

i just don't really care about textures to do that, i'm more for 3D Models ^^
Image

Tabris
n00b
Posts: 16
Joined: Thu Jan 27, 2011 2:56 am

Re: Textures of Beta Diablo 3, ".tex" files converter needed

Post by Tabris » Fri Sep 09, 2011 7:04 am

Nice how did you do that ? take a look on their 3d models could also be interesting :)

SirLoon
advanced
Posts: 45
Joined: Fri Dec 18, 2009 5:26 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Textures of Beta Diablo 3, ".tex" files converter needed

Post by SirLoon » Fri Sep 09, 2011 7:57 am

Falo wrote:
Tabris wrote:The files you're talking about, could that be these list files ?

http://dl.free.fr/viwQRMCWy
nope, that's filelists, i'm not talking about the mpq's, every file inside the D3 MPQ's has the DEADBEEF header.
SirLoon wrote:you extracted one capsule but you need extract rest. find offset 0x12368 and its start of header of some file which looks xored, there are many of them
there is no xored part ? your offset 0x12368 points directly into the raw textures

*.tex files are:
- 0xDEADBEEF header
- offset table (if more then 1 file, then every other file is a mip-map)
- original file names (before converting to *.tex) & some unknown data
- raw textures

the script extracts only the raw image (RGB8888), this is already viewable with texturefinder,
we need to find out what the unknown data is to extract real images.

i just don't really care about textures to do that, i'm more for 3D Models ^^
Image
i know about deadbeef, thats from diablo since 1.10 patch, but i dont know structure of tex file :(

SirLoon
advanced
Posts: 45
Joined: Fri Dec 18, 2009 5:26 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Textures of Beta Diablo 3, ".tex" files converter needed

Post by SirLoon » Fri Sep 09, 2011 10:06 am

The contents of this post was deleted because of possible forum rules violation.

anhhungmeo1234
beginner
Posts: 20
Joined: Sun Aug 15, 2010 9:48 am

Re: Textures of Beta Diablo 3, ".tex" files converter needed

Post by anhhungmeo1234 » Fri Sep 09, 2011 12:44 pm

Hey Falo! How to extract D3's mpq and how to open model of diablo 3

Post Reply