User avatar
By tom
#272262
If you're making/editing your greyscale textures in Adobe Photoshop,
you should read this post carefully. Because it's extremely vital for having
precise goals.

By default -literally for press purposes-, Photoshop has "Dot Gain 20%"
profile for greyscale images. This is a setting for compensating the black ink
diffusion over paper for avoiding dark output when printed. You may wonder
how much this could be affecting your 3D world. Well, too much!

For example, you want 50 percent grey texture for some purpose, what'd you do?

1) Load Photoshop, open a new greyscale document
2) Pick color 127,127,127 and paint with it

Right? Well, I think "yes"...
And you'd probably verify the color from info by reading 127,127,127
Or you'd do these on an RGB document and convert it to greyscale in the end.

Save it? Right? Yes...

You now have an incorrect map because Photoshop applied Dot Gain 20% profile.
Open your map again, oh it's still 127,127,127 so what's wrong here?!
No, it is NOT. Because Photoshop just simulates the same profile now.
As a horrible fact it saved these pixels as 104,104,104! :)

You don't believe? Open the image in another imaging application and verify.
Of course it's essential that application should have color management
turned off before testing this. Or better, pick one without color management.

So, what's bad about it?
For example you need a weight map and you need precise grey tones,
like you need 50% grey and 10%, too, etc. But painting with 127 won't
give you desired output if you're working in Photoshop just because of
this hidden fact and maybe you'd never know what's happening. :)

Here's a result from my displacement test which failed due to this:

Image

The bars had to be at 20%, 50% and 100% as I've painted them with
Grey 51, Grey 127, Grey 255. Although with Photoshop defaults :P

Now, here's the same test with an RGB texture using colors 51,51,51
127,127,127 and 255,255,255 which is precisely same as above texture.

Image

Yes, this was the correct expected look also with the above grey texture
but it didn't give the same result as RGB one. Who was responsible?
Of course, Photoshop's press purpose defaults!

So, how should you set Photoshop for CG purposes?
1) Go to Edit / Color Settings
2) Click "More Options" button
3) Find "Gray" profile having "Dot Gain 20%" in front of it
4) Change it to "sGray" and you're done!

If for some reason you don't have it listed, load it:
sGray.icc
Download >>> http://www.divshare.com/download/2525027-ed7
Image

Now, you can make correct greyscale textures in Photoshop!

If you also need to use press defaults grey profile frequently, you can
stay at Dot Gain 20% and avoid this problem by doing the following:

* On new document, make sure you select sGray before to start:
Image

* Or if you've already opened a greyscale image (or converted it from RGB),
you can still convert is to sGray profile from Edit / Convert to profile...
Although conversion is lossy and you may want to deselect dithering
if you're dealing with flat grey areas on your image.

Image

As a final word, for example you didn't know all of the above and
you've find and loaded a grey RGB image into Photoshop and
decided to convert it to Greyscale because it was already grey.
Oh, now that image is not the same image anymore ;)
User avatar
By Mattia Sullini
#272277
Thanks a lot for sharing your knowledge! I bet i would never have discovered this by myself! :D
By tokiop
#272278
thanks for the insight Tom! Very clever use of displacement for histogram/direct testing by the way !
By kami
#272312
Thank you very much for the clarifications... Now I understand color profiles a little better, still not very much though :D
but one question remains: PS shows the "wrong" jpeg correctly. Why isn't MR able to do this. Wouldn't it be good if MR could understand color profiles?
User avatar
By Fernando Tella
#272316
kami wrote:Wouldn't it be good if MR could understand color profiles?
No, please! I just hate color profiles. Give me the raw, true image and I'll make the corrections for what I want.
By bjorn.syse
#272319
Fernando Tella wrote:No, please! I just hate color profiles. Give me the raw, true image and I'll make the corrections for what I want.
There's no true image in RGB without color profiles, unfortunately... but I get your point. The whole color management world is fucked up, from a users perspective.
User avatar
By tom
#272332
I understand your questions about color profiling but this will take too long here to discuss. Instead, my post is specifically about Grey Profile and how to correct it for displacement/bump purpose. My answer to other color profiling stuff will be short: No, Maxwell has nothing to do with them.
User avatar
By Rickyx
#272377
Thanks you -really a lot-.
Fernando Tella wrote: No, please! I just hate color profiles. Give me the raw, true image and I'll make the corrections for what I want.
+1... I can't manage me neither colours profiles, print stuff... :?
User avatar
By tom
#272423
Bubbaloo wrote:Where does one put the icc file? :oops:
Use "Load Gray..." ;)
Image
User avatar
By Bubbaloo
#272436
Sorry, Tom. I should be more specific. I'm using CS3 on xp 32. "sgrey.icc" was not one of the choices in the drop down that you have shown. So I downloaded the one from the link above but I don't know which folder to put it in. Well, I guess I could do a search on my hd for *.icc... :oops:
User avatar
By tom
#272447
Yes, I'm aware of it but can't you see the "Load Preset..." command listed in the dropdown in the image I just sent above? :)
Sketchup 2025 Released

Thank you Fernando!!!!!!!!!!!!!!!!!!!!!!!!!!! hwol[…]

I've noticed that "export all" creates l[…]

hmmm can you elaborate a bit about the the use of […]

render engines and Maxwell

Funny, I think, that when I check CG sites they ar[…]