Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Bug Reporting => [Max] Resolved Bugs => Topic started by: maru on 2014-03-14, 15:44:42

Title: Portals causing fireflies
Post by: maru on 2014-03-14, 15:44:42
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)
Title: Re: Portals causing fireflies
Post by: Ondra on 2014-03-14, 15:49:38
Can you upload me the exact scene?
Title: Re: Portals causing fireflies
Post by: maru on 2014-03-14, 15:56:12
couldn't find the uploader thingy, hope it works, quickly cleaned, I have to go now :D
Title: Re: Portals causing fireflies
Post by: Ondra on 2014-03-14, 17:34:06
Those are self-intersections/random GI noise, not related to the portals.
Title: Re: Portals causing fireflies
Post by: maru on 2014-03-14, 21:00:33
Ok, but I thought portals should fix/help in this case. These fireflies don't go away.
Title: Re: Portals causing fireflies
Post by: Ondra on 2014-03-14, 21:08:45
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.
Title: Re: Portals causing fireflies
Post by: Ludvik Koutny on 2014-03-15, 01:06:10
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

Title: Re: Portals causing fireflies
Post by: maru on 2014-03-15, 10:35:39
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.