Search Unity

Unity 5.3.2 Load Scene from Assetbundle with LightingData.asset

Discussion in 'Editor & General Support' started by hacaro76, Feb 17, 2016.

  1. hacaro76

    hacaro76

    Joined:
    Oct 14, 2015
    Posts:
    25
    Dear All, as per subject we're tryng to make a porting of our Unity 4 Project into new Unity 5, using all benefits of it. At the moment we're encountered some issues. we hope that the community can help us to solve these issues.

    We try first to explain in detail how our unity 4 project works.
    The Project, is a 3D configurator driven by a database.

    Essentially we have :
    1 main menu scene (for choose model to configure)
    2 bridge scene (to load the GUI scene)

    3 GUI Scene( It contains the GUI and the model chosen, will be istantiate at runtime from an assenbundle) . Each Model is packed in an assetbundle. and all the lightmaps of this, are packed into another assetbundle.

    The lifecicle of the app is :

    1 Starts the Main scene, after the user click on a model, we load the "Bridge Scene".
    2 The Bridge Scene Load a GUI Scene behind.
    3 The GUI Scene Load and instantiate the 2 assetbunldes (Model + Lightmap)
    Here, is how it works now.

    With Unity 5, we want to pack the intere scene with Backed Light, Skybox, Reflection Probe etc etc into an assetbundle, and then load it as a default scene with gui.

    Actual Workflow :

    We have a Scene with (Model, Camera, Baked Lightmaps , LightingData.asset, Skybox, backed Reflection Probe).

    We have used the new AssetBundle Manager and we've followed the tutorial at this page .

    https://unity3d.com/learn/tutorials/topics/scripting/assetbundles-and-assetbundle-manager

    We have packed the scene in an assetbundle, and then we have loaded it and setted it as default scene. But ......


    The Big Problems are :


    1 - all lightmaps exr are right into the lighting array but the lightignData.asset variable are setted to None.

    2 - The Skybox, is currently setted onto his variable into Lighting Panel But it is not visible.

    3 - The model has all the lightmaps applied on it but it has no reflections by the Backed Probe.

    So after a lot of words the bigger questions are :

    1 - Why a scene packed does not have the lightingData.asset properly setted but the Lightmaps yes ?

    2 - Why the Skybox seems loaded but it is not visible ?

    3 - Whiy all Lightmaps are applied onto the model but Reflections of probe no ?

    and the Last but no least

    the previous 2 questions are dependant from the first one point (LightingData.asset) ?
    We Really Hope that someone can help us to solve this mistery because we're stuck.
     
  2. pahe

    pahe

    Joined:
    May 10, 2011
    Posts:
    543
    Some of your lightmap problems may be "work arounded" here.
     
  3. hacaro76

    hacaro76

    Joined:
    Oct 14, 2015
    Posts:
    25
    Thanks pahe , we try to follow this post to found a solution ;-)
     
  4. Deleted User

    Deleted User

    Guest

    Hi hacaro76, any updates on this one?
     
  5. Kkrystal

    Kkrystal

    Joined:
    Jul 20, 2017
    Posts:
    1
    Hello,how did this problem end?I'm looking for a solution to this problem.I need your help .Thanks very much.