Announcement

Collapse
No announcement yet.

Lets make Lightmass EPIC (and understandable)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Well atleast we know that behind Epic's doors they're working on a solution for us, how exciting! Together with that fact that @DanielW and Koola and Rafael are contributing to this epic discussion we should be hopeful!

    Comment


      Can anyone share the lightmass.ini with defaults? Somehow I lost my backup and can't remember all the defaults.
      Portfolio

      Comment


        Originally posted by Robbie222 View Post
        Can anyone share the lightmass.ini with defaults? Somehow I lost my backup and can't remember all the defaults.
        There you go
        Attached Files

        Comment


          Originally posted by MSL View Post
          Hi All,

          I got much better results with following changes:
          Static Lighting Level Scale: 1
          Num Indirect Lighting Bounces: 50
          Indirect Lighting Quality: 2
          Indirect Lighting Smoothness: 1

          BaseLightMass.ini
          [DevOptions.ImportanceTracing]
          NumHemisphereSamples=32

          [DevOptions.PhotonMapping]
          ; 400 gives a smooth enough result without requiring a very large search
          NumIrradianceCalculationPhotons=800
          ; Allocating most final gather samples towards importance samples gives a good result as long as there are enough first bounce photons
          FinalGatherImportanceSampleFraction=.8
          DirectPhotonDensity=700
          ; Same as DirectPhotonDensity, since currently direct photons are only used to create irradiance photons
          DirectIrradiancePhotonDensity=700

          [DevOptions.StaticLightingProductionQuality]
          NumDirectPhotonsScale=10
          ; Decrease direct photon search distance so that we will have more accurate shadow transitions. This requires a higher density of direct photons.
          DirectPhotonSearchDistanceScale=.2

          ; Need a lot of indirect photons since we have increased the number of first bounce photons to use for final gathering with NumImportanceSearchPhotonsScale
          NumIndirectPhotonsScale=32
          NumIndirectIrradiancePhotonsScale=4

          My scene has Directional Light apart from Skylight:

          I have cranked up Indirect Lighting Intensity to 5 for both.

          Most of the artifacts including Light leaks are removed with these settings and Light building times are also at acceptable levels (My scene has lot of complex objects still it took around 50 mins to 1 hours).

          Since, I did these experiments with commercial project that I am currently working on, I am not posting screenshots. I will try to post screenshots of Test Level everyone is using here.

          P.S: These are not final values, I am still trying to figure out
          Screenshots attached.

          This is the scene has only sky Light and following settings:

          Static Lighting Level Scale : 1
          Num Indirect Lighting Bounces : 100
          Indirect Lighting Quality : 10
          Indirect Lighting Smoothness : 1

          BaseLightMass.ini
          [DevOptions.ImportanceTracing]
          NumHemisphereSamples=32

          [DevOptions.PhotonMapping]
          ; 400 gives a smooth enough result without requiring a very large search
          NumIrradianceCalculationPhotons=800
          ; Allocating most final gather samples towards importance samples gives a good result as long as there are enough first bounce photons
          FinalGatherImportanceSampleFraction=.8
          DirectPhotonDensity=1000
          ; Same as DirectPhotonDensity, since currently direct photons are only used to create irradiance photons
          DirectIrradiancePhotonDensity=1000
          ; Need a very high indirect photon density since first bounce photons are used to guide the final gather
          IndirectPhotonDensity=2000
          IndirectIrradiancePhotonDensity=1500

          [DevOptions.StaticLightingProductionQuality]
          NumDirectPhotonsScale=10
          ; Decrease direct photon search distance so that we will have more accurate shadow transitions. This requires a higher density of direct photons.
          DirectPhotonSearchDistanceScale=.2

          ; Need a lot of indirect photons since we have increased the number of first bounce photons to use for final gathering with NumImportanceSearchPhotonsScale
          NumIndirectPhotonsScale=32
          NumIndirectIrradiancePhotonsScale=4

          Click image for larger version

