Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Bug Reporting => [Max] Resolved Bugs => Topic started by: The Pixel Artist on 2014-02-06, 01:04:16

Title: Hard to remove noise & fireflies when using rounded edges on metals.
Post by: The Pixel Artist on 2014-02-06, 01:04:16
I've noticed that when using the "Rounded corners" option on metallic materials (highly reflective/glossy/etc) it will produce a lot of glossy noise or fireflies that just won't clean up, even after a few hundred passes.

Not sure if there's a way to fix this or if it's just a bug.  Any ideas?
Title: Re: Hard to remove noise & fireflies when using rounded edges on metals.
Post by: Ondra on 2014-02-06, 01:33:09
those look like sun reflections, do you have sun visibility to reflections enabled?
Title: Re: Hard to remove noise & fireflies when using rounded edges on metals.
Post by: The Pixel Artist on 2014-02-06, 02:28:38
No, it's actually rendered with an HDRI.

BTW, is there a way to render a scene with the Corona Sun/Sky combo, but also use an HDRI for the background/reflection/refraction?  I use this setup in Vray, but couldn't get it to work in Corona.
Title: Re: Hard to remove noise & fireflies when using rounded edges on metals.
Post by: Utroll on 2014-02-06, 03:32:10
Just for reflection I would light with HDRI and plug override reflection in corosettings.

If you mean adding a sun plus or less in the position of the hdri sun to add some hard shadows, I think you can achieve that too but in the very sensitive parameters world of corona : tricky :) I could achieve that with an hdri having a global multiplier of 20 and a sun having it's power at 0,2.. it seems that the important thing about is in the corona sun tab : separate sampling (below the choice of sun color input, by sky, or direct temp. choice,..)

The sensivity of corona + the exposure/highight compression makes it not so easy to figure at first but if you start by lightning only with hdri, exposure at 0 and highlight comp. at 1, you can tweak the multiplier of your hdri till you get correct result, may be a bit underexpose and then you can start 'adding' the sun, start from 0,05 even, and going up...

I'm very willing to ear about this separate sampling parameter, I think it's usefull when corona sun is not used with corona sky map.. but someone might explain more may be ?

Now don't expect purist too welcome that way, it is FAKE to add a sun to a sun. Some might say that a correctly exposed hdri already contains a sun.. you can 'paint' with photoshop a pure bright spot on your hdr to force shadows directionnality.
(a bit like http://www.cgtechniques.com/tutorials/synthhdr.php you might find clearer sources about)
Title: Re: Hard to remove noise & fireflies when using rounded edges on metals.
Post by: Ludvik Koutny on 2014-02-06, 09:22:57
What's your PT samples value?
Title: Re: Hard to remove noise & fireflies when using rounded edges on metals.
Post by: The Pixel Artist on 2014-02-06, 15:38:08
What's your PT samples value?

Default values, I believe, as I'm actually not sure which the PT samples are (I'm assuming that mean path tracing samples).  I don't see that listed, is that the same as MSI or the GI multiplier maybe?

Either way, I turned everything back to default for this image.

Title: Re: Hard to remove noise & fireflies when using rounded edges on metals.
Post by: Ondra on 2014-02-06, 17:39:10
still, it looks like the HDRI has some bright spot acting as a sun. In that case it creates the usual problem with fireflies. As a test, try setting environment reflect override to something like constant color. The problems should go away.
Title: Re: Hard to remove noise & fireflies when using rounded edges on metals.
Post by: Ludvik Koutny on 2014-02-06, 18:15:41
Do not ever do that, ever....  setting Enviro override to constant color may solve the issue but it will significantly lower quality of your output. The problem here is insufficient amount of AA samples, so try to lower PT samples to something like 4, so more of the power goes to AA instead of GI.

Another source of problem could be using fine bump map in combination with small chamferred edges or rounded corners feature. If that is the case, then the result you are getting is pretty much right.
Title: Re: Hard to remove noise & fireflies when using rounded edges on metals.
Post by: Ondra on 2014-02-06, 19:03:11
I just need the image for debugging
Title: Re: Hard to remove noise & fireflies when using rounded edges on metals.
Post by: The Pixel Artist on 2014-02-06, 23:15:18
I just need the image for debugging


Ok, will do.
Do not ever do that, ever....  setting Enviro override to constant color may solve the issue but it will significantly lower quality of your output. The problem here is insufficient amount of AA samples, so try to lower PT samples to something like 4, so more of the power goes to AA instead of GI.

Another source of problem could be using fine bump map in combination with small chamferred edges or rounded corners feature. If that is the case, then the result you are getting is pretty much right.

Rawalanche, thanks for your help.  Now, forgive my ignorance, where do I find the "PT samples" you've mentioned.  Unless I'm just not seeing it, I don't see that parameter anywhere.  Is that maybe the same as MSI?

