Announcement

Collapse
No announcement yet.

Lets make Lightmass EPIC (and understandable)

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

    and i cant find photon search radius too,any one knows where is that,or does it has another name in ini?

    Comment


      A new test with Raghu scene :






      10 min on a I7-3770K.
      I took into account the explanations of DanielW.

      Editor :

      Lighting Quality : Production
      Static Lighting Level=0.2
      Num Indirect Lighting=100
      Indirect Lighting Quality=1
      Indirect Lighting Smoothness=1


      BaseLightmass.ini :

      [DevOptions.PhotonMapping]
      NumIrradianceCalculationPhotons=2000
      IndirectPhotonSearchDistance=1000

      [DevOptions.StaticLightingProductionQuality]
      NumHemisphereSamplesScale=100
      NumDirectPhotonsScale=1
      NumIndirectPhotonsScale=1
      NumIndirectIrradiancePhotonsScale=1
      AdaptiveBrightnessThresholdScale=.01


      This is a lot faster than anything I tested so far.
      (Depending of the scene and without the futur "skylight portal", the NumHemisphereSamplesScale may need to be increase even more)

      PS : Please, can someone at Epic do something for the really ugly temporalAA implemeted in 4.9 (I try 4.10 preview and it's the same thing).
      Last edited by koola; 11-05-2015, 09:33 AM.
      ____________________________________________________________
      https://twitter.com/Koola_UE4

      Comment


        Originally posted by koola View Post
        A new test with Raghu scene :






        10 min on a I7-3770K.
        I took into account the explanations of DanielW.

        Editor :

        Lighting Quality : Production
        Static Lighting Level=0.2
        Num Indirect Lighting=100
        Indirect Lighting Quality=1
        Indirect Lighting Smoothness=1


        BaseLightmass.ini :

        [DevOptions.PhotonMapping]
        NumIrradianceCalculationPhotons=2000
        IndirectPhotonSearchDistance=1000

        [DevOptions.StaticLightingProductionQuality]
        NumHemisphereSamplesScale=100
        NumDirectPhotonsScale=1
        NumIndirectPhotonsScale=1
        NumIndirectIrradiancePhotonsScale=1
        AdaptiveBrightnessThresholdScale=.01



        This is a lot faster than anything I tested so far.
        Koola stamp of approval!

        Did you try to build lighting using high/medium quality?
        I'm really curious to compare render time vs lighting quality, Rafareis got me curious since he bake everything usually using Medium lighting quality.
        ENTER REALITY

        VR Solutions

        Contact us for more informations

        Comment


          where is my post? why not publishing ??

          Comment


            My 2c to DanielW or any developer working on this.
            I was overwhelmed by the amount of settings that exist for lighting up a scene when I started digging into UE4. Rendering engines have moved on from the old hackish methods of lighting, to an easier and more modern approach, unbiased and physically based lighting. I dream one day that we have something similar in unreal. I know lighting in a game engine is wildly different from a ray tracer, but at least moving to that direction is what I'm proposing.

            I've read through most posts in this thread and they always seem to be "Hey I tweaked this and I changed that and I don't know what it is or what it's supposed to do, but I got this awesome result." We are all looking for the magic numbers that give us the best results, but I think I'm speaking for everyone when I say we desperately need to know why the numbers work and if we can do without changing parameters we don't understand or are too technical.

            Quite frankly, i wonder how have many good-looking games nailed the lighting with such huge number of settings and sparse documentation. UE4 is a great engine, the pricing model is a dream come true for an indie like me, but I feel this area needs some love and attention.

            Comment


              There are many settings because this engine can be used to make almost everything, from AAA games to small mobile games. It's a jack of all trade engine. It's nothing like an offline renderer specialized in architectural viz like Corona, for example.

              The real thing is to learn how photon mapping works. I'm sure that more than half of us never ever read anything about photon mapping! That would be a great place to start (Rafareis123 posted a .pdf document about it in this thread).

              I highly doubt Epic is going to change lightmass at all and afaik pretty much all engines use the same principles (photon mapping, lightmaps). I even think unreal is more user-friendly than it's competitors!!!

              A 1-click solution, easy to master, would be to use something like Lumion. But Unreal can do so much more than that, hence the complexity and the limitations of it's ''renderer'' and the multitude of settings.

              Comment


                Hi Guys,

                I think we're getting a little off track.

                Raghu started this thread so we could sort out problems that currently exist with GI - specifically with SpotLights and Skylights. In doing so, he has helped Daniel successfully (I think?) indentify 'bugs' and the issues we're facing transitioning from our ArchViz workflow.

                I dont think it's really a thread for 'workarounds' or discussions on how to make it more user friendly for us. Perhaps it's best to highlight those specific issues in a seperate thread and leaving this for resolving the issues highlighted by Raghu initially.
                Last edited by Mr.Snrub; 11-06-2015, 01:11 AM.

                Comment


                  Understanding "Scale" suffix.

                  @DanielW - Again thank you very much for explaining the working of those values (Post # 166).

                  I think we are nearly there to understand the internal workings of Lightmass (of course also waiting for Rafaeis123's guide). As usual I have few more questions .

                  I have created few visual notes of my general understanding about the working of values in BaseLightmass.ini, need your feedback about the same.





                  Also I tried the Solution of light leaks as provided in post # 166, It's not working as intended.



                  There is no difference at all after increasing the IndirectPhotonSearchDistance Value alone.


                  But Recently when Rafareis123 and Koola Posted their results, they both were using "NumIrradianceCalculationPhotons" in collaboration with "IndirectPhotonSearchDistance". Increasing "NumIrradianceCalculationPhotons" is certainly helping with light leaks a lot. Here are the results -



                  After increasing "IndirectPhotonSearchDistance" to a certain value say 1000, if we also increase the value of "NumIrradianceCalculationPhotons" by say 500 each time (I increased it from 1000 to 2000 in the tests), You sure can get rid of all the light leaks from the scene.

                  @Daneil - Kindly let us know if this is the perfect solution to remove light leaks (combination of "NumIrradianceCalculationPhotons" + "IndirectPhotonSearchDistance")?

                  @rafareis123 and @koola - Thanks for posting your results, I was finally able to remove the light leaks with help of "NumIrradianceCalculationPhotons" and "IndirectPhotonSearchDistance".
                  Attached Files
                  Raghu
                  http://rag3dviz.com
                  HDRI Lighting Tutorial
                  Basic UVW Workflow Tutorial

                  Comment


                    Thanks for sharing you guys, I'll try and post the results

                    Comment


                      Awesome findings and tests- one step closer to demystifying the .ini tweaks!
                      ARTSTATION: https://www.artstation.com/artist/noisestorm

                      Comment


                        Hi Raghu, thank you as well for putting all this together- I really appreciate all the great help and the other folks who contributed- very much appreciated
                        environment artist | VR Dev
                        serriffe.com

                        Comment


                          I like your visual notes Raghu! thumbs up!

                          Comment


                            Awesome thread! I appreciate a lot all the contribution people are making.

                            @DanielW (or anybody with that knowledge from post #8), if you could explain the functioning of Lightmass using Feynman Technique, surely most people would understand and we would progress a lot on this thread. Feynman Technique, for those who don't know, is basically about simplifying a hard concept and making analogies as if you were explaining it to a 5 years old child.

                            Example:
                            For a 5 years old child, this would be very confusing:
                            "Gravity is described by the general theory of relativity as a consequence of the curvature of spacetime caused by the uneven distribution of mass/energy; and resulting in time dilation, where time lapses more slowly in strong gravitation"
                            But this would be easy:
                            "Gravity is what attracts the planets to the Sun and us to the Earth"

                            Comment


                              Did you just explain the Feynman Technique using the Feynman Technique? :P

                              Comment


                                Great thread! It was about time we would demystify Lightmass
                                Alex Leiva

                                Architect/Visualiser, National VR lead
                                C o x Architecture

                                LinkedIn: https://www.linkedin.com/in/alex-leiva-88187840/

                                COLORAMA - Cinematic color grading // The Vineyard Challenge Solo – Runner Up

                                Comment

                                Working...
                                X