Author Topic: Questions regarding corona portals  (Read 2612 times)

2017-05-09, 11:16:59

Fluss

  • Active Users
  • **
  • Posts: 553
    • View Profile
I have a few questions regarding portals :

1_ Do they strictly have to be planes or could they be custom geometry ? (example : corner windows -> corner portal or set of two planes ?)

2_ Does normals orientation matter ?

2B_ If normals orientation does not matter, admitting i have one interior shot with portals and one exterior shot. When it comes to render the exterior shot, I guess I have to hide portals as the renderer do not know that the portals are aiming to help the sampling for the interior only. Am I right ?

2017-05-09, 12:18:13
Reply #1

Juraj

  • Active Users
  • **
  • Posts: 4743
    • View Profile
    • studio website
I asked Ondra about the "2" few times, he told me it doesn't matter.

But honestly I still don't know about such feature...I do have scenes, where it's almost hard to identify whether interior or exterior has more content, while I want just interior to be sampled more.
I almost never have those clear cut "just air outside window, nothing else" scenes so I struggle how to place them efficiently, and unsurprisingly, it almost never does anything for me :- D
Please follow my new Instagram for latest projects, tips&tricks, short video tutorials and free models
Behance  Probably best updated portfolio of my work
lysfaere.com Please check the new stuff!

2017-05-09, 12:37:13
Reply #2

Fluss

  • Active Users
  • **
  • Posts: 553
    • View Profile
I just made some tests with my interior.

5 passes without portals = 17,79% noise
5 passes with portals      = 14,65% noise

So i guess portals help to reduce noise amount, especially in 1.6 as Ondra said :

we changed the light sampling algorithm, so more samples generated are not immediately rejected and get traced. This usually lowers noise a lot, but if the scene has heavy occlusion (windows without portals), most of those traced rays might end up being occluded. We are working on including occlusion into the mix for 1.7

👉🏼 https://forum.corona-renderer.com/index.php/topic,15931.0.html

That said, i'm kinda disappointed that portals have not any directivity, refering to the example 2B exposed above.
« Last Edit: 2017-05-09, 13:07:31 by Fluss »

2017-05-09, 12:41:21
Reply #3

Juraj

  • Active Users
  • **
  • Posts: 4743
    • View Profile
    • studio website
Yet to test portals in 1.6, didn't know there was a change.
Please follow my new Instagram for latest projects, tips&tricks, short video tutorials and free models
Behance  Probably best updated portfolio of my work
lysfaere.com Please check the new stuff!

2017-05-09, 12:52:29
Reply #4

Frood

  • Active Users
  • **
  • Posts: 1903
    • View Profile
    • Rakete GmbH
2B_ If normals orientation does not matter, admitting i have one interior shot with portals and one exterior shot. When it comes to render the exterior shot, I guess I have to hide portals as the renderer do not know that the portals are aiming to help the sampling for the interior only. Am I right ?

That´s an interersting one. I recently finished a project, 2 buildings+env in the scene, shots from outside and inside(s), one with a very difficult light situation.

Both buildings had portals and surprisingly when I was inside building A (with portals active) and had also switched on the portals of building B, it gave me LOTS of noise inside building A.

Had no time to create a simple test scene to reproduce though and I´m a complete idiot in understanding how Corona portals exactly work. But it seems such a setup makes things worse.



Good Luck


Never underestimate the power of a well placed level one spell.

2017-05-11, 22:47:23
Reply #5

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
1) custom geometry is allowed, as long as you never see 2 portals in single unoccluded line from any significant point of scene (it then gives incorrect brightness)

2b) even when you render exterior with an interior visible from the exterior, portals should generally help - as the visible interior will still be the most noisy part of the scene and portals will help it.

Portals will make rendering exterior parts of an image slower, but as exteriors generally clear up much faster than interiors, it should be fine
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2017-05-12, 12:55:32
Reply #6

Fluss

  • Active Users
  • **
  • Posts: 553
    • View Profile
Ok thx for the informative feedback Ondra.