Author Topic: Adaptive enviro sampler playground!  (Read 22821 times)

2020-02-21, 10:15:06

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12708
  • Marcin
    • View Profile


The newest daily build of Corona Renderer (20.02.2020) features a new adaptive environment sampler, which is enabled by default. It greatly improves image quality in areas where direct environment lighting is visible and should remove the need for portals in most scenes:
- The difference is mostly visible when using an HDRI for environment lighting.
- There is also a difference when using Corona Sun+Sky, mostly in cases where the sun is not the main source of scene illumination (if strong sunlight shines into the room through a window, the improvement probably won't be that visible).
- When using a solid color for the environment lighting, there will be no difference.
Generally, this does not improve rendering scenes with Sun+Sky or solid color environment, because those are already greatly optimized.


To compare the new and old enviro sampler:

Method 1 (using two Corona versions):
1. Render your original scene using Corona Renderer 5 - https://corona-renderer.com/download - this will give you an image with the old enviro sampler
2. Install the newest daily build - https://coronarenderer.freshdesk.com/support/solutions/articles/5000570015
3. Render the same scene using this newest daily build - this will give you an image with the new enviro sampler
Do not change any render settings between the two renderings!

Update: the below Method 2 is not valid any more, because in the latest daily builds of Corona Renderer 6, portals are completely ignored by the Corona core.
Method 2 (using a single Corona version):
1. Install the newest daily build - https://coronarenderer.freshdesk.com/support/solutions/articles/5000570015
2. Open your original scene
3. Render - this will give you an image with the new enviro sampler
4. Go to the "Development / Experimental Stuff" rollout - https://coronarenderer.freshdesk.com/support/solutions/articles/12000021288
5. Under "Lights" switch "Enviro sampler" from "Adaptive sampler" to "NormalDep Compensated"
6. Render your image - this will give you an image with the old enviro sampler
Do not change any other render settings between the two renderings!

Note 1: the tests can be repeated with and without portals used in your scene.
Note 2: it makes most sense to compare renderings using the time limit - e.g. rendering the same scene with 10 minutes time limit with the old and new sampler.
Note 3: to quickly switch between two versions of Corona, or even launch two 3ds Max instances running different Corona versions at the same time, you can use this simple trick: https://coronarenderer.freshdesk.com/support/solutions/articles/12000066819


« Last Edit: 2020-03-18, 15:32:31 by maru »
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2020-02-21, 10:18:08
Reply #1

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12708
  • Marcin
    • View Profile
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2020-02-21, 10:28:38
Reply #2

88qba88

  • Active Users
  • **
  • Posts: 80
    • View Profile
https://corona-renderer.com/comparer/rgJJnr

No portals.

Same scene, 10 minute render.
Previous daily vs newest daily build.

2020-02-21, 10:59:17
Reply #3

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12708
  • Marcin
    • View Profile
https://corona-renderer.com/comparer/rgJJnr

No portals.

Same scene, 10 minute render.
Previous daily vs newest daily build.

Are you sure that this is correctly tested? Did you just switch from V5 to the daily build? Honestly I would not expect such huge improvement, but if it really helped so much - great! :)
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2020-02-21, 11:19:15
Reply #4

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8778
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Honestly I would not expect such huge improvement, but if it really helped so much - great! :)

The improvement is real. Here's my test from older topic. V6 without portals renders as clean as V5 with portals. Great job guys!


I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2020-02-21, 11:28:34
Reply #5

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12708
  • Marcin
    • View Profile
Awesome! Here it is in the comparer tool:
https://corona-renderer.com/comparer/8BgP8C
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2020-02-21, 11:33:33
Reply #6

88qba88

  • Active Users
  • **
  • Posts: 80
    • View Profile
https://corona-renderer.com/comparer/rgJJnr

No portals.

Same scene, 10 minute render.
Previous daily vs newest daily build.

Are you sure that this is correctly tested? Did you just switch from V5 to the daily build? Honestly I would not expect such huge improvement, but if it really helped so much - great! :)

I'm sure, same scene, test done this morning. Results are spectacular, I agree!
I made this scene this morning in previous daily build (2020-02-17) and rendered - 10 minutes. Then I installed newest daily (2020-03-20) and rerendered the scene. I made no changes at all. It was same scene and settings, the time was limited to 10 minutes in both tests.

PS. Car is corona proxy. For the floor and walls I used materials from new Corona Material Library.

2020-02-21, 11:40:49
Reply #7

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12708
  • Marcin
    • View Profile
I'm sure, same scene, test done this morning. Results are spectacular, I agree!

Thanks for clarifying. That's amazing!
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2020-02-21, 12:09:13
Reply #8

smadiswelem

  • Active Users
  • **
  • Posts: 20
    • View Profile
in old scenes when we using a new sampler should we remove the portals?

2020-02-21, 13:29:36
Reply #9

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12708
  • Marcin
    • View Profile
in old scenes when we using a new sampler should we remove the portals?
You don't have to worry about them. With the new sampler, you don't have to use portals. There may be still some edge cases where a scene with portals will render slightly better than without them (with the new sampler), but the difference won't be as dramatic as with the old sampler.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2020-02-21, 13:45:42
Reply #10

pokoy

  • Active Users
  • **
  • Posts: 1850
    • View Profile
That definitely looks impressive, great job!

2020-02-21, 14:12:31
Reply #11

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8778
  • Let's move this topic, shall we?
    • View Profile
    • My Models
I rendered the above scene in V6 with portals and results where even cleaner, but as maru said, the difference isn't dramatic - not worth a hassle with portals in new scenes.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2020-02-21, 16:08:44
Reply #12

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12708
  • Marcin
    • View Profile
I rendered the above scene in V6 with portals and results where even cleaner, but as maru said, the difference isn't dramatic - not worth a hassle with portals in new scenes.
Exactly. The idea is that you will get much cleaner results without the need to cap every hole in the scene.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2020-02-21, 16:42:28
Reply #13

ArchSpideR

  • Active Users
  • **
  • Posts: 40
    • View Profile
to use the new method of calculating light without portals, you need to switch to " Normaldep Compensated"?

2020-02-21, 17:02:10
Reply #14

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8778
  • Let's move this topic, shall we?
    • View Profile
    • My Models
No, enviroment sampler should be set to adaptive sampler. It should be set like this by default, even when you open older scenes. Normaldep compensated is an older sampler.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures