Page 1 of 1

Dead Rising 1 (PC) Normal Maps

Posted: Wed Sep 21, 2016 8:54 pm
by PockyWitch
Hello everyone
over the last few days I managed to get most .tex files converted into either .dds or .bmp, but I cannot figure out in which format the normal maps are stored.
Most capcom games seem to use some sort of DXT, whereas DR1 seems to be NOT using DXT. Tried a lot of things.

Here's a description of the header of the file
idstring "TEX\x00"
get VERSION short
get PADDING byte # Most DXT1 files have this set
get MIPMAPS byte
get WIDTH long
get HEIGHT long
get null long
get SIGN long # "DXT1" "DXT5", basically the type of file.

(All little endian)

Here's a zip with 2 normal maps in .tex format. Maybe one of you can figure out what kind of format it is. It's (I think) the only texture format I'm still missing.
http://team-s4s.de/screens/DR1_Normalmaps.zip

If it's any help, if I extract it like a bmp with 16bit I can atleast get it to load in photoshop. Weird artifacts though, so not even toying around with the channels fixes it.

Regards,
Pocky

Re: Dead Rising 1 (PC) Normal Maps

Posted: Thu Sep 22, 2016 5:17 am
by Gh0stBlade
Capcom's TEX format is well known and used across a variety of their games including Resident Evil 5/6 or Devil May Cry 4. To my knowledge the files are always DDS with a custom header. I suggest looking at available Resident Evil tools as they should work.

Cheers.

Re: Dead Rising 1 (PC) Normal Maps

Posted: Thu Sep 22, 2016 12:51 pm
by PockyWitch
They don't, I tried them already. And it's not always DDS, I already wrote scripts to handle both DXT1 and DXT5 and also the RGBA8888 files. It's the normal maps that seem to be using some sort of RGB format that I cannot comprehend.

Re: Dead Rising 1 (PC) Normal Maps

Posted: Thu Sep 22, 2016 6:54 pm
by Gh0stBlade
Try dump a texture from the vram and compare the data to the raw tex files.

Re: Dead Rising 1 (PC) Normal Maps

Posted: Fri Sep 23, 2016 12:46 am
by PockyWitch
I finally got one extracted. Just had to a 16bit (8.8, 2 channel) DDS header to it and it opens and looks perfectly fine in Photoshop. Just gotta figure out how to save these again, because saving it in 8.8 for some reason brightens them up, although this might be a bug in the nvidia plugin.

Thanks for the tip with the VRAM. Having the file from the ram helped me compare it.