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. Let us know your feedback about the Global Illumination changes in the 2023.2 beta.
    Dismiss Notice
  3. Dismiss Notice

Terrain Hangs Editor B18

Discussion in 'Unity 5 Pre-order Beta' started by AdamGoodrich, Dec 26, 2014.

  1. AdamGoodrich

    AdamGoodrich

    Joined:
    Feb 12, 2013
    Posts:
    3,777
    Hi,

    Can anyone replicate this?

    I create new project - add a terrain - add some textures - with diffuse and normals - add a material and set it to terrain specular.

    Play - all good - stop - hangs Unity :(

    After some playing around i was able to narrow it to - Unselect static on the terrain - you can play and pause as you like. Select static - BAM same behaviour.

    Further experimentation without custom material and same thing - you make it Static and when you stop play it hangs editor.

    Running on Win 8.1 Pro, x64, with 64 bit editor.

    Cheers,
    Adam.
     
  2. p87

    p87

    Joined:
    Jun 6, 2013
    Posts:
    318
    When you mark the terrain as static, it starts baking global illumination / lightmap on it. It's currently more or less broke with terrain's, especially large ones.
     
  3. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    880
    If you actually want lightmapping on your terrain, then go to the new "Lighting" tab and change your realtime resolution to something tiny like 0.1 and change your baked resolution to something like "2". You might also want to uncheck "continuous" so you can bake manually. Then you might be able to bake your lightmaps, or you might get stuck at that stage until a later beta. (All of my terrains currently work but for some others they don't - see elsewhere on this forum - lots of people can't bake with Terrains in their scenes apparently).

    If you don't want lightmapping, then simply unselect "lightmap static" in the static dropdown in the inspector for your terrain.

    Either one of these should get you going again.
     
  4. AdamGoodrich

    AdamGoodrich

    Joined:
    Feb 12, 2013
    Posts:
    3,777
    Thanks :)
     
  5. zeroyao

    zeroyao

    Unity Technologies

    Joined:
    Mar 28, 2013
    Posts:
    169
    Yes it's a bug and the fix will be available in the next 1 or 2 beta releases.
     
  6. mdespault

    mdespault

    Joined:
    Jan 8, 2015
    Posts:
    12
    Thanks for the info, this resolved my issue as well :)
     
  7. elbows

    elbows

    Joined:
    Nov 28, 2009
    Posts:
    2,502
    I dont think this is fixed in beta 19, so assume it will be sorted in beta 20 or so.
     
  8. elbows

    elbows

    Joined:
    Nov 28, 2009
    Posts:
    2,502
    Problem seems to be fixed in beta 20, at least for me :)