Name:	HighresScreenshot00000.png
Views:	1
Size:	933.6 KB
ID:	1092374Click image for larger version

Name:	HighresScreenshot00001.png
Views:	1
Size:	907.1 KB
ID:	1092375Click image for larger version

Name:	HighresScreenshot00002.png
Views:	1
Size:	918.3 KB
ID:	1092376Click image for larger version

Name:	HighresScreenshot00003.png
Views:	1
Size:	925.1 KB
ID:	1092377Click image for larger version

Name:	HighresScreenshot00004.png
Views:	1
Size:	943.5 KB
ID:	1092378

          Strangely, the artifacts at the edges are present only in the screenshots but not in the Editor or in Game play mode.
          Last edited by MSL; 11-01-2015, 04:37 AM.

          Comment


            Thank you.

            Those are not lighting artifacts. It's antialiasing issue caused by the fact that screenshot doesn't benefit of TXAA, as Heartlessphil discovered.
            Portfolio

            Comment


              Interesting results MSL, build time for the scene?

              Comment


                I'm doing a bunch of test with the default ini.

                I'm getting much better results with a low static lighting level scale (From .8 to .1) than any other settings. I'm even leaving lighting quality to 1, smoothness to 1, bounces to 10-20. I set my lightmaps res higher/uncompressed and I'm getting better results and faster!

                Time to reconsider my old workflow I think. (for skylight-lit only scenes, at least).

                Quick test for the indirect lighting quality alone. Lightmaps res are 1024, scale set to .4

                Quality = 6 (4mins30sec build time)
                Click image for larger version

Name:	quality6.jpg
Views:	1
Size:	434.5 KB
ID:	1092390

                Quality = 1 (1min32s build time)
                Click image for larger version

Name:	quality 1.jpg
Views:	1
Size:	377.0 KB
ID:	1092391

                Not a huge difference imo. build time is a lot higher with 6 tho.

                Static lighting level scale alone now (with indirect lighting quality set to 1)

                Scale = 1 (1min13s build time)
                Click image for larger version

Name:	scale1.jpg
Views:	1
Size:	373.4 KB
ID:	1092392

                Scale .4 (1min 32s build time)
                Click image for larger version

Name:	scalepoin4.jpg
Views:	1
Size:	376.4 KB
ID:	1092393

                Scale .1 noticed the extruded lines on the walls receive some shadowing :-) 3mins19s build time tho.
                Click image for larger version

Name:	scalepoin1.jpg
Views:	1
Size:	387.7 KB
ID:	1092394


                In this scene, it's clear that the best setting is the scale.
                Last edited by heartlessphil; 11-01-2015, 10:45 AM.

                Comment


                  This thread is getting muddier and muddier.

                  Daniel when you have a chance can you clear up some of these parameters that are being tweaked - it's a whole lot of stabbing in the dark from what I see.

                  Comment


                    I personally really like working with a directional sunlight combined with spotlight reflectors.
                    My current project is a apartment with multiple rooms, and by placing a spotlight reflector at each window it allows me to control the lighting per room which for me is a huge plus.
                    Of course it would be easier if placing one skylight would just correctly light a whole apartment, but at the moment it doesnt work like that.
                    My Porfolio

                    Comment


                      Here are some tests, settings are from MSL message but:
                      Added a sunlight ( intensity 6, indirect lighting 3 )
                      Skylight ( intensity 0.5, indirect lighting 3 )
                      Post process tweaks: enable GI with a value of 3

                      Render time: 2:03 hours on Production

                      Click image for larger version

Name:	01.JPG
Views:	1
Size:	46.5 KB
ID:	1092403
                      Click image for larger version

Name:	02.JPG
Views:	1
Size:	47.0 KB
ID:	1092404
                      Click image for larger version

Name:	03.JPG
Views:	1
Size:	44.5 KB
ID:	1092405
                      Click image for larger version

