Author Topic: Sample Light ONLY via portals  (Read 3229 times)

2016-05-30, 16:47:48

Flavius

  • Active Users
  • **
  • Posts: 167
    • View Profile
Hi team,

I get a lot of files (CAD mainly) from the clients, (interiors) that have a lot of holes, and small openings in the geometry. For example, holes where the spotlight are, or small opening through the wall panels, or really small gaps between the ceiling and the wallts etc. As Maru explained to me, these kind of, messy geometry increase the noise a lot.
The thing is, I put portals on the main openings, like windows and open doors, but I still have the problem with the gaps, so I need to create extra geometry, sort of light blockers and sometimes it can be really time consuming.

EDIT: For example now I have a huge space (a ship) with a couple spiral staircases that lead outside, both top and bottom , dozens of really small gaps between panels and so on, and I get huge amounts of noise from the env light.

Wouldn't be an ideea to have an option to tell corona ONLY to sample light which comes from/intersect the portal and ignore the rest? So, no portal, no ENV. light at all.

What do you guys think?

Thank you!
« Last Edit: 2016-05-30, 17:40:40 by Flavius »

2016-05-30, 17:42:15
Reply #1

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
sorry, that is not possible with the way portals are implemented in Corona (basically you would have to disable MIS), and also goes against the Corona portal philosophy as a tool that does not change scene appearance
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2016-05-30, 22:10:14
Reply #2

FrostKiwi

  • Active Users
  • **
  • Posts: 686
    • View Profile
    • YouTube
sorry, that is not possible with the way portals are implemented in Corona
Sorry, made me really curious: What does the Portal friction parameter do?
I'm 🐥 not 🥝, pls don't eat me ( ;  ;   )

2016-05-31, 14:09:18
Reply #3

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
it changes how much samples are generated from portals, but that is only the explicit sampling - there is also the second part of MIS - implicit sampling, which is not affected by portals at all
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2016-05-31, 16:08:55
Reply #4

FrostKiwi

  • Active Users
  • **
  • Posts: 686
    • View Profile
    • YouTube
it changes how much samples are generated from portals, but that is only the explicit sampling - there is also the second part of MIS - implicit sampling, which is not affected by portals at all
ohh thanks, so... in theory, although it goes against corona philosophy, if the only light source is a portal, sampling would be a teeeeny tiiiny bit better if portal friction is 1?
I'm 🐥 not 🥝, pls don't eat me ( ;  ;   )

2016-05-31, 16:18:41
Reply #5

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
it depends on situation. If the environment map is HDR, it can actually hurt - because when sampling through a portal, you no longer take into account importance sampling of the HDR map. Or you can have portals placed incorrectly ;)
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)