Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Bug Reporting => [Max] Resolved Bugs => Topic started by: The Pixel Artist on 2014-01-26, 21:44:36

Title: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: The Pixel Artist on 2014-01-26, 21:44:36
Been seeing this issue on a few scenes that have Forest Pack scattered tree/plant objects.  The FP objects are "leaking" though other foreground objects.  Finally isolated the issue down and found that it was only the scatter objects that used opacity masks in the materials.

Below are a few images to hopefully demonstrate better.
Also, here a panoramic image I rendered that shows the problem as well.
http://www.thepixelartist.com/images/corona/20140126_opacity_bugs/index.html (http://www.thepixelartist.com/images/corona/20140126_opacity_bugs/index.html)


This has been an issue for at least the last three builds (1/16, 1/17, 1/24), haven't tested it with V5 though.


I'll also mention that I've seen another issue where some forest pack objects will not render at all, even though it's visible (and on) in the viewpoint.  It seems to be intermittent, as after starting the render again that FP object might now render fine, but other FP object might not.  I've been trying to duplicated the issue without luck and may have been fixed in the 1/24, as I havent' noticed it yet.
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: Ondra on 2014-01-26, 21:51:41
Can you upload me the scene? (http://corona-renderer.com/upload/)
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: The Pixel Artist on 2014-01-26, 22:32:09
Sure, but it'll have to be another scene, as this one has a GB or two in resources (plus it's still a propitiatory scene).  I'll make a custom scene with less object to send in just a little bit.
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: Ondra on 2014-01-26, 22:52:21
ok, anything where you can reproduce it, the smaller the better.
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: The Pixel Artist on 2014-01-26, 23:59:13
I just tried building a small test scene and imported that exact same mesh and FP object.  But couldn't reproduce it in the new scene. (see attached image)

However, I've seen this issue now in 3-4 scenes, all quite large scenes with lots of geometry/texture/xrefs/etc, that also started off as Vray scene, then converted to Corona.  So this could be a tricky one as the problem could be do to scene scale, conflict with other mats or FP objects, etc.  Some of the problem plants are also xref'd, but I ruled that out already (did a test were I merged everything).   Could be a conversion issue or bad mat, but I've gone though all the tree mats to make sure they were OK.  Only factor I found was the opacity maps.

I'm going to PM you a dropbox link to another scene that was showing some of the same problem, plus another big Forest Pack issue that I'm about to make another post about.  (random disappearing FP objects).
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: Ondra on 2014-01-27, 01:16:11
note to self: 20140126.zip
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: mirokurcik on 2014-01-27, 13:54:29
This is not a problem ForestPack, I got the same result with CoronaScatter.
The reason is transparency material (leaves with alpha channels), but the solution I have not found yet.
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: mirokurcik on 2014-01-27, 14:01:56
examples:
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: Ondra on 2014-01-27, 15:55:20
ok, I think I know what is causing this. Will attempt to fix later
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: The Pixel Artist on 2014-01-27, 18:06:32
Cool, that's very good news.  Best of luck and thank you!
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: The Pixel Artist on 2014-02-06, 01:18:07
ok, I think I know what is causing this. Will attempt to fix later

Keymaster, any luck with this problem?  It's really driving me crazy, because all of my good trees/plants use opacity mapped leaves and will cause this problem with FFP or CoronaScatter.
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: Ondra on 2014-02-06, 17:36:51
probably fixed. I cannot verify it in the scene since I dont have VRay and you are using vray cameras.
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: The Pixel Artist on 2014-02-06, 19:00:58
That's terrific to hear, thanks KM!!

I'll make sure to test it out.  Is this already fixed in the 2014-02-05 build or the next one?
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: Ondra on 2014-02-06, 19:04:11
it will be in the next one
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: The Pixel Artist on 2014-02-06, 20:59:26
I'm happy to confirm that as of the 2014-02-06 update it does appear to be fixed based on my first tests!  Awesome!!!!  Thanks again!
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: mirokurcik on 2014-02-06, 21:31:24
fixed in 2014-02-06, tested.

thank you ondro.
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: Ondra on 2014-02-07, 01:37:17
cool
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: melviso on 2015-12-07, 23:00:47
Hello,

I am having this problem as well. Finally figured it's from the opacity maps of the leaves.Is there any workaround for this? I am using Corona A6 for 3dsmax.
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: Ondra on 2015-12-07, 23:38:22
in A6 completely disable any refraction, or upgrade on 1.x where the rpoblem is solved
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: melviso on 2015-12-08, 01:25:17
Thanks for the help Ondra.

I have the refraction for the leaves' materials at Level = 0.0, after u pointed this out, I have also turned the refraction IOR and glosiness to 0.0.
The error still shows up.
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: maru on 2015-12-08, 13:19:50
Are you sure you are changing the proper material?
Which version of Corona is that?
Title: Re: Forest Pack objects with opacity mapping "leaking" through foreground objects
Post by: melviso on 2015-12-08, 16:09:02
@ maru I am using Corona A6.

Thanks for the help guys.

Found the solution.

Since the problem is from the opacity maps. Cranking up the Output Amount of the opacity map seems to resolve the issue. No more alpha map leak.