- Home /
Shadows became ugly pixelated in Unity Editor 5 after an Android build
Something strange happends with the shadows on the Unity Editor after an android build, somehow they turn very pixelated now, and before the build the shadows was ok, perhaps its a dx11 unity 5 bug?, thanks for any help.
Note: After perform a PC build the shadows are OK again, is there any way to have the shadows ok always?
Looks to me like it's something with the shadow quality, that's what they look like at the lowest quality.
It seems, but the shadow quality its on very high, this poor quality shadow on the Unity editor fixes after build for PC, or click on switch plataform on the build settings menu, its something with the editor or just a configuration new in Unity 5?, i dont know, ill post if found something more specific about this, thank you.
...by the way, the cascades set for shadows (0,2 or 4) on the quality settings, doesnt affect android shadows, this is a normal behaviour, but i dont know why after an android build the editor stays like that...
What quality settings have you set as default for an Android build?
I was just going to comment this. Usually unless you've manually selected the shadow quality it will be deter$$anonymous$$ed by the quality settings.
The quality settings are set on very high for the shadows and also for the directional light, but its pixelated on the editor, only when the buil plattaform its moved to PC then the shadows get fix on the editor.
Answer by Edyvargas · Jul 18, 2016 at 08:35 AM
I found a useful solution for this any other way results in no better shadows for android, no matter what high are the quality settings for shadows, even in the best quality they are pixelated on the application too, the only way to make them better its resizing all the objects and make them way more bigger, this results in better shadows for android, perhaps later could find another way, but anyway, hope this helps other people with similar issue.
Update: Resizing all the objects its the same as reducing the shadow distance on the quality settings, by default this is set on 150, but when the objects are resized up in the scale, then the shadow distance needs to be resized as well to 300 or more, so finally its the same result that reducing the shadow distance without resizing the objects, in that case there is no need to scale up the objects. The "close fit" instead of "stable fit" option, improves a lot the shadows, but still somehow pixelated a little.
For the record this solution has a chance of changing how your objects behave with regard to gravity since making things "way bigger" makes them taller (An object of any size will take longer to fall from a skyscraper than from a two story house) and the physics engine does that such things into account to some degree. I realize that depending on your project this may not matter at all and that increasing gravity (probably a lot) can simulate similar behavior but I just wanted everyone to know that it can be an issue. This video demonstrates what I mean. http://youtu.be/v97RzqcnG70?hd=1
![alt text][1]
The "close fit" ins$$anonymous$$d of "stable fit" option is in menu under Project Settings->Quality Settings
thanks [1]: /storage/temp/110938-screenshot-from-2018-02-08-13-51-03.png
thanks, that solved also my pixelated issue and help me find where the setting was, screenshot was very useful.
Answer by engeen · Jul 17, 2016 at 08:38 AM
Select your light, then change the resolution to "Very High Resolution" in the inspector.
Answer by nordaj123 · Jul 17, 2016 at 08:38 AM
Go to quality settings and change the android shadow resolution to medium or high.
Answer by ronald677br · Jul 17, 2016 at 08:38 AM
@Edyvargas Have you set the Texture Compression to "Don't override"?
Your answer
Follow this Question
Related Questions
Shadows in Editor But Not in Build 2 Answers
Distribute terrain in zones 3 Answers
Why Unity correctly builds a project but the editor freezes on the Build Progress window? 2 Answers
Global Illumination is radically different between editor and built apps 0 Answers
Is there an event triggered before editor starts rebuilding scripts? 1 Answer