Unity Community


Results 1 to 7 of 7

  1. Location
    Amsterdam
    Posts
    21

    Lightmapping + normal maps not working.

    Hey,

    I'm having some problems with lightmapping in combination with normal maps.

    I have a scene where I have a "terrain" plane with a normal map on it and a few buildings with normal maps. I'm using the Mobile/Bumped Specular shader for all this. I have marked all these objects as static and I have a directional light marked as static. The project has been set to Android by using "switch project", but I also tried extensively on PC/Mac.

    If I bake lightmaps the bake does get executed and completes without errors, but the generated lightmaps are not used. I tried setting all materials to a diffuse material and then the lightmaps did work. So, there seems to be a problem with using lightmaps in combination with normal maps; if you use normal maps, the lightmaps will not be used at all.

    I have the graphics level (both in Player Settings and Editor emulation) set to OpenGL 2.0
    Besides that, I tried to use both Single, Dual and Directional Lightmaps and they're all not working when I have a material with normal maps in my scene. When I remove all materials with normal maps (mobile/bumped specular shader) it works.

    I tried this with both Android and PC/Mac to see if it was platform specific, but had it on both platforms.

    This is very strange, since dual lightmaps and directional lightmaps should work with normal maps, in fact they are made for this! Can anyone explain what's happening here?

    I'm using Unity 3.5 Pro Trial, project set to Android (also tried PC/Mac), testing this all in the editor (not on device yet)

    Thanks!

    (also posted this in Android subforum, but reposted here because likely not Android specific since it also happens on PC/Mac for me)


  2. Location
    Amsterdam
    Posts
    21
    Slight bump, since I almost drifted to the third page without answer


  3. Posts
    1,947
    Maybe they do work, but you don`t really see it? That`s dependand of your light setup.

    When in doubt simply file a bug report. That`s a good idea anyways. Normalmaps should work much better in Unity.
    Free Game Graphics, Freeware Games http://www.reinerstilesets.de
    Die deutsche 3D Community: http://www.3d-ring.de


  4. Location
    Amsterdam
    Posts
    21
    If I use diffuse materials and a single lightmap, I can see that the lightmaps are working because if I toggle the lights on/off the scene lighting doesn't change. The lighting only changes when I toggle Use Lightmaps on/off in the scene view. When I use lightmaps with normal maps it's reversed; toggling the lights does change the scene lighting and toggling Use Lightmaps changes nothing. This means the lightmaps are not used then, right?



  5. Location
    England
    Posts
    257
    Have you tried it with a regular bump mapped shader, rather than a mobile one? I've never used the mobile stuff and it's always worked for me.


  6. Location
    Amsterdam
    Posts
    21
    Yes, as in the bug report it seems normal maps + lightmaps do work when you're using a normal shader, but not when you're using a mobile shader. This is strange, since lightmaps are particularly useful on mobile platforms!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •