Announcement

Collapse
No announcement yet.

Cheap Ambient Lighting System

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

    [RELEASED] Cheap Ambient Lighting System

    MarketPlace Link:

    Features:
    This pack includes a fully functional ambient/bounce lighting system meant as a cheap replacement for point lights. It offers a good cheap way for designers/artists to light out their environments and add some good ambient/bounce lighting using a system that works very much like regular unshadowed point lights without some of the issues point lights bring with them.
    • Ambient Lights can overlap as many times as needed with zero additional performance costs.
    • Ambient Lights can be any size and effect extremely large areas or very heavily detailed areas with zero additional costs.
    • Ambient Lights are fully dynamic and can be updated in real time in game.
    • Unlike point lights, the ambient lights will not create bright points in reflections.
    • Built in tools allow designers to automatically replace point light actors with Ambient Lights, automatically copying all settings over.
    • Ambient Lights also support ambient occlusion and subsurface scattering.
    • Ambient lights properly occlude and only render while on screen.
    • Lights provide the ability to toggle to a lower quality light mode when far away making the lights cost around half as much while in the distance.
    • GI features dynamically capture environment around them as well as color hue settings for full customization.
    • Full performance tweaking for GI features.

    Video:





    Screenshots:


    Click image for larger version

Name:	Screen1.jpg
Views:	488
Size:	194.4 KB
ID:	1642094































    Click image for larger version

