Jump to content

How to save .bmp files?


Recommended Posts

Hi,

can anyone give me a quick answer on how to save modded .bmp files to get them to work with Combat Mission? Im using GIMP and whatever settings I use either the alpha textures are not recognized (and instead shown) or some other oddity occurs.

It seems that there are graphics with 24 Bit-depth which I can save just fine and then there are some with 32 Bit-depth which cause me trouble. Saving them as 32 Bit A8 R8 G8 B8 in GIMP somehow isn't possible and I suspect this is what I should be doing but can't. Any ideas?

Link to comment
Share on other sites

I use PSP 9 and have exactly the same problem because there is no PSP 9 support for 32 bit-depth files.

Game graphic studio is a modder's graphic tool that will read 24 bit-depth and save as 32, but there remains the problem of inserting the right hex numbers.

My solution was to write a script for a hex editor which writes the required alpha bytes into the file following 32 bit-depth conversion.

Therefore, if your query specifially regards 32x32 floating icon files I might be able to help you since I have a number of self-prepared scripts.

Link to comment
Share on other sites

To do this, I think it would be easier for me if you uploaded or sent me a greyscale of the alpha. black 0 0 0 being no transparency and white 255 255 255 being full transparency. The more complex the alpha the longer it will take to produce a script.

my email is d dot brackenburygreen at hotmail dot co dot uk

Do you have a Hex XVI32? My scripts are written for this tool.

Link to comment
Share on other sites

When I view the alpha on the original example in Game Graphic Studio, I can see that there is variable transparency on the tree edging (for a shading effect) which gives it that less crisp look. I would say these pixels vary between 20% transparency to around 50% transparency but they are across that spectrum. My conclusion is that to get that scale of effect with your files (without hex-editing each pixel) you will need art software with 32 bit-depth capability. Perhaps someone else on the fourms with Photoshop can help you improve on these now for you?!!?

I have converted the ones you sent me into (trans on or off only) though; find attached.

foliage tiles trans added.zip

Link to comment
Share on other sites

I have used PhotoShop for this kind of thing but I don't like editing icons with transparency in PhotoShop at least I have not figured out an efficent way to do it. My light weight graphic editor Paint.Net does not handle 32bit bmp files well at all. But then I found Greenfish Icon Editor. It handles transparency seamlessly (no editing an image layer and then separately an transparency layer) and it is nice and light weight too. I did my icon mod with it. Very happy with it.

Link to comment
Share on other sites

Thanks for that tip, Ian. Transparencies always give me fits...initially it was hard to get my head around the concept and procedure, and my Corel Paint Shop Pro limitations require saving/converting in Gimp...at least that's how I remember it. Greenfish sounds like the way to go.

Link to comment
Share on other sites

Try it out and see what you think. The only thing I do not like is that if you set a colour with transparency and paint with it it does not replace the pixels already there but instead combines them. This can create opportunities for cool effects but I find I usually mutter under my breath "oh yeah I forgot it does that, will I ever remember" before erasing the pixels and painting again.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...