Cleanup noise in Elements: Reflection and Shadow - Also LOOONG render times

very true.. why not indeed.. although burning in my mind now is a list of things about 3 pages long that id like them to do in vray -before adding this feature :stuck_out_tongue_winking_eye:

please list’ em all :slight_smile:

ahh haha, im sure they have all been listed in other threads, and i suspect it might be classed as a thread hijack if i listed all the things i want vray to do in this thread :slight_smile:

1. The purpose of this value is to force Vray to use this value as a Minimum Samples for everything.
-------------------------------------------------------------------------------------------------

Example :

You have Glossy Reflective Material with 8 subdivisions (This value is the maximum value which Vray will calculate)
In DMC Sampler you have Min Samples = 8

Please pay attention that in Reflective Properties the value is in “Subdivision” but in the DMC Sampler the value is in “Samples”
Sample = Subdivision * Subdivision

Which in this case means - 8 Subdivision = 8*8 = 64 Samples are the maximum samples which Vray will use for this material - but depending on Adaptive Amount - Vray will decide how much of this samples will use for particular calculation.

Let’s play 3 scenarios here - Adaptive Amount 0 / 0.5 / 1

a) If Adaptive Amount is 1 - this means that Vray will be fully adaptive which mean that Vray will try to use as less samples as possible - and sometimes vray can decide that 1 sample is enough never mind that you’ve set 64 Samples in Material Reflection Properties - Remember in every subdivision you set in Vray is the MAXIMUM subdivision - it is not actual Subdivision!!!

b) If Adaptive Amount is 0.5 - this means that Vray will be half adaptive - i.e Vray will use 64/2 = 32 Samples for the Material Reflection Property.

c) And Adaptive Amount 0 - this means that Vray won’t be adaptive at all - and it will use the Maximum Samples for the Reflection Property - 64 Samples.

With The Minimum Samples Value you can specify that Vray will always use at least the amount of samples you’ve set.
If you use the above three examples and add the Minimum Samples = 48 for example:

a) Adaptive Amount = 1 ; Min Samples = 48 - Vray will try to use 1 Sample but with the Min.Samples you force it to use 48
b) Adaptive Amount = 0.5 ; Min Samples = 48 - Vray will try to use 64/2 = 32 Samples but with the Min.Samples you force it to use 48
c) Adaptive Amount = 0 ; Min Samples = 48 - Vray will try to use 64 - and they are already more from Min Samples we specified.

In other words - if you want to always use at least any number of samples for you scene - you can set this value in Min Samples, and don’t forget that this parameter is GENERAL - it will use this value for - Material , Lights , etc.

2. LWF
-------------------------------------------------------------------------------------------------
Two Scenarios Here - a) Final Render (no compositing) - b) Export to Compositing Software

a) If you are not using compositing in your workflow the setup for LWF with Vray will be :
- Max Gamma - OFF
- Linear Multiply
- Dark/Bright Multiplier = 1
- Vray Gamma - 2.2
- Don’t Affect Colors - OFF
-Linear Worflow - ON
- sRGB Button - OFF
- NOTE - every 16/32 bit image won’t be gamma corrected.

In general - this workflow will convert all 8bit images to be Linear applying “inverse gamma 0.454” - all swatches color will be converted to linear - and at the end Vray will apply back the gamma curve to your final image !

B) Compositing Workflow
- Max Gamma - OFF
- Linear Multiply
- Dark/Bright Multiplier = 1
- Vray Gamma - 2.2
- Don’t Affect Colors - ON
-Linear Worflow - ON
- sRGB Button - ON
- NOTE - every 16/32 bit image won’t be gamma corrected.

The difference here is that Vray won’t apply gamma curve back to your final image - because you will need to continue to work with Linear Data in your compositing software !!!

3. Raise the primary and/or the secondary bounce multiplier?
------------------------------------------------------------------------------------------------
Yes you can use this workflow too to increase the light in the hole - I just picked the ambient light - but this will works too

I’ll try to render the scene with your settings and to see what’s going on !

Hello cecofuli !

We have tested the scene you sent us and here is what we have found.

First I would like to point out that in the attached image has wrong text on it - When Sub-Pixel is ON render time is 1min and when is OFF it is 15minutes.

The question is why this is happening ?
And the answer is - because of Universal Vray Settings.

In your scene you have entered Adaptive DMC Sampler - Min = 1 Max = 100 , as you know this settings produce acceptable results but the time for this render is not optimized at all. What is happening in your scene is that for some pixels (mainly reflective/refractive) Vray use 100 subdivision when Sub-Pixel is OFF - and this is the reason for this excessive rendering times ! When Sub-Pixel is ON Vray use much less samples for this areas - about 6 / 7 subdivisions - and that’s why the render is much faster.

The practical difference between Sub-Pixel ON and OFF - is that vray use more samples when Sub-Pixel is OFF - this create better quality but the render time increase - and in some situation this time difference is really huge !

