Advertisement Jump to content
Sign in to follow this  
Stainless

Strange graphics file format

This topic is 1739 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Has anyone come across a graphics file format that starts with IMF 

 

The file extension is TGA, but it's not readable as a TGA file.

 

I know the short at offset 8 is the image width, and the next short is the image height.

 

The images are either 24 bits per pixel or 32 and are not compressed, well the file sizes don't suggest they are compressed.

 

A 128 by 128 32 bit image is 65,804 bytes

 

I have tried the obvious skip the header and load the rest as pixels, no good

 

Anybody come across this file format?

 

Share this post


Link to post
Share on other sites
Advertisement

I haven't run into files like that in particular, but a bit of googling implies it may be an ImageForge file.

Share this post


Link to post
Share on other sites

Yes, that tool works so that is the correct file format.

 

I need to write my own loader for it though, I'll have a look at ImageForge and see if that gives me any clues.

Share this post


Link to post
Share on other sites

I don't think it's related to ImageForge, just a proprietary format made for those games. Did you try stripping the header (I think it has width, height and bit depth) and reading the rest of the file as a TGA image?

Share this post


Link to post
Share on other sites

I've tried reading the files in multiple ways.

 

Things like straight 32 bit per pixel. four bit planes one byte per pixel, etc. No luck. I'll keep hacking away.

 

hmmm.. I wonder if you are right, I'll read up on the TGA header

 

 

No doesn't look like it

 

49 4D 46 1A 31 30 00 01 80 00 80 00 01 04 04 04 04 04 04 04 04 04 02 02 04 02 02 02 01 04 04 04 02 02 02 02 04 04 04 04 04 02 04

 

I     M   F        1                |width|height|

 

I've never seen a header like that before, all those 4's and 2's confuse the hell out of me

Edited by Stainless

Share this post


Link to post
Share on other sites

I've stuck one of these graphics on the project page as 

 

2bladedmetall.tga

 

http://stainlessbeer.weebly.com/il2-mod-tool.html

 

I'm giving back to the IL2 community, a while ago I used some of their meshes for a demo (not a commercial product) and now I want to pay them back with an app that helps modders test their aircraft.

 

It's almost complete, I just have a couple of issues left to fix, this graphic issue is the most annoying

 

Any help would be gratefully received

Share this post


Link to post
Share on other sites

49 4D 46 1A 31 30 00 01 80 00 80 00 01 04 04 04 04 04 04 04 04 04 02 02 04 02 02 02 01 04 04 04 02 02 02 02 04 04 04 04 04 02 04

The section after the image width and height look like flags that were OR-masked together.

Edited by TheComet

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!