- Home /
Is there an Android device that realtime shadows work on?
In my experiments with the Unity 4 Pro trial (which i'm fairly sure includes Android Pro 4) i've been unable to use shadows cast with a directional light & forward rendering...
I've read the manual here which states that if you have a Tegra-based Android device then its not going to work....
So which devices Do work? I've tried on a Nexus 4, Nexus 7 and a Nexus 10 - none of them display shadows, where as in the editor they work fine. I thought all this was supposed to 'just work' ;-)
Just to make sure before we test any other theories... In your project's quality settings, is android set to something that supports shadows for when you build?
Good point Narv - i've reviewed the quality settings and that's where the problem is :-) #eggOn$$anonymous$$yFace
Answer by hholland · Jul 18, 2013 at 02:01 PM
To answer my own question: There are many Android devices that can use realtime shadows! - but if you have your quality settings correctly configured :-P
(Narv's comment made me take a closer look at how the quality settings are set - embarrassingly, mine were set to something that didn't support shadows, despite my best intentions... )
Here's how to select the right settings:
1) Decide which of the preset Quality Levels suits what you're trying to do by clicking through the list 'Fastest, Fast, Simple, Good.. etc' and looking through the details in the panel below..
2) Once you've decided, click the black 'default' triangle underneath the platform you're targeting - so in this case the 4th triangle along - and select which Level you would like to use...
3) Done.
Remember - on Android, you must be using Unity 4 Pro + Android Pro, this doesn't work with the free version of Unity... Also devices with Tegra GPUs (e.g. Nexus 7) can't render Unity's realtime shadows
Now, as Embarrassing as that is that i've made this mistake, its worth commenting commenting that this UI whole widget is incredibly confusing and difficult to use. I've done a quick study of the UI designers in my studio: no-one could figure it out at first glance. So i guess that's a relief for me, at least perhaps i'm not as stupid as I initially thought ;-)
Posting an answer for your own question is fine, but you should mark it as answered :P
I had a problem making real time shadows work on Android and found this page. The problem was indeed the "quality" matrix. It used the "fastest" settings for Android, and those settings had the shadows disabled.
Btw, from Unity 4.2 onwards real time shadows are available on the free version too.
Your answer
Follow this Question
Related Questions
Vuforia, Android, no shadows on device, shadows in Unity project window 2 Answers
Shadow Quality not changing on android build. 0 Answers
Flickering, buggy realtime shadows on Android. 0 Answers
Shadows are choppy on Android, but look fine in Unity Editor on my PC 0 Answers
[Android] Lights Issue 1 Answer