Posted: Sun Jan 22, 2012 5:53 pm Post subject:
Darken / lighten colors
A feature that let's you darken or lighten a range of color (e.g. grayscale, brown1, etc) by any value you want. As of now I have tons of custom cschemes to do this. A kinda working trick for this is to have the darken / lighten cscheme for only 1 color block (e.g. brown1), then if you want to darken soviet you first convert it to brown1, apply the darken cscheme, then covert it back to soviet. But if the SHP already had brown1 in the first place, that would get darkened too. So a feature like this would cut out alot of hassle.
EDIT: This feature would be useful for the Voxel Editor too. _________________ QUICK_EDIT
Joined: 22 Nov 2010 Location: Iszkaszentgyorgy, Hungary
Posted: Sun Jan 22, 2012 5:57 pm Post subject:
You can sorta use the 24 bit color conversion method and adding/subtracting white (same amount ffrom ll the thre channels) but yeah, it'd look good, I have cschemes for that too ATM.
(Tho I have no issues of unwanted darkening because I use the 208-239 range too as two gradients with their cschemes and no TS colors. ) _________________ "If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more... QUICK_EDIT
Why bother? cschemes can do the job just fine, I made each color line its own darkener where each use of script darkens by 1 shade.
Besides separate function like this wouldn't be able to likely work with different palettes so cschemes is better way unless we work on the principle of only working with unittem.pal
Keep in mind, with buildings especially this kinda separate color line darkening is kinda bad since mixing of color lines is common and when you only change one, the more you do it, the more you screw up the lighting and eventually your shp is very pixelated and well...need I say crap? QUICK_EDIT
Actually the color replace menu can be used for this, though you have to select each individual color one by one.
It would be handy if you could use the same color replace selection technique here that you can use in the palette editor, e.g. it allows you to select multiple colors at once and paste them over the colors you want to replace. This way it wouldn't be dependent on any palette, but would make color replacing very handy and quick. _________________ QUICK_EDIT
As the others said, the color schemes are much more useful for that.
To program and add such a feature would surely do much more work, than letting each user create a simple text file which does the same job. And here you can also use quick enumeration tools like ultraedit column-mode which allows you to create any number sequence you need.
Your example would look like this in the cscheme file
Code:
[Info]
Name=Darkener
By=The PPM Community
Website=http://www.ppmsite.com/
ImageIndex=-1
Split=false
gametype=0
schemetype=1
A feature that let's you darken or lighten a range of color (e.g. grayscale, brown1, etc) by any value you want. As of now I have tons of custom cschemes to do this. A kinda working trick for this is to have the darken / lighten cscheme for only 1 color block (e.g. brown1), then if you want to darken soviet you first convert it to brown1, apply the darken cscheme, then covert it back to soviet. But if the SHP already had brown1 in the first place, that would get darkened too. So a feature like this would cut out alot of hassle.
I can't even comprehend this. You converted soviet colors to brown1, darkened the brown1, then converted back to soviet? And you're complaining about the brown1 elsewhere in the SHP other than the desired area darkening? You are asking for a function that lets you easily darken pixel by pixel from what I understand. Otherwise there's absolutely no reason you need anything outside of cschemes. QUICK_EDIT
A feature that let's you darken or lighten a range of color (e.g. grayscale, brown1, etc) by any value you want. As of now I have tons of custom cschemes to do this. A kinda working trick for this is to have the darken / lighten cscheme for only 1 color block (e.g. brown1), then if you want to darken soviet you first convert it to brown1, apply the darken cscheme, then covert it back to soviet. But if the SHP already had brown1 in the first place, that would get darkened too. So a feature like this would cut out alot of hassle.
I can't even comprehend this. You converted soviet colors to brown1, darkened the brown1, then converted back to soviet? And you're complaining about the brown1 elsewhere in the SHP other than the desired area darkening? You are asking for a function that lets you easily darken pixel by pixel from what I understand. Otherwise there's absolutely no reason you need anything outside of cschemes.
I said IF you did that. An example to show that you need alot of cschemes for the process. Right now I have crapload of cschemes to darken / lighten each different color block. I know cschemes can be used for this, but if you don't have a cscheme ready for a certain color, you need to close SHP builder and go create it palette editor (or by hand as shown by LKO), then re-open SHP builder for it to read the new cscheme. So it's not something that can't be done, but it could be alot more handy if the functionality of the palette editor was in the color replace menu as seen in the screenshot above.
Or another way that doesn't require any code would be to include a lighten / darken by 1 cscheme for each Unittem.pal color block. So in addition to all the default swaps like soviet -> brown1, there'd be Darken soviet by 1, and Lighten soviet by 1. And maybe cschemes to darken / lighten every single color of the Unittem.pal. If most people seem to have these cschemes, maybe it would be good to include them with the SHP builder. _________________ QUICK_EDIT
Something like this. Didn't realise you can get the cschemes to show up in the PalPack 1 & 2 menus. I might create these for all the color blocks and a few other generally useful cschemes, then release it as a download so people can get them quickly should they reinstall SHP builder or install it on a new computer.
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum