question about lighting effect [Solved]

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
peterkneter
Posts: 25
Joined: 17 Jun 2011, 09:41

question about lighting effect [Solved]

Post 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
User avatar
D.T. Nethery
Posts: 4225
Joined: 27 Sep 2006, 19:19

Re: question about lighting effect

Post 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.
peterkneter
Posts: 25
Joined: 17 Jun 2011, 09:41

Re: question about lighting effect

Post by peterkneter »

here is a small picture that shows the problem. and it is already highest resolution! (so it is not a compression error...)
Attachments
lighting effect.jpg
lighting effect.jpg (49.18 KiB) Viewed 18781 times
User avatar
slowtiger
Posts: 2950
Joined: 08 May 2008, 21:10
Location: berlin, germany
Contact:

Re: question about lighting effect

Post 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 18775 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.
TVP 10.0.18 and 11.0 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
TVP 11.0 and 11.7 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
TVP 11.7 Mac Mini M2pro 32GB OS 13.5
User avatar
Hervé
Site Admin
Posts: 3490
Joined: 08 Feb 2006, 17:00
Location: Metz France
Contact:

Re: question about lighting effect

Post 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 ?
Hervé ADAM, TVPaint Team
peterkneter
Posts: 25
Joined: 17 Jun 2011, 09:41

Re: question about lighting effect

Post by peterkneter »

@slowtiger: thank you for the idea. i ill try it and post the result!

@Hervé: I use Version 9.5
User avatar
Hervé
Site Admin
Posts: 3490
Joined: 08 Feb 2006, 17:00
Location: Metz France
Contact:

Re: question about lighting effect

Post 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 ?
Hervé ADAM, TVPaint Team
peterkneter
Posts: 25
Joined: 17 Jun 2011, 09:41

Re: question about lighting effect

Post 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) ....
User avatar
D.T. Nethery
Posts: 4225
Joined: 27 Sep 2006, 19:19

Re: question about lighting effect

Post 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.
User avatar
Fabrice
Posts: 10077
Joined: 17 Jul 2007, 15:00
Contact:

Re: question about lighting effect [Solved]

Post 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.
Fabrice Debarge
peterkneter
Posts: 25
Joined: 17 Jun 2011, 09:41

Re: question about lighting effect [Solved]

Post by peterkneter »

Thank you all. it was just the update! sorry for bothering.
cheers,
p.
Post Reply