Weird gamma using spot light with bitmap

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Post Reply
davorin
Posts: 19
Joined: Fri Oct 05, 2018 1:41 pm

Weird gamma using spot light with bitmap

Post by davorin »

Good afternoon (o;

I am doing some simulation of user interfaces where a spot light with a bitmap cast an image onto a semitransparent glass object...

Suddenly I discovered when I used color gradients in the bitmap that the gamma is totally wrong in rendering...looks like brightness over saturation...

Original bitmap:
linear_gradient.png
linear_gradient.png (9.91 KiB) Viewed 3525 times
and rendered output (bitmap is turned 180 degrees):
gradient_rendered.png
Also it depends from which side the camera is looking onto....
Last edited by davorin on Thu Oct 18, 2018 1:27 pm, edited 1 time in total.
macOS 10.3.6, i7-7700, 32GB RAM, GTX1060 6GB
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Weird gamm using spot light with bitmap

Post by B.Y.O.B. »

Have you specified the correct gamma value for the image?
How do your color management settings look like, are you using filmic?
Can you upload a testscene with all textures that shows the problem?
davorin
Posts: 19
Joined: Fri Oct 05, 2018 1:41 pm

Re: Weird gamm using spot light with bitmap

Post by davorin »

Tried a little with gamma settings...but higher values gets me more of the left side being dark...
color settings I didn't touch as other stuff looks normal to me...

Attached the scene...think it should contain all bitmaps..


BTW: What is best for a spot light bitmap?
Using a black background or using a transparent background?
Attachments
test_scene.zip
(1.44 MiB) Downloaded 151 times
macOS 10.3.6, i7-7700, 32GB RAM, GTX1060 6GB
davorin
Posts: 19
Joined: Fri Oct 05, 2018 1:41 pm

Re: Weird gamma using spot light with bitmap

Post by davorin »

This is now with a higher gamma value for the bitmap (5):
Note the fine line at the left which should be not lit...
gradient_rendered_gamma_5.png
Especially the effect can be seen with this bitmap I used originally.
The gradients around the white circles are almost flat:
duschdisplay_wheel.png
macOS 10.3.6, i7-7700, 32GB RAM, GTX1060 6GB
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Weird gamma using spot light with bitmap

Post by B.Y.O.B. »

You are using filmic color management.
Your image is probably completely over-exposed. Filmic has this behaviour that overexposed colors get desaturated instead of blowing out.
Also, the gamma of your image is probably 2.2, not 5, which leads to excessive banding because the 8 bit image does not have enough information.

Attached is a fixed scene where these problems are solved.
Attachments
test_scene.zip
(1.44 MiB) Downloaded 134 times
wrong, default (here you can see the overexposure)
wrong, default (here you can see the overexposure)
wrong, filmic
wrong, filmic
fixed, default
fixed, default
fixed, filmic
fixed, filmic
davorin
Posts: 19
Joined: Fri Oct 05, 2018 1:41 pm

Re: Weird gamma using spot light with bitmap

Post by davorin »

Wow..that looks great...think I have to adjust the other lamps as the cube below is now too dark (o;


many thanks
richard
macOS 10.3.6, i7-7700, 32GB RAM, GTX1060 6GB
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Weird gamma using spot light with bitmap

Post by B.Y.O.B. »

Or you have to make the overall image brighter by adjusting the tonemapper scale, but in turn make the spot light darker.
By the way, I disabled automatic tonemapping, this is usally better once you know the tonemapping scale your scene needs.

And one general tip: if you use filmic, sometimes switch to default to make sure your image is not completely over-exposed.
Post Reply