Page 1 of 1

.bimage of Doom 3 BFG Edition.

Posted: Sat Feb 16, 2019 6:41 am
by Phobos90
Hi,


I looked around this forum for very long (this place is useful and awesome) and I found topics about the .bimage format for several games, among them RAGE, Wolfenstein TNO, Dishonored 1/2, The Evil Within 1/2. I was wondering if the case of Doom 3 BFG Edition's .bimage format could be treated too, I've been trying to get my hands on those textures files for years but I can't get my head around the complexity of decoding/decompiling a file.

I try .bimage converters of each of those games in Noesis and also Quickbms, but it seems none of the scripts works for any game but the one it was written for.


I hope for someone to point my struggles in the right direction to achieve my goal of converting .bimage files from D3 BFG Edition to an usable image format.


Here's a zip with samples for whatever is worth:

https://www.mediafire.com/file/csqgdj5p ... s.zip/file


Thank you in advance!

Re: .bimage of Doom 3 BFG Edition.

Posted: Sat Feb 16, 2019 10:10 am
by Acewell
here is Noesis python script to open your bimage samples. :D
tex_Doom3BFGEdition_bimage.zip
supports dxt1 and dxt5, top level mip only.

from which platform did your samples come from?

Re: .bimage of Doom 3 BFG Edition.

Posted: Sat Feb 16, 2019 6:30 pm
by Phobos90
Hi Acewell, thanks for your response!


The samples are taken from the PC version, it seems like the script is working to some extent. Specular maps seems to appear correctly, but diffuse and normal maps have problems with their channels, for instance the normal map's blue channel has no data, and what is intended to be the red channel is placed in the alpha one.

Image


All in all this is exiting, finally I think this is getting somewhere!

Re: .bimage of Doom 3 BFG Edition.

Posted: Sun Feb 17, 2019 1:17 am
by Acewell
Phobos90 wrote: Sat Feb 16, 2019 6:30 pmbut diffuse and normal maps have problems with their channels, for instance the normal map's blue channel has no data, and what is intended to be the red channel is placed in the alpha one.
nothing i can do about the colors, that is the way the data was stored. :)
i have seen green and yellow normal map images in other games so i think this is not unusual.
the game engine was likely designed to decode the images in this way.

Re: .bimage of Doom 3 BFG Edition.

Posted: Sun Feb 17, 2019 7:22 am
by Phobos90
Oh I see. Then probably the game treat textures in a way I'm not use to, I wish I know more about id tech 5 dealing with texture channels.

This is the texture:

Image

Inspecting the channels I found this:

Red Channel:
Image

Green Channel:
Image

Blue channel is just a solid tone.

Alpha channel:
Image

I think the real data is in channel alpha since looks like a greyscale version of the intended texture, so I think red and green channels are used in a different way to color the data in the alpha channel, not as regular RGB channels works for simple images as I know.

Edit: I started reading about color formats and I found about color spaces, seems like maybe this is a case of YVU/CMYK color format, problem is I don't know how to convert this to a RGB color space properly.

Re: .bimage of Doom 3 BFG Edition.

Posted: Mon Oct 04, 2021 5:42 am
by y2keeth
same issue

Re: .bimage of Doom 3 BFG Edition.

Posted: Mon May 30, 2022 5:42 am
by y2keeth
rbdoom3bfg has a conversion process now so you can get them out for doom3 bfg anyway

Re: .bimage of Doom 3 BFG Edition.

Posted: Mon Feb 20, 2023 6:51 am
by y2keeth
also wattos game extractor handles them also now
http://www.watto.org/game_extractor.html