mjkerner Posted August 8, 2011 Share Posted August 8, 2011 Can any modders out there help me out. I have putzed around for several years with Paint Shop Pro, and really haven't needed to use masks much. But I've de-saturated the bocage bmps (even more than sdp's or Aristotle's terrain mods) and now I need a mask, apparently, since simply de-saturating the bmps altered them so that the non-foliage background shows: (The green clumps are the stock "bocage2.bmp" which I didn't touch.) I have made the mask using the RGB split channel method and adjusting contrast as needed. The foliage and stems are all white and the blank area is all black I promoted the base "background" image to a layer, made the mask from the appropriate rgb image, and it in fact works fine on just a regular picture, but in game it is a no go. I have swapped layer positions, eliminated the background layer, tried just the mask layer itself, swapped the white and black mask image...and nothing works. I must be missing a step or something..maybe the layering is wrong or I'm saving it wrong (24 bit bmp image). I have followed four different youtube tutorials, and the PSP guide, and they all get me to the finished mask to put over a pretty picture, but nothing that works in this game. Does this have anything to do with the mdr files by chance? I'm lost! Aristotle? sdp? Rambler? Stoppel? Anyone? 0 Quote Link to comment Share on other sites More sharing options...
Earl Grey Posted August 8, 2011 Share Posted August 8, 2011 So far, that's looking good, but you will have to save that mask as alpha channel - two different things in this case. No exact idea how it's done in PSP, but there should be tutorials - or even a topic in your Program Help. 0 Quote Link to comment Share on other sites More sharing options...
mjkerner Posted August 8, 2011 Author Share Posted August 8, 2011 Earl Grey, thanks. That's probably the problem. None of the tutorials specifically mentioned saving as an alpha channel. I figured that was automatic once the maks layer was generated and the image saved. Guess not! Btw, this is going to be for the Italian Campaign...for making vineyards. 0 Quote Link to comment Share on other sites More sharing options...
Pinetree Posted August 8, 2011 Share Posted August 8, 2011 What PSP version are you using? I have psp8.1 and I seem to recall I couldn't save an alpha channel as its a fairly new feature of bmps. You probably can with newer versions. I'm pretty sure you can with Paint.net though if you want to download that. 0 Quote Link to comment Share on other sites More sharing options...
mjkerner Posted August 8, 2011 Author Share Posted August 8, 2011 Thanks Pinetree. I tried a quick A-channel save before I left for work this morning, and althiough it did save (the option wasn't greyed-out), it didn't work in game. The manual (for PSP 7) listed several formats that would work for A-channel saves, but not .bmp. I may just upgrade to a newer PSP because I can see a long career ahead of me modding this game, if only for my own benefit, but I do have Paint...I'll give it a shot. 0 Quote Link to comment Share on other sites More sharing options...
patboy Posted August 8, 2011 Share Posted August 8, 2011 mjkerner Gimp 2 is nice too!! 0 Quote Link to comment Share on other sites More sharing options...
mjkerner Posted August 8, 2011 Author Share Posted August 8, 2011 Man, Gimp has been around forever, and a lot of guys into IL2 seemed to used that program, but I didn't ever mod that game in the 9 years I was addicted to it. 0 Quote Link to comment Share on other sites More sharing options...
Stoppel Posted August 8, 2011 Share Posted August 8, 2011 Some alternative programs are: GIMP, PaintStar CinePaint, Krita, Artweaver, Paintnet 0 Quote Link to comment Share on other sites More sharing options...
mjkerner Posted August 8, 2011 Author Share Posted August 8, 2011 Thanks for the suggestion, Stoppel. So, just to be clear, if I save the mask layer in an alpha channel, then the bmp image should be good to go, correct? 0 Quote Link to comment Share on other sites More sharing options...
RockinHarry Posted August 9, 2011 Share Posted August 9, 2011 Working with PSP too, but just for the sake of editing CMN files, I installed Gimp as well. Several weeks ago, I found a similar thread in CMSF forum: http://www.battlefront.com/community/showthread.php?t=84444 0 Quote Link to comment Share on other sites More sharing options...
mjkerner Posted August 9, 2011 Author Share Posted August 9, 2011 RockinHarry, I have spent the better part of two days trying to figure this out. My head is spinning. I read that 24 bit bmp's don't support alpha channels, but 32 bit does, and the CMSF discussion confirms that. But I thought CMBN bmp's were 24 bit??? Anyway, I'm still pretty lost--I need to figure how to do masks and alpha channels in Gimp...quite a bit different than PSP. If Aristotle or sdp read this, can one of you jump in and tell me how you modded all the foliage and bocage files? Thanks a million to everyone who has chimed in. I'm determined to figure this out because there is a lot more modding to be done over the life of the CMBN franchise. 0 Quote Link to comment Share on other sites More sharing options...
Earl Grey Posted August 9, 2011 Share Posted August 9, 2011 Too bad I can't help you more with that since I'm using PhotoShop... 0 Quote Link to comment Share on other sites More sharing options...
Marco Bergman Posted August 9, 2011 Share Posted August 9, 2011 I use PSP9. You can do pretty much everything in PSP first, and then convert the files in Gimp. PSP: 1) make your picture with transparent bits. Easiest way to do this, duplicate base layer (and hide it) then work with eraser on layer 1. 2) save as .png Gimp: 1) open .png 2) you need to make sure the transparency is all-or-nothing or it won't work in the game. Layer / Transparency / Threshold Alpha / 254 (out of 255) 3) Unless you want black outlines, you need to set the background colour for the edges. If carefully chosen this can really enhance the look. Click the Background colour box / click the eyedropper / select the correct BG colour. 4) File / Save As / .png When the dialogue box for png options comes up, UNTICK "Save colour values from transparent pixels", then save. 5) File / Close ( close file.) 6) File / open recent / the file . ( We need to close and reopen it to reset the BG colour.) 7) File / Save As / .bmp select 32 bit bmp (A8R8G8B8) Open in game and check results. Remember that you need to back out at least as far as the title page for the game to pick up the changes, and if you change the transparency ( ie add it, or remove it) you'll need to restart the game before it takes notice. I work with Gimp and PSP both open, tweak in PSP, open the pngs in Gimp-reset BG-save, test. Repeat. Lots. If you adjust the picture in Gimp, it is essential to remember to do the threshold Alpha thing, and also to make sure the eraser is set to 100% opacity and hard edge. (Textures with partial transparency just disappear entirely.) 0 Quote Link to comment Share on other sites More sharing options...
mjkerner Posted August 9, 2011 Author Share Posted August 9, 2011 Thanks Marco. Now why didn't I think of that? Jeez, could they make it any more complicated? The more I read, the more I'm wondering why they picked the bmp format for transparencies. Anyway, I'll give this a go and let you know how it turns out. Thanks so much, Marco. 0 Quote Link to comment Share on other sites More sharing options...
mjkerner Posted August 19, 2011 Author Share Posted August 19, 2011 Hey marco, I'm finally getting back to this and trying out your method. One question...if the transparency is all or nothing, why 254? Isn't 255 pure white (and 0 pure black)? 0 Quote Link to comment Share on other sites More sharing options...
Marco Bergman Posted August 19, 2011 Share Posted August 19, 2011 If you set it to 255, everything will disappear. It's the threshold at which the setting flips. so 0=everything except 100% transparent solid, 1=everything except 99.7%+ transparent solid, 254=nothing except 0% transparent solid, 255=nothing solid. I use 254 because it forces me to ensure I don't draw with feathered edges. But you can use anything from 0-254. Just not 255. 0 Quote Link to comment Share on other sites More sharing options...
mjkerner Posted August 19, 2011 Author Share Posted August 19, 2011 Thanks for the explanation, Marco. Wish me luck. 0 Quote Link to comment Share on other sites More sharing options...
Pinetree Posted August 20, 2011 Share Posted August 20, 2011 I use PSP9. You can do pretty much everything in PSP first, and then convert the files in Gimp. PSP: 1) make your picture with transparent bits. Easiest way to do this, duplicate base layer (and hide it) then work with eraser on layer 1. 2) save as .png Gimp: 1) open .png 2) you need to make sure the transparency is all-or-nothing or it won't work in the game. Layer / Transparency / Threshold Alpha / 254 (out of 255) 3) Unless you want black outlines, you need to set the background colour for the edges. If carefully chosen this can really enhance the look. Click the Background colour box / click the eyedropper / select the correct BG colour. 4) File / Save As / .png When the dialogue box for png options comes up, UNTICK "Save colour values from transparent pixels", then save. 5) File / Close ( close file.) 6) File / open recent / the file . ( We need to close and reopen it to reset the BG colour.) 7) File / Save As / .bmp select 32 bit bmp (A8R8G8B8) Open in game and check results. Remember that you need to back out at least as far as the title page for the game to pick up the changes, and if you change the transparency ( ie add it, or remove it) you'll need to restart the game before it takes notice. I work with Gimp and PSP both open, tweak in PSP, open the pngs in Gimp-reset BG-save, test. Repeat. Lots. If you adjust the picture in Gimp, it is essential to remember to do the threshold Alpha thing, and also to make sure the eraser is set to 100% opacity and hard edge. (Textures with partial transparency just disappear entirely.) I found something last night called AlphaConv that you can just drag a png file onto it and it will convert it into a 32-bit bmp.A blog post here explains it better than i could and gives a download link. It works really well 0 Quote Link to comment Share on other sites More sharing options...
mjkerner Posted August 20, 2011 Author Share Posted August 20, 2011 Oooooh, sounds good. Thank you for cluing me in, Pinetree! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.