Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Lighting Box 2 Next-Gen Lighting Solution

Discussion in 'Assets and Asset Store' started by UnityLighting, Jun 9, 2017.

?

Unity Version

  1. 5.4

    2.4%
  2. 5.5

    1.3%
  3. 5.6

    16.5%
  4. 2017

    79.8%
  1. blitzvb

    blitzvb

    Joined:
    Mar 20, 2015
    Posts:
    284
    indeed. awesome!
     
  2. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
    Made by Lighting Box 2.7.1 and Tree Creator Trees (with maximums performance) :

    photo_2018-01-21_02-47-58.jpg photo_2018-01-21_02-48-09.jpg photo_2018-01-21_02-48-10.jpg photo_2018-01-21_02-48-12.jpg photo_2018-01-21_02-48-15.jpg
    photo_2018-01-21_02-47-58.jpg
    photo_2018-01-21_02-48-09.jpg
     
    blitzvb likes this.
  3. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
  4. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
  5. ChillyMcChill

    ChillyMcChill

    Joined:
    Nov 17, 2016
    Posts:
    57
    Hiya

    Is there any way to set up the effects on multiple cameras again?

    I have scopes and view models with cameras that are independent of my main first person camera.

    Thanks :)
     
  6. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
    Assign Each camera and press Refresh key
    Then assign new camera and press refresh button
     
  7. Migueljb

    Migueljb

    Joined:
    Feb 27, 2008
    Posts:
    562
    blitzvb likes this.
  8. ChillyMcChill

    ChillyMcChill

    Joined:
    Nov 17, 2016
    Posts:
    57
    Thanks for the reply :)

    That does not seem to keep the changes

    When I swap to my third person (secondary) camera I get no effects still
     
  9. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
    1.Ambient Light color (gray color)
    2. GI
    3. Scanned textures and assets (models,pbr)
    4. work on Gamma or Saturation and contrast values
    5. 4K resolution



    Models and textures are most important part
     
    buttmatrix and ChillyMcChill like this.
  10. clagrens

    clagrens

    Joined:
    May 19, 2017
    Posts:
    96
    terrain deform demo doesn't work in 2.7
     
  11. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
    Watch the video in youtube channel
     
  12. mrPRAZ

    mrPRAZ

    Joined:
    Oct 10, 2013
    Posts:
    23
    Any tutorial for uFPS (or any double camera) integration? Saw your Battlefield UFPS video from a while back, looking for something like that.
     
  13. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
    No
    I don't have any experience on UFPS
    Search about how to use image effects with UFPS on its own forums
     
  14. ChillyMcChill

    ChillyMcChill

    Joined:
    Nov 17, 2016
    Posts:
    57
    GL

    Asked dev a few times about that and it does not seem to work anymore

    Your best bet is getting an older version of LB that has multiple cam support or just learn to use Unity's PP stack effectively enough to suit your needs
     
  15. MrIconic

    MrIconic

    Joined:
    Apr 5, 2013
    Posts:
    239
    In the Lighting Box 2 settings I have the Sun "Enabled" option disabled.

    Whenever a GameObject is created or destroyed Lighting Box will change the"Sun Light" object to the specified color. How is that possible if it is not enabled. Furthermore, if I go into the Lighting Profile and toggle "Sun State" and/or "Sun_Enabled" it will still modify the "Sun Light" object.

    This causes a flickering effect as Lighting Box sets it's color- then other present assets (in this case Unistorm) will set the "Sun Light" object to something else.
     
  16. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
    Hi

    It seems is a bug

    Create a new Directional Light into your Scene and disable it
    Drag this new dir light into Sun slot from Lighting Box
     
  17. MrIconic

    MrIconic

    Joined:
    Apr 5, 2013
    Posts:
    239
    Seems to work with that or none. Not sure why, but thanks..
     
  18. bence02

    bence02

    Joined:
    Nov 16, 2017
    Posts:
    9
    Hi!

    My problem is the same ... have you got a solution?
     
  19. SirTwistedStorm

    SirTwistedStorm

    Joined:
    Sep 20, 2015
    Posts:
    192
  20. GlitchInTheMatrix

    GlitchInTheMatrix

    Joined:
    Apr 12, 2010
    Posts:
    285
    Hi, I installed it in a clean Unity Project (2017.1.2.p4) and get the next errors that don't let me use it.

    Assets/LightingBox2/Scripts/LB_LightingBoxHelper.cs(813,77): error CS0117: `UnityEditor.LightmapEditorSettings.Lightmapper' does not contain a definition for `Enlighten'

    Assets/LightingBox2/Scripts/LB_LightingBoxHelper.cs(818,77): error CS0117: `UnityEditor.LightmapEditorSettings.Lightmapper' does not contain a definition for `ProgressiveCPU'
     
  21. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
    Hi

    Change Enlighten to Radiosity and ProgressiveCPU with PathTracer in scripts

    Because the current version updated to 2017.3


    Assign each camera separately and press refresh key
     
    Last edited: Feb 10, 2018
  22. Slego

    Slego

    Joined:
    Feb 12, 2018
    Posts:
    1
    Hi Ali. I have a problem wanting to modify the terrain with the lightning box terrain, I can not modify the displacement, the tessellation, etc. Also when I try to make a material it turns pink and I get the following error, the layers of the textures are disabled. I want to know if there is any solution. From already thank you very much.
     
  23. warwolf2015

    warwolf2015

    Joined:
    Jun 7, 2014
    Posts:
    26
    Is lighting box terrain still work?
    i see it have LB_lighting box terrain and LB_terrain 2
    but i try both it nothing happening.
     
  24. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
    Unity 2017.1+ had crash issue on tessellation shaders
    I don't know it's fixed or not

     
  25. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
    This is old version
    Use latest one :
    https://forum.unity.com/threads/mad...lighting-solution.475644/page-45#post-3393381
     
  26. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
    Made by customers:

    ScreenShotScreenShot101.jpg ScreenShotScreenShot105.jpg ScreenShotScreenShot106.jpg ScreenShotScreenShot107.jpg ScreenShotScreenShot119.jpg
    ScreenShotScreenShot101.jpg
    ScreenShotScreenShot105.jpg
     
    Quique-Martinez and Shodan0101 like this.
  27. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
  28. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    4,200
    May I ask where the wooden building models are from? They look great. Also the fence.
     
  29. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
    This is from unity own Lighting sample models from asset store.


     
    Rowlan likes this.
  30. AndyNeoman

    AndyNeoman

    Joined:
    Sep 28, 2014
    Posts:
    938
    Hi there. I've just bought this asset but i'm getting errors on import. using 2017.3

    I cannot follow doc instructions because there is no menu option for lighting box (probably because of the errors). No option to update. etc...

    Assets/Standard Assets/Effects/CinematicEffects(BETA)/Bloom/Bloom.cs(101,34): error CS0103: The name `ImageEffectHelper' does not exist in the current context

    Assets/Standard Assets/Effects/CinematicEffects(BETA)/TonemappingColorGrading/TonemappingColorGrading.cs(95,14): error CS0246: The type or namespace name `Min' could not be found. Are you missing an assembly reference?
     
    Last edited: Feb 27, 2018
  31. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
    Re open the project
     
  32. AndyNeoman

    AndyNeoman

    Joined:
    Sep 28, 2014
    Posts:
    938
    So after rolling back the project. waiting for a response and now redownloading asset, closing unity and reloading the same errors are still present. Have you got a more detailed explanation or help to fix these errors?

    Assets/Standard Assets/Effects/CinematicEffects(BETA)/TonemappingColorGrading/TonemappingColorGrading.cs(95,14): error CS0246: The type or namespace name `Min' could not be found. Are you missing an assembly reference?

    Assets/Standard Assets/Effects/CinematicEffects(BETA)/TonemappingColorGrading/TonemappingColorGrading.cs(554,34): error CS0103: The name `ImageEffectHelper' does not exist in the current context


    EDIT:- For now I have removed offending bloom and tonemapping folders. I presume the folders are not in the correct order as I know unity is a bit funny about what directories certain things are in and what order they are loaded.

    EDIT:- I found the problem. For others that may encounter it if you have older effects shaders like cinemaeffects(beta) etc.. delete them because they cause conflicts with LightingBox.

    Nice little asset now I've got to it. Gives some great pointers and learning tools to develop your lighting skills.
     
    Last edited: Feb 27, 2018
  33. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
    Made using Lighting Box 2 by customers:

     
    petersx, blitzvb, buttmatrix and 2 others like this.
  34. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
    Palm with Tree Creator Unity2017:
    photo_2018-03-03_23-45-26.jpg photo_2018-03-03_23-45-31.jpg photo_2018-03-03_23-45-32.jpg photo_2018-03-03_23-45-40.jpg photo_2018-03-03_23-45-45.jpg
    photo_2018-03-03_23-45-45.jpg
    photo_2018-03-03_23-45-32.jpg
     
    red2blue likes this.
  35. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
  36. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
    Made by customers: photo_2018-03-04_15-25-21.jpg photo_2018-03-04_15-25-56.jpg photo_2018-03-04_15-26-01.jpg photo_2018-03-04_15-26-04.jpg photo_2018-03-04_15-26-06.jpg photo_2018-03-04_15-25-21.jpg photo_2018-03-04_15-25-56.jpg
     
  37. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
    Made by tree creator Unity2017.3:
    photo_2018-03-05_00-03-38 - Copy.jpg photo_2018-03-05_00-03-42 - Copy.jpg photo_2018-03-05_00-03-44 - Copy.jpg photo_2018-03-05_00-04-57 - Copy.jpg photo_2018-03-05_00-05-08 - Copy.jpg
    photo_2018-03-05_00-04-57 - Copy.jpg
    photo_2018-03-05_00-05-08 - Copy.jpg
     
    Last edited: Mar 5, 2018
  38. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
  39. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
  40. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
  41. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,113
    @aliyeredon2, have u start experimenting to make it support Unity 2018.1 that has Scriptable Render Pipeline (High Definition Render Pipeline and Lightweight Pipeline) with the shader graph?
     
  42. CatchierSnail

    CatchierSnail

    Joined:
    Apr 17, 2013
    Posts:
    4
    I was truly about to switch to ue4 till i got this asset. My new grass looks amazing. Done with Lightingbox in 2018 beta version.
    bit of floating grass in the video, but that's only from how i made the test prefab, cleaned up now. Wish i had a better computer. I'd up the res and pump the wind more.
     
    red2blue, petersx and UnityLighting like this.
  43. AndyNeoman

    AndyNeoman

    Joined:
    Sep 28, 2014
    Posts:
    938
    Is there any plans to support other pipelines like Prism or the Aura volumetric light asset?

    Also is there any demos on setting up the layers because I get warnings if it's set to default or everything but if it's not then the effects do not look anywhere near as good.
     
  44. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
    Post Processing Stack is good enough for next gen lighting.
    Color grading is most important part of the post processing. Other important factors has been done inside lighting box using light and fog settings. So prism is not useful for me

    Layers is useful in some case (UI etc) .It's depend on your taste

    Currently i'm busy in my life. SO i can't do any more research

    New pipe line will be supported by post processing stack by it's author
     
    AndyNeoman likes this.
  45. AndyNeoman

    AndyNeoman

    Joined:
    Sep 28, 2014
    Posts:
    938
    It does look good but the other options can be quicker and when you are trying to squeeze every fps out to lower rec specs I think I can only use lighting box for ideas but not for actual game build.

    I'm still not sure what you mean by the layers, the options just says what layers not to add. Looking at the setup is a bit confusing too, It appears some features are used more than once and there is quite a hit on FPS by having lighbox enabled.

    Any effort towards reducing that would be a big help. :).
     
  46. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
    Optimization is simple an long task:
    1. You must optimize every model and geometry first. Optimizing poly count is most important part of the optimization
    2. You must use culling features as well: Cameras clipping, view distance, tree and detail distance
    3. You must bake final result into lightmaps to get 70-100 fps instead of 50-60 fps on realtime mode .Enlighten is fast enough for baking in very-low preset (set lightmap size to 4K for higher terrain resolution )
    4. Shadows are very important. Reduce shadows quality in quality settings
    5.Use unity Tree Creator instead of SpeedTree for tree creation (Much more fps when using unity terrain settings specially billboard system)

    and finally your can optimize lighting box settings:
    1. Disable SSR
    2. Use bloom and sun shaft instead of volumetric lighting
    3. Other effects are very performance friendly. You can use them without problem
    Untitled.jpg
     
    buttmatrix and AndyNeoman like this.
  47. AndyNeoman

    AndyNeoman

    Joined:
    Sep 28, 2014
    Posts:
    938
    Thanks, some really great tips.

    I need a long draw distance for my weather system but i will look at a two camera setup.

    Baking is definitely something I need to spend more time on because I never seem too get good results. Always get a strange blue glow on the outside of objects.
     
    UnityLighting likes this.
  48. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
  49. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
  50. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,866
    Last edited: Mar 7, 2018
    blitzvb and Rowlan like this.