grain PT

Started by Dune, August 22, 2019, 06:29:36 AM

Previous topic - Next topic

Dune

In PT I see some grain in the shadowed side of the face (though the eyes look great, where in standard render they don't). Where could that come from? Skin is just a default shader with some (0.1) reflectivity and minor bump.
It's not hugely important, as I will probably render in standard mode with reflections of eyes totally off anyway (and do some postwork), but I'm curious nonetheless.

Tangled-Universe

#1
That's not grain if you'd ask me, but simply the PT being much more capable of sampling the texture of the sharp skin wrinkles of the dude's face.
Just compare your PT vs standard comparison and see how sharp the wrinkles are how that pattern is similar to your "grain".
That + the angle of the head results in an unfortunate combination, I think.

Dune

That's what I have been thinking of indeed, the bump reflecting light in different directions, hence a more pronounced effect. I'll test one without bump...

WAS

What is your AA settings?

PT is known for noise without high AA and slower render times. All real-time PT examples are just noise shows cause of this quirk of the renderer.

This is a issue I mentioned for Freeware as it's impossible to test the PT without substantial noise.

Oshyan

That is likely just undersampling, i.e. noise due to not enough samples to resolve smooth output. Reduce Pixel Noise Threshold a bit and see if that helps.

- Oshyan

WAS

Quote from: Oshyan on August 22, 2019, 01:04:08 PMThat is likely just undersampling, i.e. noise due to not enough samples to resolve smooth output. Reduce Pixel Noise Threshold a bit and see if that helps.

- Oshyan

What is the range of this by the way? It's not on a SPP I've seen elsewhere. It seems like a opposite kinda feature, where you "Reduce noise" rather than it just being a SPP setting.

Matt

Reducing the pixel noise threshold may work, or may not if the anti-aliasing needs to be higher. Without knowing which is more efficient, I'd recommend leaving the sampler non-customised and simply increase AA. As long as 'customise' is not checked, you can try different AA values and it will automatically change the pixel noise threshold and other adaptive sampling settings. Once you customise it, however, the link is broken between AA and these other settings so you need to manage them yourself. You can revert to defaults by unchecking 'customise'.
Just because milk is white doesn't mean that clouds are made of milk.

WAS

Quote from: Matt on August 22, 2019, 03:53:42 PMReducing the pixel noise threshold may work, or may not if the anti-aliasing needs to be higher. Without knowing which is more efficient, I'd recommend leaving the sampler non-customised and simply increase AA. As long as 'customise' is not checked, you can try different AA values and it will automatically change the pixel noise threshold and other adaptive sampling settings. Once you customise it, however, the link is broken between AA and these other settings so you need to manage them yourself. You can revert to defaults by unchecking 'customise'.

Is there no samples per pixel settings relating to this or is it just the reduce noise threshold calculated in some other fashion?

Dune

I use AA6 by default, but I'll experiment a bit with higher AA and PNT. Thanks!

Tangled-Universe

Quote from: Dune on August 23, 2019, 02:01:59 AMI use AA6 by default, but I'll experiment a bit with higher AA and PNT. Thanks!
A bit higher AA, yes.
A bit higher PNT, no.
Or did you not mean increasing both?

Dune

Both, but separately, just to test both, and see which one serves best.

Dune

Bigger test, and higher AA surely does the trick, though at a cost. But, boy, what in difference in nose hole!

Tangled-Universe

Quote from: Tangled-Universe on August 23, 2019, 04:24:37 AM
Quote from: Dune on August 23, 2019, 02:01:59 AMI use AA6 by default, but I'll experiment a bit with higher AA and PNT. Thanks!
A bit higher AA, yes.
A bit higher PNT, no.
Or did you not mean increasing both?
Quote from: Dune on August 23, 2019, 07:28:49 AMBoth, but separately, just to test both, and see which one serves best.
I'm afraid you don't understand the AA vs PNT relationship/concept.
You do realize that increasing PNT along with AA is counter-productive in terms of quality?

Say, you render with AA4 with its default PNT of 0.075 and are not happy with the amount of noise.
Then you would increase from AA4 to AA8 and the renderer decreases the PNT to 0.0375.
The reason this happens is that the more AA samples you throw at your render the more noise you can remove. How is that noise defined? The PNT is (an arbitrary(?) or perhaps dimensionless) number which defines the "contrast" between subpixels. The lower the noise the lower the contrast the lower the pixel noise. The threshold simply tells the algorithm to keep shooting AA samples until the noise reaches a certain threshold, the PNT.
The rule then is "shoot more AA samples when adjacent pixel noise value is greater than the PNT value set by user" clamped by AA# squared.

So increasing PNT along with AA actually counteracts the increase of AA. Potentially/very likely.

If you increase AA4 to AA8 and keep PNT at 0.075 you may still end up with a better looking render, simply because AA4 was not supplying enough samples to reach the PNT of 0.075. AA8 offers sufficient samples to reach the PNT and then stops. If the PNT would be its default 0.0375 then it would use more samples to try to reach it with the maximum being 8 squared = 64 samples.
Consequently, if you set AA8 and PNT of 0.01 then you are asking the renderer to try to render a very smooth picture with only 64 samples max. The render will likely take as long as AA8 full sampling, since 64 samples in many cases is not sufficient for such a low PNT. Exception might be smooth areas like empty sky, but the principle generally applies.

Dune

Thanks for your lengthy reply. I guess I know the gist, but more like a vague feeling than exact, so I'm glad you explained once again! But I didn't increase both, as the AA8 sample used the default threshold, and only in the AA6 did I increase it from default 0.05 to 0.1. Perhaps wrongly so, but I'll study your explanation more carefully tomorrow.

Matt

The default value for "Pixel noise threshold" depends on the AA. Some default PNTs are:

AA 1: PNT 0.3
AA 2: PNT 0.15
AA 3: PNT 0.1
AA 4: PNT 0.075
AA 5: PNT 0.06
AA 6: PNT 0.05
AA 8: PNT 0.0375
AA 10: PNT 0.03
AA 12: PNT 0.025
AA 16: PNT 0.01875

It uses the formula PNT = 0.3 / AA
Just because milk is white doesn't mean that clouds are made of milk.