Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: mike_kennedy on 2017-07-12, 19:16:54

Title: Light map seams
Post by: mike_kennedy on 2017-07-12, 19:16:54
Hi There,
Using Corona for Lightmaps baking has some issues for us, wondering if some one or a Dev could comment and let us know if this is a bug or a settings issue.

Our render to texture settings are up to 32 pixels of bleed (32 Interior, 16 Exterior, but this still happens.

There is a bleed / lack of accuracy compared to Vray and as a result large surfaces have a seam like this around them
(Images attached)

A link to look at the results in Web GL

http://vdcdemo.aareas.com/vdc3d/modelpreview.html?modelname=3625C4_Providence%20Tradition_03_CORONA_003-WEBGL%20&username=mikek&date=7-11-2017&version=V1

https://playcanv.as/b/8ypVaNs5/



If we are doing something wrong please let us know, any solution would be great :)
Mike K












Title: Re: Light map seams
Post by: romullus on 2017-07-12, 19:39:25
Does bleed means padding? I remember that Corona RTT had some issues with rendering padding, Maybe that problem had returned? You may want to doublecheck your baked maps for padding.
Title: Re: Light map seams
Post by: mike_kennedy on 2017-07-12, 20:08:05
Here are some screen shots of our interior and exterior settings, please comment if you see a better way of setting these up for baking in Corona
Title: Re: Light map seams
Post by: romullus on 2017-07-12, 20:32:35
Those are post processing settings and it has little to do with your problem. Let's start from RTT settings window. Could you show it?
Also you mentioned that Vray gives you better results, could you compare directly bake maps from Vray and Corona? Maybe it will show more clearly what exactly the problem is.
Title: Re: Light map seams
Post by: mike_kennedy on 2017-07-12, 21:17:43
Bleed = Padding for sure. We have it set to 16 for Exteriors and 32 for Interiors.

We do this via custom scripting and this is the section that pertains to the bleed, I change it manually if it needs to be larger:



   if (substring ((classof renderers.current) as string) 1 6) == "Corona" then
                                             (
                                                lightmap_type = Corona_Light()
                                                --lightmap_type = Corona_Beauty()
                                                lightmap_type.targetMapSlotName = "Self illum."
                                             )
                                          else
                                             (
                                                lightmap_type = VRayLightingMap()
                                                lightmap_type.targetMapSlotName = "Self-Illumination"
                                             )
                                          lightmap_type.outputSzX = render_x
                                          lightmap_type.outputSzY = render_y
                                          lightmap_properties = (surf_scene_array[surf_scene_array_count]).INodeBakeProperties
                                          lightmap_properties.bakeEnabled = true
                                          lightmap_properties.nDilations = 32
                                          lightmap_properties.addBakeElement lightmap_type
                                          lightmap_type.filename = LightBakeMap_png_name
                                          lightmap_properties.bakeChannel = (unwrapMod.getMapChannel())
Title: Re: Light map seams
Post by: mike_kennedy on 2017-07-21, 17:07:55
lightmap_properties.nDilations 32 is the padding setting in the script.
it works with Vray properly, doesen't work with Corona as expected

Title: Re: Light map seams
Post by: mike_kennedy on 2017-07-21, 17:09:29
Hi All, I responded on this thread with all the info:


https://forum.corona-renderer.com/index.php?topic=16749.new;topicseen#new