You can fix this by lower Max Value in DMC Sampler like 10/15/20 - but this will also lower the quality of the final render.
And this IES Lights - do they need such higher subdivision = 256 - I’ve change them to 16 and I can’t find any difference in the quality and the rendering time is reduces a lot.

Ok Here are four test renders -

All settings in the scene are the original ones except :
DMC Image Sampler - Max = 25
IES Lights Subdivision = 16

Original Scene Render time : Sup-Pixel OFF - 54min
Sup-Pixel ON - 3min
Modified Scene Render Time : Sup-Pixel OFF - 12min
Sup-Pixel ON - 3min

Unfortunately we couldn’t render the whole image but in this small previews we don’t think the quality is changed much when Image Sampler Max value and IES Light subdivisions are dropped down, and Yes Sub-Pixel ON produce better rendering times but Sub-Pixel OFF produce better results.


Hi svetlozar,
yes, I inverted the description on my gif. Anyway, thanks for your time and new setting. But in my opinion there is a little, but important difference.
See the highlight on the chrome shader for the chair.
There are some jagged edges. And, for example, in animation, you will see some artifact and flickering in this area. See how smooth is with my settings.
But, after a lot of test, IMO there are no solution for Sub-pixel OFF on the highlight: jagged edge and/or High rendertime.

Yes you are right - there is a jagged edge on the chair with Sub-Pixel OFF - we will try to tweak a little bit the shader for this object.

Howdy, I’ve been following this thread on/off for a while now, is this scene maybe available somewhere to download ? - I’d like to run some tests…

Thanks, ciao.

Search here =)

Hi Svetlozar,

Just a few quick questions to see am I thinking clearly about sampling!

Okay so at the start vray shoots one AA ray, this hits a surface and then the surface starts doing material, sss and lighting sampling. The material samples are determined by how many subdivs you’ve set in the material, and likewise the light samples. Are all of these samples being tested by the noise threshold of the DMC sampler first to see if they’re good enough, and then fed back into the AA sampler? Does the aa sampler then determine if the final pixels are good enough via it’s noise threshold and based on that make a decision about making more samples? If it’s not good enough, the AA sampler fires two rays and then halves the material and lighting subdivs between each. So in theory if you don’t reach your noise threshold and the max number of samples are used, the second AA pass will use pretty much the exact same number of samples as the first AA pass and again barring early termination probably take a similar amount of time? Do the results of the aa 1 pass and the aa 2 pass get added together and averaged?

What I’m thinking is that the AA sampler can ultimately clean up any noise in the scene, but that’s probably a bad way to do it. For example in the scene with the glossy materials that morne posted, the majority of the noise is coming from the materials so if you’re using AA 1, 100 you’re going to end up going through a lot of loops of AA sampling, whereas if you had given the renderer enough Material samples right at the start (forced by low aa) you’d get a clean result at a much earlier stage.

Does the slow down in renders come from Vray having to go through numerous loops of increasing AA samples more than anything else?

Hi Svetlozar,
thanks for your answer, very informative, as usual :slight_smile: …let me ask you the last one about LWF then I’ll try to stop me boring you:

talking 'bout first LWF scenario (no compositing), which is your suggested state for “Affect Color Selector” and "Affect Material Editor checkboxes? (I mean the ones inside the max preference setting dialog).

I’m going to test further this new way (for me) to approch lwf (using vray gamma instead of max gamma) but, let me say, that if it will turn to be a viable option, I’ll suggest to chaos writing the specific lines in the help file in a different way because actually it seems to me lwf checkbox is a big NO with the exception of some circumstances.
That’s what’s written there: “Note that this option is intended to be used only for quickly converting old scenes which are not set up with proper linear workflow in mind. This option is not a replacement for proper linear workflow.”
Maybe it’s my language knowledge to be lacking but beacause of those lines I’ve never tried that way.

Also as far as I know the Linear workflow doesn’t affect non vray materials too and things like textures inside of vray light materials?

It does if you use the max gamma and material\swatch settings…that is as far as non vray materials go. The map inside a vraylight material I’m not sure about, but I’d hope it behaved consistently like with other maps.

Hello guys - here is a link to a video where you can see why I prefer to work with Vray Gamma instead of 3DSMax gamma.

When you are using Vray Gamma setup and 3DSMax Gamma is of - “Affect Color Selector” and “Affect Material Editor” don’t affect anything - they are only work when 3DSMax Gamma is ON.

About our help file - I described in one of my previous posts why is written this way.

Vray Gamma Setup is working on Vray Materials - Standard Materials are not gamma corrected.
Vray Light Material texture is gamma corrected!

this is what I don’t understand. Vlado all the time say NOT to use that “magic” LWF button as its not magic, but instead use affect “dont affect colours”.
2 or 3 years ago when ChaosGroup was doing a demo in South Africa, the guy from Chaosgroup that was here also said to just use that button and ignore the max gamma.

