XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Wed Mar 29, 2017 10:19 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 70 posts ]  Go to page Previous  1, 2, 3, 4, 5
Author Message
 Post subject: Re: Dishonored2 (.bimage7)
PostPosted: Mon Feb 20, 2017 9:43 pm 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Sun Jul 06, 2014 6:30 am
Posts: 310
Has thanked: 52 times
Have thanks: 195 times














You can make the ads go away by registering

Because I spend so much time making tools, I rarely get to play with the tools. :mrgreen: I rely on people to report issues, like things not converting. Why I made this program output clear failure info, so people would report it. but since nobody did that, this morning I did 2 things.

A) added recursive batch file support :bleh:
B) ran it on all the files from pack 1

I found 5 new formats I hadn't seen before. So I added supports for 4 of them. The 5th, there was only one example, and it seems to be a type of Cubemap which I will have to dig into more. So if you see any other failures for format code 12 - 7, let me know, because only 1 example isn't much to go on. And if there's still any other codes that don't convert, let me know.

So enjoy the updated version.

- Added recursive batch file support. (place exe and included batch file in root directory, will process all files in all subdirectories, preserving hierarchy. output log is saved to converter.txt)
- Added support for format codes: 16 - 5, 4 -5, 10 - 6, 14 - 5

Enjoy.

Edit: newer below.


Last edited by volfin on Fri Feb 24, 2017 4:45 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Dishonored2 (.bimage7)
PostPosted: Tue Feb 21, 2017 10:33 am 
Offline
n00b
User avatar

Joined: Thu Nov 17, 2016 11:22 pm
Posts: 14
Has thanked: 13 times
Have thanks: 4 times
This is great, thank you very much! I found a couple 12 - 7 files, some 2 - 5 files and only one 6 - 7 file. Could you add the file name to the log output? I will send you the files then.

Also do you have any idea about converting the resulting dds files to png? I haven't tried Photoshop yet because I don't have it, and texconv, imagemagick and Noesis fail on many of the files.


Top
 Profile  
 
 Post subject: Re: Dishonored2 (.bimage7)
PostPosted: Tue Feb 21, 2017 6:37 pm 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Sun Jul 06, 2014 6:30 am
Posts: 310
Has thanked: 52 times
Have thanks: 195 times
swinei wrote:
This is great, thank you very much! I found a couple 12 - 7 files, some 2 - 5 files and only one 6 - 7 file. Could you add the file name to the log output? I will send you the files then.

Also do you have any idea about converting the resulting dds files to png? I haven't tried Photoshop yet because I don't have it, and texconv, imagemagick and Noesis fail on many of the files.


The file that fails is right above the failure message.

example:
Converting D:\Program Files\SteamLibrary\steamapps\common\Dishonored2\base\out\Pack 1\generated\image\maps\campaign\dust\dust_sky_reflection.bimage7 ( 1 / 1 )
Unknown Format 12 - 7

so dust_sky_reflection.bimage7 failed.

As for conversion, there's very few tools that work with DX10 textures. the Photoshop Intel plugin is about it. But a couple years ago before that was around, I tried to get a command line tool working. You can give it a try, I have no idea if it handles all BCx formats, it may handle some: viewtopic.php?p=126949#p126949

Also I understand the DirectX SDK (June 2010) should have a command line tool as well.


Top
 Profile  
 
 Post subject: Re: Dishonored2 (.bimage7)
PostPosted: Wed Feb 22, 2017 6:32 am 
Offline
n00b
User avatar

Joined: Thu Nov 17, 2016 11:22 pm
Posts: 14
Has thanked: 13 times
Have thanks: 4 times
Ah okay, you could put an empty line to make that more obvious. I uploaded the 2 - 5 and 12 - 7 files here. 12 -7 is still only two files but two is better than one :P

About converting the files, I went with the new texconv.exe from DirectXTex, which is based on the SDK. One of the creators says here to use DirectXTex. It fails on two formats: BC6UCube and BC5S, could you take another look at those?


Top
 Profile  
 
 Post subject: Re: Dishonored2 (.bimage7)
PostPosted: Wed Feb 22, 2017 6:48 pm 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Sun Jul 06, 2014 6:30 am
Posts: 310
Has thanked: 52 times
Have thanks: 195 times
swinei wrote:
Ah okay, you could put an empty line to make that more obvious. I uploaded the 2 - 5 and 12 - 7 files here. 12 -7 is still only two files but two is better than one :P