Also, reading in another thread I found during a search, you mentioned that metals should generally never use pure black nor a level of 1, but something like .55 for aluminum, .7 for steel, and .95 for mirrors, increasing the IOR to increase the reflectivity.  Now, my questions is, what should I set the Reflection color at, 255 or should it be something under 220?
Title: Re: Hard to remove noise & fireflies when using rounded edges on metals.
Post by: Ludvik Koutny on 2014-02-10, 12:57:49
I just need the image for debugging


Ok, will do.
Do not ever do that, ever....  setting Enviro override to constant color may solve the issue but it will significantly lower quality of your output. The problem here is insufficient amount of AA samples, so try to lower PT samples to something like 4, so more of the power goes to AA instead of GI.

Another source of problem could be using fine bump map in combination with small chamferred edges or rounded corners feature. If that is the case, then the result you are getting is pretty much right.

Rawalanche, thanks for your help.  Now, forgive my ignorance, where do I find the "PT samples" you've mentioned.  Unless I'm just not seeing it, I don't see that parameter anywhere.  Is that maybe the same as MSI?

Also, reading in another thread I found during a search, you mentioned that metals should generally never use pure black nor a level of 1, but something like .55 for aluminum, .7 for steel, and .95 for mirrors, increasing the IOR to increase the reflectivity.  Now, my questions is, what should I set the Reflection color at, 255 or should it be something under 220?

I think PT samples were renamed to GI samples multiplier in dailies. As for reflection values... good practice is to never go over like 240, but having 255 in reflection should not have nearly as destructive effect as having 255 white in diffuse slot :)
Title: Re: Hard to remove noise & fireflies when using rounded edges on metals.
Post by: vkiuru on 2014-02-10, 20:32:18
I just need the image for debugging


Ok, will do.
Do not ever do that, ever....  setting Enviro override to constant color may solve the issue but it will significantly lower quality of your output. The problem here is insufficient amount of AA samples, so try to lower PT samples to something like 4, so more of the power goes to AA instead of GI.

Another source of problem could be using fine bump map in combination with small chamferred edges or rounded corners feature. If that is the case, then the result you are getting is pretty much right.

Rawalanche, thanks for your help.  Now, forgive my ignorance, where do I find the "PT samples" you've mentioned.  Unless I'm just not seeing it, I don't see that parameter anywhere.  Is that maybe the same as MSI?

Also, reading in another thread I found during a search, you mentioned that metals should generally never use pure black nor a level of 1, but something like .55 for aluminum, .7 for steel, and .95 for mirrors, increasing the IOR to increase the reflectivity.  Now, my questions is, what should I set the Reflection color at, 255 or should it be something under 220?

I think PT samples were renamed to GI samples multiplier in dailies. As for reflection values... good practice is to never go over like 240, but having 255 in reflection should not have nearly as destructive effect as having 255 white in diffuse slot :)

If this is true about the reflection value, maybe it would be a good idea to make the default value something other than 255 white? The though that it could cause problems, even minor ones, never crossed my mind.
Title: Re: Hard to remove noise & fireflies when using rounded edges on metals.
Post by: Ludvik Koutny on 2014-02-12, 17:51:32
If this is true about the reflection value, maybe it would be a good idea to make the default value something other than 255 white? The though that it could cause problems, even minor ones, never crossed my mind.

Well, then you have to care also about changing output of any reflection map that has white areas on it. So it's easier to just set reflection level to 0.9, and then it does not matter what color or map is used to drive reflectivity ;) That's why those level values are there after all, to define how strong white color is ;)
Title: Re: Hard to remove noise & fireflies when using rounded edges on metals.
Post by: vkiuru on 2014-02-13, 08:46:04
If this is true about the reflection value, maybe it would be a good idea to make the default value something other than 255 white? The though that it could cause problems, even minor ones, never crossed my mind.

Well, then you have to care also about changing output of any reflection map that has white areas on it. So it's easier to just set reflection level to 0.9, and then it does not matter what color or map is used to drive reflectivity ;) That's why those level values are there after all, to define how strong white color is ;)

Yeah makes sense.
Title: Re: Hard to remove noise & fireflies when using rounded edges on metals.
Post by: Ondra on 2014-02-13, 18:59:46
maybe it would be fastest if you could post the scene setup with camera, environment map, and one of the problematic objects
Title: Re: Hard to remove noise & fireflies when using rounded edges on metals.
Post by: romullus on 2014-02-15, 16:15:25
I don't think that those bright spots are flaw of corona. In real life you would get the same. But due to imperfections of optical elements, be it pupil or camera lens, we perceiving it as glare.

Now, how to fight with it. One can add glare layer in post where those spots are. Or try to lessen this effect in render by lowering reflectivity of metal materials, increasing radius and samples of rounded corners. One can even try to increase sun size.

In your example i would even consider to turn rounded corners off on some materials.
Title: Re: Hard to remove noise & fireflies when using rounded edges on metals.
Post by: Ondra on 2014-02-18, 16:13:21
Any progress? Can you upload the scene? (http://corona-renderer.com/upload/)
Title: Re: Hard to remove noise & fireflies when using rounded edges on metals.
Post by: Ondra on 2014-03-06, 15:27:37
inactive topic