Now I ask you, why the conflicting info? Also, if you use the “linear” magic button and NOT the “dont affect colours”, wont this mess up your LWF exr and vrimg output so that when you open in another app, its all messed up? (I can test it myself, but my pc is busy right now)

DMC Sampler works progressively - it doesn’t test the max amount of samples added into material parameters at the beginning.
For example if you have material subdivision= 8 = 8*8 = 64 Samples ,
Let’s say that DMC Sampler has this values - Adaptive Amount = 0.85 and Noise Threshold = 0.01 and Min Samples = 8

With Adaptive Amount we determine how much adaptive will be Vray - 0.85 means the Vray will be 85% adaptive - i.e. Vray will try to calculate 25% of the samples we’ve set in Material Subdivision. 25%*64 = 16 Samples - These are the samples at the beginning - of course if this number is lower than Min Samples Value - DMC will start from Min Samples Value.

Noise Threshold will determine if this 16 samples are good enough or not - if there are not, Vray will start shooting more samples , until Noise Threshold say that the samples are good enough or if Max Subdivision Value is reached.

This calculation will be calculated for every Camera Ray (AA ray)

Adaptive DMC Image Sampler is working similar way as DMC Sampler.

Let’s say you have Min Subdivision= 1 , Max Subdivision = 10 , Color Threshold = 0.01
At the beginning Vray will shoot 1 Sample from each pixel - then Color Threshold will determine if this samples are enough or not - and if they are not, Vray will shoot more samples progressively from this pixel - the place for each sample in the pixel is not random - Vray will try to add samples in such way to achieve best results with less samples - after each shooting Vray merge the new samples with the previous ones and run the Color Threshold Check - and the procedure continue until Color Threshold decides that the samples are enough or the Max Samples are reached.

If the Color Threshold is very low as 0 - Vray won’t shoot all the Samples during the “first pass” - Vray will always shoot samples on steps - If you have Min SubD = 1 - Max SubD=10 Vray will works this way:

1.First Pass = 1*1 Subdivision = 1 Sample
2.Second Pass = 2 Subdivisions = 2*2 = Samples = 3 New + 1 from previous pass
3.Third Pass = 3 Subdivisions = 3*3 = 9 Samples = 5 New + 4 from previous pass

Tenth Pass = 10*10 = 100 Samples = 19 New - 81 from previous pass

With the universal settings Min = 1 , Max = 100 and with Color Threshold to control the quality of the image - you can achieve good results in most cases - but the render time won’t be optimized at all. The good thing about this workflow is that you don’t have to adjust any subdivisions in your scene - everything is controlled by the Image Sampler - Lights , Materials , DOF , Motion Blur etc . In other words DMC Sampler is ignored when you are using Universal Settings! The final image will be good in most cases - but not as good as if you adjust every parameter individually . The render time will be significantly longer.

Let us know if you have any questions about the above information.
Don’t hesitate to ask us if you need further support about our products.

Regards
Svetlozar Draganov

Svetlozar, you are right, but sometimes we don’t have the time to try 30 different setting. To change the IM setting, change the subdivs for DOF, Glossy, MBlur, make tons test rendering and see if looks nice. We prefer to know that, if I click render, all is perfect and fine. I prefer use 3 hours on my machine instead 3 human hours to check the correct settings. This is our goals.

still there is no solution for your scene? I did some tests, and as well made an optimized render but also got the same badly pixelated highlites. Those damn ies!

No Morbid, no solution! At the end, I use US with SUB-PIXEL and CLAMP OFF with a lot of hours. 14 hours or more with one I7 esacore at 4.0 Ghz (2500 px, so not very high)
But you know, the buckets were crazy when they were above the chrome and glass shaders!!! Also THE usual annoying problem with jagged edge on ceiling lights. This is the RAW final image:

DOWNLOAD

And, also, I’ve one scene that it was IMPOSSIBLE (really, impossible) to render this image with US and sub-pixel and clamp OFF.
Then when buckets ( 8x8 ) are on the glass lustre (I model it by myself) are completely unmovable! See the next image.
The full image (original was 2500x1500px) with US and sub-pixel and clamp ON (Noise 0.007) with one esacore 4.0 Ghz in about 3 hours.
The little test with sub-pixel and clamp OFF (Noise 0.05) with 4 esacore 4.0 Ghz in about 15 minutes at 1024x640!!!
And, again, the problem was on the little, bright, reflection pixels! Sometime only for one or two bright pixels, one single bucket ( 8x8x!!!) takes 3 minutes .
If you have the solution, please, write me =) PS: “Affect specular” on the IES is off and for the little VRayLight plane as a spotlight, Affect reflections" is OFF

Svetlozar,

thanks a lot for your very informative and detailed answer, I really appreciate them.
Even if it’s a fact every one of us is always secretly dreaming for the “make it good” button :slight_smile: …I’m still very interested in these kind of infos allowing me to deep edit and optimize my scenes
So I’ll give for sure a serious try to the “forgotten” lwf checkbox, just to see if it works for me as well.