- Home /
Real time shadows in a lightmapped scene (Android)
After baking a scene using single lightmaps (or dual lightmaps for that matter), the non-static objects don't cast shadows anymore. In the editor, the objects do cast shadows. The problem is when it is built and run on the Android device.
I:-
1) Have checked "cast shadows" on the objects that I want to cast shadows.
2) Have set the main directional light(the one that is casting the shadows) to "Real time only" and Important.
3) Am using the forward rendering path on Android and PC. This device(SGS4) supports OpenGL ES 2.0 so I don't think it's a hardware issue?
4) Have checked the quality settings and have allowed shadow casting for the Android platform.
5) Have gone through the Unity manual a lot of times to check and counter check something I must have missed.
Thanks for your time. Any help/suggestion is appreciated.
Answer by fffMalzbier · Aug 19, 2014 at 01:23 PM
Normally you will need Deferd rendering for dual light-maps:
Dual lightmaps by default can only be used in the Deferred Lighting rendering path. In Forward rendering path, it’s possible to enable Dual Lightmaps by writing custom shaders (use the dualforward surface shader directive).
I get that. But sadly that doesn't answer my question. I am using single lightmaps. Normally, the non-static objects should just cast their shadows onto the other objects but they don't do that on the android device.
Answer by PushkarSawant97 · Aug 21, 2014 at 08:37 PM
I used a shadow projector to emulate the effect. Increases performance drastically versus RT shadows. Mobile platform, nobody cares whether the shadows are realistic or just round blobs.
Your answer
Follow this Question
Related Questions
How do I get objects to cast shadows on each other using BEAST? 1 Answer
Lightmapping comes out perfect except one wall is blotchy 1 Answer
Beast Lightmapping - No shadows when doing "Bake Selected" 2 Answers
Lightmapping Artifacts 0 Answers
Force objects to specific lightmap indexes on bake all? 0 Answers