XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Thu Jun 21, 2018 7:03 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: CryEngine .dds
PostPosted: Thu May 17, 2018 3:23 pm 
Offline
veteran

Joined: Mon Sep 22, 2014 1:23 am
Posts: 103
Has thanked: 43 times
Have thanks: 8 times

I tried following this post below, but I'm getting awful results from the _ddna image type.
To me, it only works for diffuse, displacement, etc.
When I do the same for the normal map, I get results like this:

Image

I know it's close but yet very far away. Can I get some help?
I uploaded random samples here: https://drive.google.com/open?id=18G5sl ... odI_dfYQRf


o0Crofty0o wrote:
Ok what you need:
Noesis (huge thanks here to MrAdults for supporting the normal map format of these properly, even Photoshop doesn't like them much)
Hex Editor
Intel .dds plugin for Photoshop (for the specgloss map thingies)
This .zip with headers:
Attachment:
BC4_Headers.zip

1. Textures are made of these files:
Image
The .dds contains the header info and i think smallest mip level, 1-8 files are increasing mips of the texture. Just take the biggest one (with the highest number, in this case 8, it is the most HD version)

2. Open the .dds and the .8 file in HxD. Switch to the .8 file and select everything with ctrl+a, then copy it with ctrl+c.

3. Switch to the .dds file and select everyting starting at Offset 94 to the end:
Image
(94 is important, if you do it at for eg 95 your texture will be shifted sidewards and not match the UV)
Then simply paste with ctrl+p and save with ctrl+s.

4. Open texture in Noesis and convert to your format of choice.
You can alternatively open these in Photoshop using the Intel plugins mentioned above. For that open your texture in HxD again and change this small part from whatever it is to 01 (thanks to chrrox for figuring this out):
Image

5. You may have noticed that _ddn (normal maps) usually don't just have the 1-X files but also files called like 6a,7a,8a. 1-8 belong to normal map, 1a-8a belong to the gloss map.
You have to convert it seperately (as far as i know anyway). I don't know where the game gets this header from, it isn't the .a file. I figured it's BC4 textures however and added a .zip to this post that has headers for the dimensions i came across in the files. The gloss maps here share the dimensions the normal maps have (4k normal map = 4k gloss map). So if it is 4k, open BC4_4k_header.dds and the .8a file in HxD, copy everything from the .8a file again and paste it below the header (offset 80). Save it under a new name you will find easy.
Noesis displays these as plain white, but Photoshop with the linked plugins loads them fine.

6. I noticed that for some reasons the normal map channels seem to be switched (red should be green, green should be red). If you don't do that shading might look quite bad in whatever software you render in.

7. You're finally done and can load them all on your model! Yey!
Image


You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: CryEngine .dds
PostPosted: Thu May 17, 2018 4:59 pm 
Offline
advanced

Joined: Fri Oct 16, 2015 8:05 pm
Posts: 62
Has thanked: 2 times
Have thanks: 42 times
This is a format error. You changed something in the header files? Or what tool you use to display those? Noesis displays them correct. I only get this error when i change the format at offset 0x80 from 0x54 to 0x53. signed and unsigned encode. This may be a decoder error in your texture viewer?

Also. I'm not sure howto get unlinked post attachements. Not that i needed those bc4 headers. It's the same file header c/p with just format 0x50. This can be read in the .a files after the CRYF ormat Fourcc. It sure is a weird thing this header is variable in size. I call this 0xbaadc0de. :mrgreen:


Top
 Profile  
 
 Post subject: Re: CryEngine .dds
PostPosted: Thu May 17, 2018 9:40 pm 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1092
Has thanked: 2140 times
Have thanks: 603 times
link to that original post :D
viewtopic.php?p=130909#p130909

episoder wrote:
I call this 0xbaadc0de. :mrgreen:

i see what you did there :lol:


_________________
Noesis
Hex2obj
QuickBMS
Unity Studio
TextureFinder


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group