Planetside Software Forums

General => Open Discussion => Topic started by: N-drju on May 20, 2018, 03:37:16 PM

Title: Photoshop - grayscale colors as INDEX not PERCENTAGE
Post by: N-drju on May 20, 2018, 03:37:16 PM
I am at a loss trying to figure out how to switch color units in grayscale images from percentage values into index (0-255) values in Photoshop...

Mind you - I don't want to change a picture into indexed color. Don't confuse it.

The thing is, I need all, 256 shades of gray to operate on. However, when I use grayscale palette in my image, the colors are rounded up into these fucking percents... which accounts for an unacceptable loss of 2,55 color per one percent...

If you now how I can switch color unit display mode, I would sure appreciate...

[attachimg=1]
Title: Re: Photoshop - grayscale colors as INDEX not PERCENTAGE
Post by: archonforest on May 20, 2018, 03:48:44 PM
I think it is not possible since it is grayscale. Since there is nothing to mix into that no other slider presents. Perhaps you can make the original image black and white?
Title: Re: Photoshop - grayscale colors as INDEX not PERCENTAGE
Post by: N-drju on May 21, 2018, 02:48:40 AM
There is no "original" image. I need to sculpt one from scratch but have only 100 shades of gray instead of the 256 that are normally possible. Even when I enter, say, 33 for R, G and B it still reverts to the fucking percent value which badly modifies the RGB input.
Title: Re: Photoshop - grayscale colors as INDEX not PERCENTAGE
Post by: Dune on May 21, 2018, 06:30:57 AM
Why don't you 'sculpt' in 16-bit greayscale tiff?
Title: Re: Photoshop - grayscale colors as INDEX not PERCENTAGE
Post by: N-drju on May 21, 2018, 07:32:18 AM
Because I need 8-bit grayscale and regardless of what grayscale settings I use, I am stuck with percent values... :-[ Besides, I think there are going to be some artifacts or splotches as soon as I convert the image.
Title: Re: Photoshop - grayscale colors as INDEX not PERCENTAGE
Post by: N-drju on May 21, 2018, 03:44:31 PM
Okay, one more puzzle - why for heaven's sake when I save a grayscale bmp file does it turn into an INDEXED bmp file upon reload?!! ::)
Title: Re: Photoshop - grayscale colors as INDEX not PERCENTAGE
Post by: Dune on May 22, 2018, 01:33:31 AM
That puzzled me too, a while ago (and still). So I use tif.
Title: Re: Photoshop - grayscale colors as INDEX not PERCENTAGE
Post by: N-drju on May 22, 2018, 03:42:07 AM
It's like you only have one shot at creating and instantly using the grayscale image, because the moment you close, it's all mess again. What kind of dimwit invented this? ::)

I wanted to have a go at a (rather unorthodox) trick, so 8-bit GS .bmp was what I aimed for and I don't think I could use .tiff. But maybe I can, and then convert it to grayscale...?

As long as .tiff to grayscale conversion doesn't destroy colors and turn smooth shades to dots... ::)
Title: Re: Photoshop - grayscale colors as INDEX not PERCENTAGE
Post by: Oshyan on May 22, 2018, 03:42:46 PM
TIFF can represent grayscale, just as BMP can. What is your intended end use? Why does it need to be a BMP?

- Oshyan
Title: Re: Photoshop - grayscale colors as INDEX not PERCENTAGE
Post by: N-drju on May 23, 2018, 01:43:38 AM
Well, I've been asked by some guys to check custom terrain importation feature for a game they work on. The thing is this topo feature, for some reason, currently works only with 8-bit .bmp images. When I checked RGB-formatted files or .pngs, the terrain representation was indeed flawed.

It's no biggie, because the anticipated terrain size is small. So you can probably produce a terrain in one go, with a coffee break in between.

It's not the game's problem however! It's the problem of Photoshop and automatic conversion of GS image to indexed format!

In PS, you can freely edit grayscale images. BUT once it gets converted to index after save, you can't use filters, smudge, sponge or sharpen tools. FOR WHAT F### REASON may I ask?!
Title: Re: Photoshop - grayscale colors as INDEX not PERCENTAGE
Post by: Dune on May 23, 2018, 01:48:10 AM
Have you searched the web for answers to that F... question?
Title: Re: Photoshop - grayscale colors as INDEX not PERCENTAGE
Post by: N-drju on May 23, 2018, 01:51:00 AM
I f### did indeed. :P There's not a single word about why does it happen. Lots of conversion tutorials but only about intentional conversions...
Title: Re: Photoshop - grayscale colors as INDEX not PERCENTAGE
Post by: Dune on May 23, 2018, 02:03:09 AM
Did you find this too: https://graphicdesign.stackexchange.com/questions/76863/saving-a-greyscale-image-as-a-bitmap-file-converts-to-indexed-colours (https://graphicdesign.stackexchange.com/questions/76863/saving-a-greyscale-image-as-a-bitmap-file-converts-to-indexed-colours) The yellow part may have a clue how to handle the bmp.
Title: Re: Photoshop - grayscale colors as INDEX not PERCENTAGE
Post by: N-drju on May 23, 2018, 02:13:28 AM
Ha, I somehow missed it out... it was buried.

That explains a lot.