Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Baked prefabs with Directional-Specular Become much darker after Instantiating

Discussion in 'Global Illumination' started by ShuraK, Aug 7, 2015.

  1. ShuraK

    ShuraK

    Joined:
    Jan 15, 2015
    Posts:
    23
    After instantiating baked prefabs, the model becomes much darker.

    I have read the post on the top (http://forum.unity3d.com/threads/problems-with-instantiating-baked-prefabs.324514/#post-2240243). And made my demo with the example project provided by Joachim_Ante.

    So the demo attached below works in the same flow as his, while the main difference is I use Direcitonal-Specular Lightmap Mode. Both far map and near map are set correctly

    Steps to review the bug ( you may need unity 5.2B5) :

    1. open the scene called: original scene , take a look at the cubes and sphere.

    2. open the scene called: PrefabInstantiateScene, and hit play.

    3. take a look at the gameobjects, they are darker than in original scene



     

    Attached Files:

    Last edited: Aug 10, 2015
  2. ShuraK

    ShuraK

    Joined:
    Jan 15, 2015
    Posts:
    23
  3. ShuraK

    ShuraK

    Joined:
    Jan 15, 2015
    Posts:
    23
    I found that if I bake the scene without Precomputed RealTime GI , the prefab will be same looking after instantiating.

    So I guess this problem is caused by precomputed RealTime GI is not saved and reassigned to the new scene.

    Is there any method save and reassign precomputed realtime gi by script ?