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. Dismiss Notice

shadows don´t work anymore

Discussion in 'Android' started by Bastiuscha, Aug 28, 2014.

  1. Bastiuscha

    Bastiuscha

    Joined:
    Mar 1, 2014
    Posts:
    21
    Hey mates,

    i have a shadow problem in the android mode (iOS mode the same). I don´t have shadows...if i switch to Windows mode, the shadows are working. But the problem are not on all my computer´s! Only on my Windows 7 PC´s. But why? On my iMac and Windows XP notebook it´s work fine! This bug comes with the last versions of Unity. Earlyer it works fine. If i install the older Unity 4.3.4, my shadows work perfekt! What can i do? I searched so long for a solution.

    best regards
    Basti
     
  2. mbowen89

    mbowen89

    Joined:
    Jan 21, 2013
    Posts:
    639
    You mean in the editor windows, or after building on the device?
     
  3. Bastiuscha

    Bastiuscha

    Joined:
    Mar 1, 2014
    Posts:
    21
    In the editor AND the build file!
     
  4. Bastiuscha

    Bastiuscha

    Joined:
    Mar 1, 2014
    Posts:
    21
    Maybe important to know: the hardware isn´t the reason! On my Win7 notebook, the shadow don´t worked too. Then i tried to install Win XP on this (was a hard work, to become this to work on a i5 notbook ;] ) and after this, the shadows work perfect! In the editor AND in the builded apk file. But this was only for a test. I need Win7 ......
     
  5. mbowen89

    mbowen89

    Joined:
    Jan 21, 2013
    Posts:
    639
    What doesn't make sense to me is why it would affect the actual build itself... Sometimes if the editor isn't in the right mode, opengl or whatever, for Android I can't see shadows, but the build still works fine, so I'm at a loss.

    Even if you make a new simple project where it's just a cube with a shadow it does this? Are you trying to use different shaders or anything? What if you change platforms and build for webplayer etc, does it work then?
     
  6. Bastiuscha

    Bastiuscha

    Joined:
    Mar 1, 2014
    Posts:
    21
    Yes, this is what i told in the first post. If i change to Windows build, the shadow is working. If i create a new job, only with a groundplate, cube and directional light (with activated shadow of course) the shadow works in Windows mode (builded too), then i switch to android, the shadow is lost(builded too). And now, for a better information, i tested all plattforms! the result:

    work: windows, webplayer, windows store, windows phone8
    don´t work: android, black berry and iOS

    And no, i don´t use other shaders in my tests. This problem i have a longe time (again since V.4.3.4) And in this time i installed unity 15 times new (different versions) and created hundred of new test job´s. ;D

    Maybe if i create a job, something go wrong and destroy the shadow?! Here is a new project from me... test it.
    It´s allready in android mode, you should see directly a shadow.
    https://www.dropbox.com/s/ft7byae2v2jswbn/test.rar?dl=0
    Maybe it´s my fault! But why it´s work under Win XP then? Open GL sound´s not bad...it´s possible, that i need a external open GL driver for Win7, or stuff like this?!
     
  7. MinsukCha

    MinsukCha

    Joined:
    Jun 9, 2014
    Posts:
    13
    I have the same problem. it only works on Windows/Web platform. Not working on android/iphone platform. Quality settings are all the same. I remember that it worked on the previous Unity 4.5 version. Does anyone know about this? Is this a bug?
     
  8. Bastiuscha

    Bastiuscha

    Joined:
    Mar 1, 2014
    Posts:
    21
    I think so. :( Do you have Win7 or Win8? I think about, to change my system to Win8...maybe that help! Because, Win XP work too..
     
  9. MinsukCha

    MinsukCha

    Joined:
    Jun 9, 2014
    Posts:
    13
    That's weird. The OS I am using is the 64-bit Win7 Enterprise version. The Graphic card is a NVIDIA Geforce GTX 650. I guess this is the pretty standard system for game developing. If it varies on OS version, It should be fixed asap.
     
  10. Bastiuscha

    Bastiuscha

    Joined:
    Mar 1, 2014
    Posts:
    21
    Oy yeah! Maybe this is a 64/32 bit problem. :/ Now i have decide me to change my windows system to 8.1. If it´s really a 64 bit problem, this will don´t help. Hopefully this week i have time to change...i give you a report.
     
  11. MinsukCha

    MinsukCha

    Joined:
    Jun 9, 2014
    Posts:
    13
    I don't think you should reset your system to 32bit for this. I reported a bug to Unity. I hope it fixes soon. Let's wait and see.
     
  12. Bastiuscha

    Bastiuscha

    Joined:
    Mar 1, 2014
    Posts:
    21
    We will see....thank you for your bug report. Maybe i have to do the same? Because, that the unity guy´s know, that is a real problem. ;D
     
  13. Bastiuscha

    Bastiuscha

    Joined:
    Mar 1, 2014
    Posts:
    21
    Yeeeep, the same unter Win8.1! :( No Shadows.....only with Win XP this work in the last versions. It´s look realy like a 64bit problem. Please Unityguys fix that big problem! :/
     
  14. Bastiuscha

    Bastiuscha

    Joined:
    Mar 1, 2014
    Posts:
    21
    @Minuska

    I found a solution for our problem! I can´t change the problem himself, but i have a empty project, in there the shadows on mobile plattforms are working! In the time, Unity don´t fix this, it is good enough. The only one problem is, that your old projects don´t have a benefit. ;)

    So if you wan´t, i can up this project for you on my dropbox for you.
     
  15. MinsukCha

    MinsukCha

    Joined:
    Jun 9, 2014
    Posts:
    13
    That's ok. It should work in previous projects too. If you are good enough with that, then that's fine, but for me it needs to be worked on every project I've made.
     
  16. roslinpl

    roslinpl

    Joined:
    Aug 30, 2013
    Posts:
    4
    Hey guys --- If anyone have this problem the answer is very simple:

    EDIT ---> GRAPHIC EMULATION -->> choose: NO EMULATION.

    Solved :p

    http://docs.unity3d.com/412/Documentation/Manual/GraphicsEmulation.html

    OpenGL ES 1.xOpenGL ES 1.1: Four texture combiner stages. Not supported: vertex or fragment programs, shadows and pretty much all other graphics features ;)


    Kind regards.
     
  17. Bastiuscha

    Bastiuscha

    Joined:
    Mar 1, 2014
    Posts:
    21
    YEAAH! You made my day! Much thanks, work perfectly! I was sure, that i tested this allready...apparently not ;D My old project work´s with emulation! But that´s no matter for me. Much thanks again!!
     
  18. Sir-Spunky

    Sir-Spunky

    Joined:
    Apr 7, 2013
    Posts:
    132
    Thanks for the solution. Still seems like a bug.

    What happened to me was this:
    1) Constructed the level in Android mode, realtime shadows were working.
    2) Built the apk, shadows still working both in editor and when running on mobile.
    3) Went to sleep.
    4) Woke up and opened the project again. Realtime shadows not working.
    5) Changed Graphics Emulation setting from OepnGL ES 2.0 to No Emulation. Shadows work again in editor.

    Unfortunately, I don't know what the emulation setting was before I went to sleep, but why would emulation be automatically turned on after Unity restart, especially if the emulation is not working correct?
     
  19. elich11

    elich11

    Joined:
    Sep 25, 2012
    Posts:
    5
    It happened to me too.
    I managed to solve it by switching a from Intel internal graphic card to Nvidia.
    screenshot.png