About converting the files, I went with the new texconv.exe from DirectXTex, which is based on the SDK. One of the creators says here to use DirectXTex. It fails on two formats: BC6UCube and BC5S, could you take another look at those?


Well there's nothing for me to look at. I output industry standard DDS, which is why they all work with Intel Texturworks. if directxtex is failing it's something on their end. AFAIK that tool was only for Metal Gear Solid V, so probably has some quirks it expects. I'll look at the files you provided when I get time, had one of my PC's disk fail so recovery is my priority atm.


Top
 Profile  
 
 Post subject: Re: Dishonored2 (.bimage7)
PostPosted: Fri Feb 24, 2017 4:45 am 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Sun Jul 06, 2014 6:30 am
Posts: 310
Has thanked: 52 times
Have thanks: 195 times
Here's the version that adds support for the 2-5 textures. They aren't very useful, they seem to be data textures for calculating depth of field or something. but they convert now.

The 12-7 textures I simply can't figure out. They might also be strange data. But since there's only less than a handful of them, and they are labeled as a cubemap, I think they are no big loss. I added the format code as a known but non-convertible.

Enjoy


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: Dishonored2 (.bimage7)
PostPosted: Mon Mar 06, 2017 4:31 pm 
Offline
n00b
User avatar

Joined: Thu Nov 17, 2016 11:22 pm
Posts: 14
Has thanked: 13 times
Have thanks: 4 times
Cool! And about those files I couldn't convert:

Quote:
For the BC5S files, they load with DirectXTex/texconv DDS loader just fine. The reason you are getting 80070032 (which is HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED)) is because PNG files don’t support writing the ‘native’ BC5S decompressed pixel format which is R8G8_SNORM. If you provide a format conversion it will work:

texconv addermire_glass_01_n.bimage7.BC5S.dds -ft png -f R8G8B8A8_UNORM

The same problem is impacting your BC6H files because the native decompressed pixel format is R32G32B32A32_FLOAT which again is not a format supported by PNG—it is supported by HDR and WDP (HD Photo):

texconv aud_pr_obe_1397_cube_bc6h_uf16.bimage7.BC6UCube.dds -ft hdr

There is a second issue in that the cubemap files contain 6 images, not just one. The TGA and HDR writers will just write the first image, but the WIC writer tries to encode multi-frame images, but this is not supported by PNG. You can use TIF to encode R32G32B32A32_FLOAT multi-frame images which works as well:

texconv aud_pr_obe_1397_cube_bc6h_uf16.bimage7.BC6UCube.dds -ft tif

or

texconv aud_pr_obe_1397_cube_bc6h_uf16.bimage7.BC6UCube.dds -ft tif -f R8G8B8A8_UNORM

You can also make use of the texassemble tool to write a cubemap in various single-image ways:

texassemble h-strip aud_pr_obe_1397_cube_bc6h_uf16.bimage7.BC6UCube.dds -o cube.png -f R8G8B8A8_UNORM

-Chuck Walbourn

https://blogs.msdn.microsoft.com/chuckw/


Top
 Profile  
 
 Post subject: Re: Dishonored2 (.bimage7)
PostPosted: Mon Mar 06, 2017 6:11 pm 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Sun Jul 06, 2014 6:30 am
Posts: 310
Has thanked: 52 times
Have thanks: 195 times
Ah, glad you were able to find a solution. I figured it had to be something with their tool. I appreciate you providing the details, they are interesting. :)


Top
 Profile  
 
 Post subject: Re: Dishonored2 (.bimage7)
PostPosted: Mon Mar 13, 2017 4:39 pm 
Offline
n00b

Joined: Mon Oct 21, 2013 7:43 pm
Posts: 17
Has thanked: 7 times
Have thanks: 0 time
Have weights been figured out yet?


Top
 Profile  
 
 Post subject: Re: Dishonored2 (.bimage7)
PostPosted: Mon Mar 13, 2017 5:05 pm 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Sun Jul 06, 2014 6:30 am
Posts: 310
Has thanked: 52 times
Have thanks: 195 times
they probably could be, but I have no time to spend on it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 70 posts ]  Go to page Previous  1, 2, 3, 4, 5

All times are UTC + 1 hour


Who is online

Users browsing this forum: Google [Bot] and 7 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