255 blue doesn't seem to work

Forum Archive - from http://theuniversal.net
Locked
User avatar
Jemrada
World Owner
World Owner
Posts: 632
Joined: Tue Aug 10, 2004 3:47 pm
Location: uhhh!
Contact:

255 blue doesn't seem to work

Post by Jemrada »

I have been tring to make a building disappear really. What I have done is make it all Blue 255. But it shows up all blue in the game. I have tried this in Photo Shop and paint. Any ideas?
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

any special pallet editing being done to the pic?

i have found that color indexing via paintshop to take a pic down to 256 colors makes blue 255 no longer 255.
but if you use 24-bit in mspaint it works fine.
to counter act the large size, could just make the texture 1 pixle by 1 pixle. since the building is ghoing to be all one color anyway, the texture wont need to be big.
User avatar
Jemrada
World Owner
World Owner
Posts: 632
Joined: Tue Aug 10, 2004 3:47 pm
Location: uhhh!
Contact:

Post by Jemrada »

ok, I will try that.
User avatar
Fooli
Staff
Staff
Posts: 1957
Joined: Sun Oct 05, 2003 2:38 pm
Location: Mars

Post by Fooli »

Prolly an obvious addition, but... don't use jpeg. The compression messes up the colour indexing (or some such arty term). Bitmap or RLE bitmap is best. AFAIK you can use 256 colours but you need to be somewhat adept at manipulating the palette to preserve the pure blue. Praps hedge can explain it better :)
f
User avatar
hedgehog
Staff
Staff
Posts: 1057
Joined: Tue Sep 30, 2003 2:57 am
Location: ann arbor, michigan
Contact:

Post by hedgehog »

a] fooli's dead on. jpeg doesn't support colour indexing, and the compression artifacts will kill the blue.

b] zar's partly right. indexing it will include additional shades of blue if the entire thing isn't entirely blue. if you select the "custom" pallette, you'll often find a number of blues in there. i usually go in and manually set them to 0000ff, which is the hex value for the 0,0,255 rgb blue.

if you're painting an image where part of it is visible, use pencil instead of airbrush -- usually it's the antialiasing that creates the additional blue shades. it'll look a bit crappy, but it's the same effect that happens when you have the colour indexing proper. if it truely is all blue, just use paint bucket tool to make sure you get everything, and set your colour pallette to 1 when indexing. return to the "custom" section and double check it's the correct value for the blue. additionally if it's all blue, can always make the image dimensions nice and small (25px or so) to reduce the impact of saving it as a bmp. i'd suggest 1px but i dunno how video cards might handle that.

saving it as a bmp, if it's indexed you'll only have the option for 8bit. you can check RLE compression to further reduce the size.

ms paint will always save it in whatever bit depth because its colour pallette is only 8bit. the only time paint will give you 24 bit colour is if you paste an image in that has a higher bit depth. photoshop is 32bit colour by default unless your monitor is set to a lower colour depth.

lastly a neat way to get the image all one colour i think, is to select the background layer, then do ctrl+a (select all) and hit backspace. on normal layers, it will clear the selection, but on background or locked layers, it'll fill the selection with the background colour. set your background colour obviously to the blue :)
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

alternatively, use a sensible art package like paint shop pro which lets u diable anti-aliasing and gives u color reduction options that dont alter the colours. :]
User avatar
hedgehog
Staff
Staff
Posts: 1057
Joined: Tue Sep 30, 2003 2:57 am
Location: ann arbor, michigan
Contact:

Post by hedgehog »

er, you can create an image with 8 bit colour in photoshop when making a new image just like psp :)

the pencil tool doesn't anti-alias, airbrush does (unless again, you're painting on an 8 bit image).

sensible. pff :) more like "programmer friendly" ;)
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

Its texture artist friendly :)
User avatar
hedgehog
Staff
Staff
Posts: 1057
Joined: Tue Sep 30, 2003 2:57 am
Location: ann arbor, michigan
Contact:

Post by hedgehog »

you're our new texture artist? guess i better get to coding in the crow weap fixes then.. ;)
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

im just quoting from ppl who do it for a living :]
User avatar
hedgehog
Staff
Staff
Posts: 1057
Joined: Tue Sep 30, 2003 2:57 am
Location: ann arbor, michigan
Contact:

Post by hedgehog »

you sure know how to retain a volunteer ;)

okay fine, "photoshop is web designer friendly" then.

funny no one ever brings up fireworks or corel draw, heh.
User avatar
Jemrada
World Owner
World Owner
Posts: 632
Joined: Tue Aug 10, 2004 3:47 pm
Location: uhhh!
Contact:

Post by Jemrada »

Thanks guys, I was using .jpg. Useing .bmp now and it sems to work fine.
Locked