Page 1 of 1

question about lighting effect [Solved]

Posted: 25 Nov 2011, 23:25
by peterkneter
i have a question about the lighting effect. when i start the effect and choose some spots to lighten up some areas of the picture I notice
color gradations, not a smooth transition from light to dark. (especially at the darker edges!) well there is a transition but it is not soft, it is gradually. so you can see different bright levels of the color.
but i want it smooth of course... is that possible without these color steps? I noticed that this occures only when I want it dark, when I work with bright pictures there are
no gradual color levels...

does anybody else has this problem or a solution for me?

thank you!

peter

Re: question about lighting effect

Posted: 26 Nov 2011, 02:07
by D.T. Nethery
peterkneter wrote:i have a question about the lighting effect. when i start the effect and choose some spots to lighten up some areas of the picture I notice
color gradations, not a smooth transition from light to dark. (especially at the darker edges!) well there is a transition but it is not soft, it is gradually. so you can see different bright levels of the color.
but i want it smooth of course... is that possible without these color steps? I noticed that this occures only when I want it dark, when I work with bright pictures there are
no gradual color levels...

does anybody else has this problem or a solution for me?

thank you!

peter

Please post a screen shot showing the effect you are talking about . That would make it easier for others here to give you advice on how to fix the problem.

Re: question about lighting effect

Posted: 26 Nov 2011, 08:39
by peterkneter
here is a small picture that shows the problem. and it is already highest resolution! (so it is not a compression error...)

Re: question about lighting effect

Posted: 26 Nov 2011, 10:22
by slowtiger
That's called banding, and under certain conditions it's unavoidable. I had to deal with it in my printing days a lot!

TVP works with 8 bit per channel (as do most other bitmap programs by default), which normally is enough. This means that you have 256 distinct levels of gray in each channel from white to dark, or from 255 to 0. Now if you spread this gradient from one side to the other in HD (1920px), each gray value will be a stripe of 7,5px width - nothing you'll notice. Now if you spread a much smaller colour distance over the same space distance, like from 255 to 224, each band will be 61,7 px wide - and this is noticable, especially with brighter values.

In printing this happens quite often because we use 1-channel gradients of flat colours a lot. But most time we work with non-flat colours which have values in all 3 RGB channels, and different colour distances in each channel per gradient, so the different widths will overlap nicely.

In your example the spatial distance is about 550 px, and the RGB values are:

Code: Select all

32  29  20  top right
90  83  37  bottom left
––––––––––––––––––––––––––––––––
58  54  37  colour value distance
––––––––––––––––––––––––––––––––
10  10  14  width of colour band per channel
and this is a clearly visible width, especially as two channels will have the borders between bands at roughly the same spot.

One way to deal with this would be to calculate each gradient (and also any lighting effect - it's just a gradient as well) with dithering. In PS I use this setting per default. What it does is, it adds a bit of mathematical noise to each channel, so the borders of bands, or the borders between values, are broken up completely. Think of it as a coffee with milk: the normal gradient is coffee and milk separated, the dithered one is the same but stirred!

I've done a test with your colour values here: top is your normal gradient, bottom is the same gradient but with dithering. Center is the results with maxiumum contrast so you can see the effects more clearly.
dither.png
dither.png (79.99 KiB) Viewed 18782 times
In TVP, you need to add noise manually. You will see no banding on any textured background (as long as the texture grain is about the same size as the bands), so why not start with that? It's the easiest solution. Another way would be to add some noise or grain on the gradient after creation, if it's on a separate layer. If you have any other "noise" layer later, like a smoke effect or an overall film grain, you don't need to bother at all because in that step the banding will disappear.

As a rule, just remember: small colour steps over big screen distance in flat colour will likely cause banding.

Re: question about lighting effect

Posted: 26 Nov 2011, 15:41
by Hervé
peterkneter wrote:here is a small picture that shows the problem. and it is already highest resolution! (so it is not a compression error...)
This banding issue should be fixed in the lightning effect since a lot of time, what is your version ?

Re: question about lighting effect

Posted: 26 Nov 2011, 16:27
by peterkneter
@slowtiger: thank you for the idea. i ill try it and post the result!

@Hervé: I use Version 9.5

Re: question about lighting effect

Posted: 26 Nov 2011, 18:26
by Hervé
peterkneter wrote: @Hervé: I use Version 9.5
There is a lot of update for the 9.5, what is your complete version number ?

Re: question about lighting effect

Posted: 26 Nov 2011, 20:19
by peterkneter
-I use version 9.5.3 (2009)

-@slowtiger: I think the dithering mode is only available for export single pictures...but I need it for video (avi/quicktime) ....

Re: question about lighting effect

Posted: 26 Nov 2011, 21:19
by D.T. Nethery
peterkneter wrote:-I use version 9.5.3 (2009)

That's a long time and many versions ago. It's at 9.5.21 (twenty-one! ) now . Update immediately.

Go the the Help Menu --- "Check for Updates" . It will take you to the download page to get the update.

Re: question about lighting effect [Solved]

Posted: 28 Nov 2011, 10:16
by Fabrice
Yes, the bug is solved. The 9.5.3 is not up-to-date. The bug was fixed for a loooonngggg time ago.

Re: question about lighting effect [Solved]

Posted: 28 Nov 2011, 10:57
by peterkneter
Thank you all. it was just the update! sorry for bothering.
cheers,
p.