Name:	Screen2.jpg
Views:	498
Size:	131.5 KB
ID:	1642095

    Click image for larger version  Name:	LightProbesGallery3.jpg Views:	1 Size:	118.0 KB ID:	1511376


    Documentation:
    Attached Files
    Last edited by evilmrfrank; 07-13-2019, 07:37 PM.

    #2
    Posted a small update to this based on some of the feedback I got upon initial release.

    Update 1.1
    • Updated Light Probe actors to use a new icon so they look different than regular point lights.
    • Set the light probe variables up so they can be adjusted using sequencer/matinee properly

    Comment


      #3
      This upcoming update to the lighting system is going to be a major one. Previously since these are being rendered through a post process material they would be rendered whether they were on screen or not, now only lights that are on screen will be rendered (Occluded lights will no longer be rendered either). With the new setup this also allowed me to increase the max light probe count per level to be basically infinite as its not a limit per level, just a max limit of probes on screen at any given time, which has also been increased to 64 nearby lights, and 64 far. Even though these lights are generally much cheaper than point lights in a lot of situations this update should bring a further massive performance boost!

      Update 1.2 (Coming Soon)
      • Fixed Low Quality Lighting mode to closer match High Quality lighting mode.
      • No longer a max of 64 light probes per world. Updated system automatically switches in and out new lights only include ones that are both within render distance and on screen to allow for a max of 64 near and 64 far lights on screen at any given time.
      • Added ability to toggle lights on and off in editor and during gameplay.
      • Set Light Probe Actor billboards to now scale properly in editor.
      • Decreased the default AO influence to 1, down from 2.
      • Optimized High Quality Lighting shader by about 7 percent.

      Optimizations:

      Refactored entire system to vastly improve overall performance, includes the following changes
      • Lights only render when on screen.
      • Lights now have a maximum render distance that can be set by the designer.
      • Lights now have the ability to automatically toggle down to a lower quality light when a certain distance away from camera, distance can be set by designer. (This makes each distant light probe about half of the regular cost)
      • Lights now properly occlude and only render when actually visible.

      Hoping to release this update sometime later this week/next weekend. Just needs a bit of testing then should be good to go!
      Last edited by evilmrfrank; 08-14-2018, 10:02 PM.

      Comment


        #4
        Interesting system! Are those probes analyzing the nearby lights to represent the same color at the given location? Or is the color fixed only?

        Another question just popped into my head... What about light bleeding? We use a lot of interior scenes with small rooms (some are dark and some are very bright).

        Comment


          #5
          The light actors work basically like unshadowed point lights, with the exception that they are much cheaper and don't come with some of the same limitations. Like point lights you can still adjust the color during gameplay using sequencer or matinee and move them/scale them etc however you need but they will not adjust automatically. Also like unshadowed point lights these will cause light bleeding still

          Comment


            #6
            So are they actually probes in the sense that they capture the ambient lighting into a cubemap of some sort and project that for actors inside the influence range or are they just lights?

            Comment


              #7
              They are just lights. I understand there might be some confusion with the wording I used, I'll be switching over the name of it to remove the word probe as they aren't actually probes, but just very cheap replacements for point lights.

              Comment


                #8
                Just submitted Update 1.2 to Epic. This is easily the largest update I've made to this pack so far and is a vast improvement to how a lot of the systems render/work. Here are the final Patch Notes for this update!

                Update 1.2
                • Fixed Low Quality Lighting mode to closer match High Quality lighting mode.
                • No longer a max of 64 light probes per world. Updated system automatically switches in and out new lights only include ones that are both within render distance and on screen to allow for a max of 64 near and 64 far lights on screen at any given time.
                • Added ability to toggle lights on and off in editor and during gameplay.
                • Set Light Probe Actor billboards to now scale properly in editor.
                • Decreased the default AO influence to 1, down from 2.
                • Set the default Light radius to 1000 (Down from 4000) to better match point lights.

                Optimizations:

                Refactored entire system to vastly improve overall performance, includes the following changes.
                • Lights only render when on screen.
                • Lights now have a maximum render distance that can be set by the designer.
                • Lights now have the ability to automatically toggle down to a lower quality light when a certain distance away from camera, distance can be set by designer. (This makes each distant light probe about half of the regular cost)
                • Lights now properly occlude and only render when actually visible.
                • Optimized High Quality Lighting shader by about 7 percent.
                • Optimized Low Quality Lighting shader by a small amount.

                This is a huge update with a lot of major changes being made so if anyone runs into any issues please let me know and I'll get them fixed asap!

                If you notice the lighting has changed at all since the last update it may be due to the defaults changing for both AO Influence, and the light radius. This will not effect you if you had adjusted those values at all but it was a necessary change in the long run. Changing defaults is not something I plan to make a habit of so it should be a one time thing!

                Comment


                  #9
                  Interesting.. Does it work in VR (both Android and PC?

                  Comment


                    #10
                    I have not yet tried this VR or android but I would assume as long as you are using the deferred renderer it should work. I do not have a way to test either of those myself atm so if you do end up testing it out let me know! It will work perfectly fine on both environments with fully dynamic, or fully static lighting.

                    Comment


                      #11
                      Submitting update 1.3 to add better support in editor and in game when working in multiple sublevels.

                      Update 1.3
                      • Fixed issue with ambient lights not being rendered when levels stream in
                      • Fixed an issue in editor when working with light probes within multiple sublevels causing cross reference issues.

                      Comment


                        #12
                        Looks very nice. Is it possible to create probes at run-time, for procedurally generated levels, for example?

                        Comment


                          #13
                          I have not tested using them with procedurally generated levels but the lights get added/removed dynamically so it should work fine.

                          Comment


                            #14
                            Originally posted by evilmrfrank View Post
                            I have not tested using them with procedurally generated levels but the lights get added/removed dynamically so it should work fine.
                            Hi I just bought this pack and I am getting severe bleeding through the walls which on normal lights will happen if you turn off cast shadow. When I use a regular light with shadows the room is pitch black so there are no light leaks. In the below scene you can see a room and the lightprobe outside in the corridor. Can you tell me how I can fix this or what I am doing wrong because obviously others must be using this pack for indoor locations and are not having issues.
                            Click image for larger version

Name:	lightBleed.PNG
Views:	467
Size:	423.2 KB
ID:	1579158

                            Comment


                              #15
                              This is expected behavior. The lighting system does not handle shadows and effectively works exactly like a cheaper version of an unshadowed pointlight.

                              Comment

                              Working...
                              X