Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
7
Question by KnightsShadow · Jun 25, 2013 at 10:36 PM · androidlighting

Why do I have such light problems with Android?

If I let run the game on my pc it looks so:

http://www.youtube.com/watch?v=gbQiUxRYB-A

but if i run it on an android device it looks so:

http://www.youtube.com/watch?v=7ojnqPPCat4

If I move arount the corner it will get darker and darker and at the next corner it will get brighter and brighter.

Light is ambient, the end of sight in front of the player is made by fog and the shadows at the screen are made by blob-shadow-projector.

How can that be?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

6 Replies

· Add your reply
  • Sort: 
avatar image
13

Answer by BetaBeat · Nov 30, 2015 at 03:22 PM

For me it was: Inspector -> Light -> Render Mode -> Important (not Automatic) - good luck

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jcummins · May 24, 2016 at 09:32 PM 0
Share

Yep, worked for me too. Point lights now showing up on Android. Thanks!

avatar image Naxionman1978 · Apr 30 at 04:03 PM 0
Share

Thank you soooooo much! Your answer just ended a sleepless week trying to find a solution!

avatar image
12

Answer by Bunny83 · Jun 25, 2013 at 10:56 PM

This is because "pixel lights" (light is calculated per pixel in the fragment shader) are quite expensive especially on mobile devices. Depending on your quality settings the pixel light count is set to 1,2,3 or 4. So the same geometry can only be affected by that much pixel lights. Unity will determine the lights at the current position and use only the brightest ones.

As alternative Unity will use vertex lighting. Vertex lighting doesn't calculate the light per pixel but per vertex. If your geometry is huge with only a few vertices the result is quite bad. A long wall can only be lit at it's corners, so in between it has to average the 4 corners.

Your options are:

  • Increase the pixel light count in the quality settings (or just choose a higher default level)

  • increase the vertex count in your geometry. For example the default plane object that comes with Unity has 11x11 vertices and works way better with vertex lit shaders as a 2x2 quad

You can also search the web for lighting solutions for mobile devices, there's a lot of information out there.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by mashine87 · Sep 13, 2017 at 06:29 PM

If your problem occurs on low performance devices go to Edit - Project Settings - Graphics. In Tier settings for Tier 1 (Low) unselect 'Use defaults' and change Standard Shader Quality to Medium. It may affect performance but it fixed lighting problem for my app.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by dputros · Oct 02, 2017 at 07:58 AM

So 4 years later... we could be having a similar issue...

There is an open issue about this: https://issuetracker.unity3d.com/issues/android-objects-with-mobile-vertex-lit-shader-ignore-point-light-and-spot-light-when-built-on-a-device-with-adreno-418-gpu

It seems like the spot light is being ignored by Vertex-lit shaders for a while now. Worth up voting this so unity can fix it, otherwise Vertex-Lit is potentially useless on Android with Point or Spot lights.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by popescupatricia98 · Jul 19, 2018 at 07:23 AM

It is from fog, in Window-> Lighting-> Other Settings-> uncheck the Fog or change the mode to exponential.,It is from fog, in Window-> Lighting-> Other Settings-> uncheck the Fog

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

29 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Normal map messed up on android 1 Answer

Why Is my baked lightmap looking so weired?? 0 Answers

Lighting differencies between desktop and android. 1 Answer

Spotlight not working on Android (kind of) 1 Answer

How to optimize the lighting in Android for best performance? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges