Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Setting baking mode on light to 'mixed', yet still no realtime shadows?

Discussion in 'Global Illumination' started by Meltdown, May 18, 2015.

  1. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,797
    I'm really battling with lightmapping in Unity 5. Nothing seems to be working like it should.

    One of the main issues I'm having now is I bake my scene, setting the light baking mode to 'mixed'.

    My understanding of 'mixed' is static objects will be baked into lightmaps, while the light will still render realtime shadows on dynamic objects (this is how it worked in Unity 4).

    Yet after baking, I'm not really seeing any shadows on anything, and my non-static moving objects no longer cast any shadows whatsoever.

    I have set the mesh option to 'Generate lightmap UVs', and I'm selecting the light and renderers I want baked in my scene, so I'm not sure what I'm missing? All I end up with is a scene that's slightly darker, and a much lower framerate on my Android device.

    Thanks
     
  2. Findus

    Findus

    Joined:
    Jun 23, 2012
    Posts:
    111
    Do you have lightprobes in your scene? It seems like lightprobes are falsly used by realtime objects as well.
    (Which would be ok for some GI illusion, but not if they turn out shadows as well, so I'd consider that a bug. )
    If I manually turn of lightprobes for those realtime meshes, they receive shadows.
    If that's not it, maybe you can upload a stripped down example project.
     
  3. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,797
    I don't have any light probes in my scene.