Author Topic: Portals causing fireflies  (Read 3302 times)

2014-03-14, 15:44:42

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
This probably isn't a bug but I'd like to know why this happens and if there is any way to get rid of it.

Again, my cave scene. I know this is a nightmarish gi situation but we had to stress test the new build, right? :) The cave object is single-sided thanks to the latest bugfix. I am placing a portal in the hole. It will never be exactly capping the geometry because I am using displacement. Here are my experiments.
(on the last pic, environment is disabled, only light mtl is used)
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2014-03-14, 15:49:38
Reply #1

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
Can you upload me the exact scene?
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2014-03-14, 15:56:12
Reply #2

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
couldn't find the uploader thingy, hope it works, quickly cleaned, I have to go now :D
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2014-03-14, 17:34:06
Reply #3

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
Those are self-intersections/random GI noise, not related to the portals.
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2014-03-14, 21:00:33
Reply #4

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
Ok, but I thought portals should fix/help in this case. These fireflies don't go away.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2014-03-14, 21:08:45
Reply #5

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
portals can help with overall amount of noise, but not with outliers created by some other way (like selfintersections in this case). Plus the GI is probably playing role, maybe decreasing MSI would help.
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2014-03-15, 01:06:10
Reply #6

Ludvik Koutny

  • VIP
  • Active Users
  • ***
  • Posts: 2557
  • Just another user
    • View Profile
    • My Portfolio
Actually, it was just self-intersections. The random GI noise was caused by them as well, since they were basically a tiny windows all around the mesh.

I did following things to fix the scene:

1, Created large box around the cave, and cut the opening using boolean. - This got rid of selfintersections

2, I placed the portal outside of the opening. Portals in Corona are not lights like in other renderers, they are actually just targets for sampling to be focused into. When you placed the portal inside, that meant not only Enviro, but also the end of the cave opening would be sampled additionally, so sending too many sample to the edge of the opening caused rest of the noise. Portals should either exactly fit the opening, or be slightly outside. Never inside.

Here's the fixed scene... should render fairly quickly :) I hope you use Max 2014. :D

BTW, since this is scene with quite complex direct lighting (strong light, small opening), you have done exact opposite in regards to sampling than what you should have done. In these situations, it often pays off to increase sampling of GI, as well as light samples... yet you have done the exact opposite :D


2014-03-15, 10:35:39
Reply #7

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
When you placed the portal inside, that meant not only Enviro, but also the end of the cave opening would be sampled additionally, so sending too many sample to the edge of the opening caused rest of the noise. Portals should either exactly fit the opening, or be slightly outside. Never inside.
This makes sense.

Quote
BTW, since this is scene with quite complex direct lighting (strong light, small opening), you have done exact opposite in regards to sampling than what you should have done. In these situations, it often pays off to increase sampling of GI, as well as light samples... yet you have done the exact opposite :D
It's just a quick scene to test RC3. I know I should have used more GI samples, but again thanks for clarification.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us