Search Unity

  1. 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. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
    Simple way:
    Code (CSharp):
    1. RenderSettings.fogDensity = fogDensity / 1000;
    Hard way:
    Code (CSharp):
    1. public float FogDensity = 0.003f
    2.         Update_GlobalFog(mainCamera, true, CustomFog.Global, 0, 0, 0, Color.white, FogDensity);
    3.        
     
    DJ_Design likes this.
  2. DJ_Design

    DJ_Design

    Joined:
    Mar 14, 2013
    Posts:
    123
    Thanks! Simple fix appreciate the response.
    Have been using LB2 in-editor for a while now, always my go-to choice for lighting in unity. Fantastic asset!
     
    UnityLighting likes this.
  3. UnityLighting

    UnityLighting

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

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
  5. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
  6. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
    Import Guide
    --------------------------------------------------------------------------------------------

    1. Open package manager from "Window->Package Manager" menu

    2. Go to "My Assets" from top left section of the package manager:
    10.jpg

    3.Search and find Lighting Box 2 from top right section. Download and import it:
    31.jpg
    4. Go to "Unity Registry" from top left section and Install "Post Processing":
    2030.jpg


    Upgrade Guide
    --------------------------------------------------------------------------------------------
    Note: If you already downloaded or imported Lighting Box 2 into your existing project:

    1.You must first remove Lighting Box 2 folder from your project

    2. Before downloading the new update, you must delete older update from asset store temp folder located at (windows):
    "C:\Users\[Your User Name]\AppData\Roaming\Unity\Asset Store-5.x\ALIyerEdon\Editor ExtensionsSystem"

    3. If you want to download lighting box 2 compatible for newer unity editors (for example from Unity 2019 to 2020), repeat step 2 (delete old downloaded file) and download again from Unity 2020 package manager
     
  7. Ghost_Interactive

    Ghost_Interactive

    Joined:
    Jul 8, 2015
    Posts:
    54
    can some one help me with this. why the skybox looks bad in android.
     
  8. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
    Select the skybox textures
    From inspector use None as compression:
    Untitled.jpg
     
  9. JohnMick101

    JohnMick101

    Joined:
    Jun 21, 2021
    Posts:
    1
    lighting box error.png Hello When i imported the asset and post processing after that i am still getting these error? and i am using 2019.4.25
     
  10. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
  11. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
    Quast and salex1 like this.
  12. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
  13. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
  14. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
  15. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
  16. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
  17. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
  18. UnityLighting

    UnityLighting

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



    Now you can watch the videos for other pipelines:

     
  19. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
    Last edited: Sep 30, 2021
  20. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
  21. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
  22. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
  23. RetroVertigo2019

    RetroVertigo2019

    Joined:
    Dec 29, 2020
    Posts:
    30
    Is this the right place to post questions on this asset? I am trying to place the camera asset at runtime, and I am not sure how to go about doing this.
    I instantiate my camera and it carries over across multiple scenes, and I want to have this input when the game starts after the camera is created. Any way to do this?
     
  24. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
    Lighting Box 2 works without problems with instantiated cameras
    You have LB_Lighting_Helper game object in the scene that applies the settings of each scene after the game start
     
  25. AGregori

    AGregori

    Joined:
    Dec 11, 2014
    Posts:
    526
    OK it's 50% off, but it hasn't been updated for 7 months. Will it get an update?
     
  26. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
    No new features has been added to the Unity in these 7 months:)

    I think this is a good level of the graphics for current gen games:



     
    Last edited: Dec 13, 2021
    FM-Productions likes this.
  27. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
    Everything is possible using Lighting Box 2
    Interior , Exterior , Games , Realtime , Baked ...
    65.jpg
    75.jpg
    photo_2017-09-15_07-38-54.jpg
    37.jpg
    41.jpg
     
    AGregori likes this.
  28. RetroVertigo2019

    RetroVertigo2019

    Joined:
    Dec 29, 2020
    Posts:
    30
    So, everytime I load into my scene with my instantiated camera, my lighting box helper has no camera attached. How do I get it to work with an instantiated camera? Also, my lighting settings are not seeming to save or be updated in the scene. Do you have any further documentation or FAQs on this system anywhere?
     
  29. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
    Try to instantiate your camera in the Awake() function
     
  30. RetroVertigo2019

    RetroVertigo2019

    Joined:
    Dec 29, 2020
    Posts:
    30
    I tried to change it to Awake instead of Start, and it is still blank. I have a separate scene for my camera that is carried over to the other scenes. Sorta like a management Scene, or something. Is there anyway I can feed the camera into this for the lighting system manually at runtime? Once it is loaded, it will be the same camera through out the game, so I am assuming I only need to load it once, and then have the different profiles per scene.
    Also, I am getting weird errors when using timeline, like the lighting values are changing when a timeline is started.
     
  31. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
    I will check your question tomorrow :)
     
  32. RetroVertigo2019

    RetroVertigo2019

    Joined:
    Dec 29, 2020
    Posts:
    30
    Any update? Want me to reach out via email?
     
  33. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
    I tested it and it works well...
    Don't forget to close the lighting box 2 window when playing the game

    Code (CSharp):
    1. using System.Collections;
    2. using System.Collections.Generic;
    3. using UnityEngine;
    4.  
    5. public class CamTest : MonoBehaviour
    6. {
    7.  
    8.     public GameObject cam;
    9.  
    10.     void Awake()    {
    11.         Instantiate(cam);
    12.     }
    13.  
    14.     // Update is called once per frame
    15.     void Update()
    16.     {
    17.         if (Input.GetKeyDown(KeyCode.F1))
    18.             UnityEngine.SceneManagement.SceneManager.LoadScene("1");
    19.         if (Input.GetKeyDown(KeyCode.F2))
    20.             UnityEngine.SceneManagement.SceneManager.LoadScene("2");
    21.     }
    22. }
     
  34. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
  35. UnityLighting

    UnityLighting

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

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
    UE4.27 vs Unity 2020:
    Achieved by Lighting Box 2
    UE4 (36 fps epic quality, 17 fps cinematic):
    UE4Game 2022-01-09 15-19-55-98.jpg

    Unity(95 fps maxed out stochastic ssr , 170 fps unity ssr):
    Unity Archviz 3 2022-01-09 18-34-17-40.jpg
    Unity Archviz 3 2022-01-09 18-34-50-93.jpg
    Unity Archviz 3 2022-01-09 18-35-08-67.jpg
    Unity Archviz 3 2022-01-09 18-35-37-68.jpg

     
    Last edited: Jan 9, 2022
  37. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
  38. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
    New update for new mobile devices (low-end)will be available soon (screen shots from Redmi 9A):
    photo_2022-02-05_17-38-59.jpg
    photo_2022-02-05_17-39-05.jpg
    photo_2022-02-05_17-39-07.jpg
    photo_2022-02-05_17-39-10.jpg
    photo_2022-02-05_17-39-12.jpg
     
    sivabalan12 likes this.
  39. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
    Nextgen Mobile graphics in the new update for low-end devices(ill be available soon):
    photo_2022-02-07_01-09-43.jpg photo_2022-02-07_01-09-56.jpg
    photo_2022-02-07_01-10-03.jpg
    photo_2022-02-07_01-10-06.jpg
     
    sivabalan12 likes this.
  40. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
  41. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
    Lighting Box 2 + Unity 2022 beta3
    1.jpg
    2.jpg
    3.jpg
    4.jpg
    5.jpg
     
    sivabalan12 likes this.
  42. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
  43. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
  44. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
  45. RadioactiveBullfrog

    RadioactiveBullfrog

    Joined:
    Jul 8, 2017
    Posts:
    55
    I am wondering why I am getting this error upon installation of this asset?

    Assets\LightingBox2\Scripts\PostEffects\DepthOfField\DepthOfField.cs(306,17): error CS0246: The type or namespace name 'RenderTextureUtility' could not be found (are you missing a using directive or an assembly reference?)
     
  46. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
    If you already have any unity's post effects, first remove them, then import lighting box 2 again
     
  47. opticglass

    opticglass

    Joined:
    Dec 30, 2020
    Posts:
    5
    upload_2022-5-28_14-52-27.png

    How do I turn the Fog/Sky/HD volume? It gets added automatically.
    Below is the image that I want how the to look like with that volume turned off.

    upload_2022-5-28_14-54-30.png
     
  48. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,832
    Close the lighting box window
     
  49. Gabo_campitelli

    Gabo_campitelli

    Joined:
    Oct 17, 2012
    Posts:
    424
    Hello, I'm trying to instantiate a new camera wich is part of it own system and this camera is the main camera once instantiated. I've added a public class to the LB_helper to change the variable mainCamera and then call the same functions that the helper calls on start. however Lighbox rendering get's stuck with the previous camera used that is now disabled. Also i try seting the tags so there's only one "MainCamera" tag and still it's not updated.
    To clarify i'm disabling an FPS/menu camra and enabling a vehicle system camera.
    What i am missing?

    EDIT: I think it's working now, i just realized there was no post effect layer on the camera.
    But still, is that the correct way? Thanks
     
    Last edited: Mar 21, 2023
  50. stigmamax

    stigmamax

    Joined:
    Jun 30, 2014
    Posts:
    292
    Hello, I have just purchased the Lighting Box Next Gen asset but I cannot use my favorite skybox. I have the error:
    Material 'Cold Sunset' with Shader 'Mobile/Skybox' doesn't have a color property '_Tint'

    Unity 2022.3 built-in
     
    Last edited: Sep 13, 2023