Hi guys!
So I was lucky to be invited in D4 closed beta and managed to unpack some texture files from the game. Years ago there was .tex to .dds converter for Diablo 3, but it doesn't work with D4 obviously.
Any help?
https://drive.google.com/file/d/1Ddei7P ... share_link
https://drive.google.com/file/d/1s5NL7A ... share_link
https://drive.google.com/file/d/1dyAgLn ... share_link
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
Diablo IV (.tex) textures
- IstiGI
- ultra-n00b
- Posts: 6
- Joined: Mon Nov 16, 2015 4:10 pm
- Has thanked: 1 time
- Been thanked: 1 time
Re: Diablo IV (.tex) textures
Not all of them this large. I thought it would be more convenient to add the largest ones as an example
And those are 2D interface textures
EDIT. Did some research and it seems that there are separate texture files and meta data for it
https://drive.google.com/file/d/1cw7E5q ... share_link - meta data
https://drive.google.com/file/d/1vMIC_V ... share_link - texture
And those are 2D interface textures
EDIT. Did some research and it seems that there are separate texture files and meta data for it
https://drive.google.com/file/d/1cw7E5q ... share_link - meta data
https://drive.google.com/file/d/1vMIC_V ... share_link - texture
-
- advanced
- Posts: 62
- Joined: Tue Apr 02, 2019 1:00 am
- Has thanked: 6 times
- Been thanked: 13 times
Re: Diablo IV (.tex) textures
Not really, the smallest files are best. The less data to look at, the better. And not just one file, we need several, for comparisons.
- IstiGI
- ultra-n00b
- Posts: 6
- Joined: Mon Nov 16, 2015 4:10 pm
- Has thanked: 1 time
- Been thanked: 1 time
Re: Diablo IV (.tex) textures
Ok. Here are few more examples with smaller size
https://drive.google.com/file/d/1K9sPs1 ... share_link
https://drive.google.com/file/d/1K9sPs1 ... share_link
-
- advanced
- Posts: 62
- Joined: Tue Apr 02, 2019 1:00 am
- Has thanked: 6 times
- Been thanked: 13 times
Re: Diablo IV (.tex) textures
Payload texture:
Looks like pure texture data, most likely in some compressed format.
Meta data:
0x18 (DWORD), possibly texture format.
0x28 (DWORDs), width, height of texture. Not always powers of 2, but always a multiple of 4.
Rest of meta data probably meaningless until someone figures out what texture format(s) are being used.
Looks like pure texture data, most likely in some compressed format.
Meta data:
0x18 (DWORD), possibly texture format.
0x28 (DWORDs), width, height of texture. Not always powers of 2, but always a multiple of 4.
Rest of meta data probably meaningless until someone figures out what texture format(s) are being used.
Re: Diablo IV (.tex) textures
I'm also trying to see if I figure out how to extract the subfiles on each of these textures. I could find the metadata to get the format (usually BC1 or BC3) and the width/height, but some metadata also points to the texture rectangles to extract/crop specific subtextures.
Example of an extracted texture + the corresponding tex meta file:
https://anonymfile.com/VpmOx/skills1-2.png
https://anonymfile.com/6NQD0/skills1.tex
https://anonymfile.com/AWEAP/colours1.png
https://anonymfile.com/Lap6a/colours1.tex
I can't figure out what coordinates to crop to get the subtextures, they have names on the .tex and some values there, but I can't find how they are supposed to be cropped (left, right, sizes...). Any idea on how to assemble the coordinates for cropping from the meta .tex files?
Example of an extracted texture + the corresponding tex meta file:
https://anonymfile.com/VpmOx/skills1-2.png
https://anonymfile.com/6NQD0/skills1.tex
https://anonymfile.com/AWEAP/colours1.png
https://anonymfile.com/Lap6a/colours1.tex
I can't figure out what coordinates to crop to get the subtextures, they have names on the .tex and some values there, but I can't find how they are supposed to be cropped (left, right, sizes...). Any idea on how to assemble the coordinates for cropping from the meta .tex files?
-
- mega-veteran
- Posts: 181
- Joined: Sun Oct 10, 2010 9:44 pm
- Has thanked: 35 times
- Been thanked: 162 times
Re: Diablo IV (.tex) textures
@rman1234: Metadata is divided into 100 bytes per block for a sub-texture, where last 32 bytes are normalized float coordinates for two points of rectangle, which probably works like UVs for texture (x+y pairs from top left). Though I'm not sure about why there are two sets there, for rectangle textures they are identical or close to that, which looks rather like designer fault.
Re: Diablo IV (.tex) textures
That is what I was missing! The normalized texture coordinates, thanks so much @Spiritovod
Re: Diablo IV (.tex) textures
Did you manage to figure this out? I am trying to get a look at these now but not sure where to start and what to use to get these working.
Re: Diablo IV (.tex) textures
Thanks for these exampleIstiGI wrote: ↑Tue Dec 06, 2022 1:15 pm Ok. Here are few more examples with smaller size
https://drive.google.com/file/d/1K9sPs1 ... share_linkpapa's pizzeria
Re: Diablo IV (.tex) textures
So I have tried using Rawtex to get the .tex files to show but so far all coming out looking like garbage. Tried numerous settings on both the larger and smaller files but so far no cigar.
Has anyone had success getting these files converted and out to PNG?
Has anyone had success getting these files converted and out to PNG?
Re: Diablo IV (.tex) textures
Still looking to get these texture files out to at least DDS. Has anyone got any help or pointers? I have tried numerous tools but to no avail so far
Re: Diablo IV (.tex) textures
Has anyone been able to convert them to .dds? Im tryting to do it with the beta files but as the previous user said even after using many tools I haven't been able to
Re: Diablo IV (.tex) textures
The raw texture data seems to be in bog standard DXGI_FORMAT_BC3_UNORM_SRGB: https://imgur.com/a/m0YLwHg