Number of Prepasses

Hello ALL,

When rendering an image I normally set the irriadance map to “very low” when test rendering. The total prepasses is usually 2 when using this setting. The past several days I noticed it has gone up to 5 prepasses…

Question: Are the prepass only related to the irradiance maps and/or materials or just the map settings?

TIA,

Arkitec

did you use glossy reflections with interpolation ? normaly the prepass for that is 4-5 times. when you use “very low” presets, vray calculates 3 more passes for the glossy reflections. the best way is to set the number of the prepasses for the glossy reflections equal to the number of passes you have i the rendersettings. you can find that in the material settings

metroberlin,

That did the trick THANKS A MILLION!

Arkitec

i have the same issue, but i don’t see where you set the no. of prepasses in the material settings.

Under the reflect or refract interpolation options in Vray material you have Min and Max rate for the interpolation passes.

Gonçalo

so if you have settings of min=-4 and max=-2, for example, how does that translate into the number of interpolation prepasses?

Here you go:

-4 prepass 1
-3 prepass 2
-2 prepass 3

Gonçalo

it does one at -4, one at -3 and one at -2, so that’s three in total.

okay. this will probably sound stupid but … is there a difference between using values of -4,-2 or -3,-1?

i am getting pretty good with the program, but i don’t quite grasp the concepts behind all the settings.

thanks for the help, though!

there is a difference. the amount of pre-passes doesnt affect your irradiance map quality. its the max rate that does. 0 means that samples are taken for every pixel -1 for every 2 pixels, etc. if you go above 0 then your getting sub-pixel irradiance map calculations.

okay. now its starting to make some sense.

thanks for the explanation.

Mmm, I think you should read a bit more in the help files, and at vray.info also. There’s already a lot to read about irradiance map settings.

To explain it very easy:
a prepass is a rendering of a lower resolution version of your image (-3 means 4 times smaller I think, 0 is original resolution). Because the irradiance calculation is based on comparing neighbouring samples, a small image is calculated faster than a big one. So after the first pass (=the lowest resolution image), vray has some info about where many samples are very different from neighbouring ones (curvy areas) and areas where all samples are equal (flat areas). This is very rough, but based on this info, in the next pass vray knows where to put more samples (more GI calculations) and where there are less needed. This goes on in the next pass and the next etc… The higher the pass, the more detailed the samples will be placed and thus the more detailed and artifact free your GI will look.

So -4,-2 means the most detailed pass is still calculated at 3 times smaller resolution than normal. For scenes without much detail this can be enough. But -3,-1 (same number of passes than -4,-2) is better because it initially starts at a higher resolution image and it also ends with a more detailed one.

General rules (that I use…)
testing -5,-3
final -3,0

This also means that if you render all the time at 800*600 with -3,0, but then you need a higher res image like 1600*1200, you can set irradiance at -4,-1 and this will give you the same irradiance map detail as the 800*600 at -3,0.

The treshold values are also very important, but I think you can do a search for that yourself. I found a lot info about it when I started with vray, and I wrote my experiences with these settings more than once in this forum.

hope this helps,

flipside

Ok I’m too late :?

Here is another question.
Why I would do -4 -2 calculations, instead of directly -2 -2 ?
Does Calculations get help from their previous lower res. passes?
(I guess so, otherwise this would be stupid)…

Yes, that’s what I tried to explain :slight_smile:

Hullo Flipside

_I am kinda confused now, Gonzalo once explained that to increase the resolution, say from 800x600 @ -4-2 to 1200x1000 it was recommended to lower the irradiance map passes say to -3-1, but in our last post you say the opposite is better ??

thanx

mauarduz

:shock: I never said that!? The Flipside explanation is correct :slight_smile:

Gonçalo

I’m not sure about the math… -3,0 for 800*600 how this translates to resolution for -4,-1.

But i’m sure if you render at higher resolution you can decrease the irradiance settings. If you would render at 800*600 with -3,0, this means high quality and an irradiance map calculation time of X.
If you want the same irradiance map calculation time for a 1600*1200 image, you need to lower your settings (for example to -4,-1). This way you will also have the same irradiance quality (detail) as in the 800*600 image.

If you would increase it (to -2,1) for a higher resolution image, the calculation would be way longer and the irradiance map quality will be much better than you had in your smaller resolution image.

I think it goes as follows:
-4=1/16
-3=1/8
-2=1/4
-1=1/2
0=1/1

So, irradiance passes for 800*600 @ -3,-1:
-3: 100*75 [=(1/8*800)*(1/8*600)]
-2: 200*150
-1: 400*300

If you want the same for -4,-2:
image of 1600*1200
-4: 100*75 [=(1/16*1600)*(1/16*1200)]
etc…

Thank you for the answer Flipside,
I guess I WAS confused,
sorry for that Gonzalo, missunderstood