Name:	04.JPG
Views:	1
Size:	45.5 KB
ID:	1092406
                      ENTER REALITY

                      VR Solutions

                      Contact us for more informations

                      Comment


                        Awesome thread, lots of interesting stuff! I would also love to see those .ini settings exposed to the editor- perhaps under "advanced lighting" options to not confuse those who are just looking for the basic parameters! It's fine tweaking the .ini file manually, but it does get quite tedious and it would make the in editor settings feel much more complete if they were added!
                        ARTSTATION: https://www.artstation.com/artist/noisestorm

                        Comment


                          Oh nice! Portal Lights- sweet, can't wait for the public implementation. great work Daniel-



                          Originally posted by DanielW View Post
                          Early Portal results

                          Original (StaticLightingScale .1, Production, IndirectLightingQuality 1). Took 30s to build.
                          [ATTACH=CONFIG]63883[/ATTACH]

                          Portal setup
                          [ATTACH=CONFIG]63882[/ATTACH]

                          With portals, IndirectLightingQuality still set to 1! Took 90s.
                          [ATTACH=CONFIG]63884[/ATTACH]

                          The portals don't change the brightness, they just tell Lightmass where to look closely for lighting. In this case with all the skylight coming in small holes they make a big difference. In a more open scene they wouldn't be any good because the openings to the sky are large.
                          environment artist | VR Dev
                          serriffe.com

                          Comment


                            I've just built my whole 2000+ meshes scene in 59 mins by reducing the scale to .4 (lightmaps res 1024) and leave indirect lighting quality to 1. Previous attempt with quality 6 and scale .15 took 16 hours. (with lightmaps of 256). Stunning. It looks way better now and took 1/16th of the time!
                            Last edited by heartlessphil; 11-01-2015, 11:56 PM.

                            Comment


                              Originally posted by Nicolas3D View Post
                              Here are some tests, settings are from MSL message but:
                              Added a sunlight ( intensity 6, indirect lighting 3 )
                              Skylight ( intensity 0.5, indirect lighting 3 )
                              Post process tweaks: enable GI with a value of 3

                              Render time: 2:03 hours on Production

                              [ATTACH=CONFIG]64131[/ATTACH]
                              [ATTACH=CONFIG]64132[/ATTACH]
                              [ATTACH=CONFIG]64133[/ATTACH]
                              [ATTACH=CONFIG]64134[/ATTACH]
                              @Nicolas3D : What I have observed is, if we are using other lights along with Skylight we don't need the high Photon Density(Direct as well as Indirect). Increasing the Photon Density, increases the build time by the factor of amount of increase from default value(400).

                              @DanielW : Please correct me if I am wrong.

                              In your scene, you can get the same quality with the following settings with reduction of build time by around 60%:

                              Use default BaseLightMass.ini with only NumHemisphereSamplesScale > 64

                              Static Lighting Level Scale: 1
                              Num Indirect Lighting Bounces: 100
                              Indirect Lighting Quality: 10
                              Indirect Lighting Smoothness: 1

                              You can play with Indirect Light Intensity of SkyLight and Directional Light to get this quality with much faster Build time.

                              @heartlessphil: It took around 40 mins for light build. Also I have observed that these values differ substantially depending on scene. If scene has lot of closed space, as in case of Interiors, it is very difficult to get good lighting with only Skylight even with lot of changes in BaseLightMass.ini.

                              Comment


                                Thanks for the tips

                                I was about to build the scene with NumHemisphereSamplesScale > 400 at Medium quality, but I notice that the build time was incredibly slow, so I guess I'll try a lower value for that.

                                @heartlessphil: based on Rafareis reply and by some tests the scale is what gives you the soft shadow details from large/small objects and it makes quite the difference, and of course it increase the build time, not entirely sure how much since I mixed the values between tests.
                                With 0.15/0.25 the shadows quality is really good, but the value also depends on the scene itself and the degree of detail you want.

                                @DanielW: Are portals going to be included in a release soon?
                                ENTER REALITY

                                VR Solutions

                                Contact us for more informations

                                Comment

                                Working...
                                X