Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
0
Question by SuperMasterBlasterLaser · Oct 03, 2015 at 10:03 AM · c#androidcameralighting

Lighting differencies between desktop and android.

This happened only this time.

In my unity project player my scene looks like this:

first

When I start on my android application it looks like this: second

There is only terrain, camera and directional light in scene.

The only value that I changed is light intensity.

screenshot-2015-10-03-15-50-06.png (261.8 kB)
1.jpg (300.6 kB)
Comment
Add comment · Show 9
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 pako · Oct 03, 2015 at 12:00 PM 1
Share

It might be an OpenGLES compatibility problem, i.e. maybe your Android device doesn't support OpenGLES3, and somehow the automatic setting sets it to OpenGLES3, ins$$anonymous$$d of OpenGLES2. In your Player Settings, in the "Other Settings" section check to see if you have "Auto Graphics API" enabled. If yes, disable it and select and remove OpenGLES3. Then build and try again.

avatar image SuperMasterBlasterLaser pako · Oct 03, 2015 at 04:39 PM 0
Share

I have made it. It become even worse. Now Ins$$anonymous$$d of being dark gray now it is black. As there is no light sources at all.

avatar image pako · Oct 03, 2015 at 06:11 PM 1
Share

Are you using any special shaders for the terrain that need OpenGLES3, but your device does not support OpenGLES3? What device and Android version do you have for testing?

avatar image SuperMasterBlasterLaser pako · Oct 04, 2015 at 11:47 AM 0
Share

For terrain, I have created Physics$$anonymous$$aterial and added simple grass texture. $$anonymous$$y device is Redmi Note with Android 4.4.2

avatar image pako · Oct 04, 2015 at 03:05 PM 0
Share

With your device there should be no problem with OpenGLES.

How did you paint the grass? Did you use "Add Grass Texture" in the Terrain's settings/Paint Details/Edit Details? If so, a huge amount of of vertices may have been created in the scene for the grass, and these would have difficulty rendering in a mobile device. Check your "Stats" when in Play mode.

avatar image SuperMasterBlasterLaser pako · Oct 04, 2015 at 03:27 PM 0
Share

There is no grass in this terrain. When I said that I added "grass texture" is that I have added texture image named "grass" to terrain :) . The most interesting is that this happes only for my terrain while other 3D objects like cube, cylinder with textures works fine.

It is looks like as if light source's color is black, but color of my light source is white.

Is this could be considered as bug?

$$anonymous$$orrow I will try to run this project on my friends device.

avatar image pako · Oct 04, 2015 at 04:19 PM 0
Share

I'm not quite sure what you mean by "added simple grass texture". You can't just "add" texture to terrain and have it rendered. You add it, and then paint the terrain with it with the terrain tools. So, please be specific with the actions you have taken.

Also, I must say, that the images you have posted show a "shiny" surface, with some areas with more light and some areas with shades. These would require a special shader. maybe I'm wrong, but I just can't see how such effects could be achieved by just painting the terrain with a simple texture.

If you posted some screenshots of your hierarchy, and the Inspector for the terrain object.

Of course if you try it on a different Android device it could probably be useful.

avatar image pako · Oct 04, 2015 at 04:34 PM 0
Share

O$$anonymous$$, I see what you mean... The first texture you add to the terrain, automatically covers the whole terrain. You only need to paint the remaining textures you add (if any).

Another thought: In the import settings of the texture, try setting the texture format to "Truecolor" if it is "Compressed". Also make sure that in your "Build Settings" the "Texture Compression" is set to "Don't override".

avatar image SuperMasterBlasterLaser pako · Oct 05, 2015 at 05:12 AM 0
Share

I have launched this project on my friends device which is THL 5000. It shows terrin fine. I think this is problem of hardware of my phone.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Jespertheend2 · Oct 03, 2015 at 08:13 PM

Try replacing all 'fixed' words with 'half' in your shader, if that doesn't work try replacing 'half' with 'float' if that doesn't work it's probably a problem with your graphics card not supporting something in your shader.

Comment
Add comment · Show 4 · 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 SuperMasterBlasterLaser · Oct 04, 2015 at 11:49 AM 0
Share

Where I can find these options? I do not use any custom shaders. It is simple new Unity Project.

avatar image Jespertheend2 SuperMasterBlasterLaser · Oct 04, 2015 at 03:09 PM 0
Share

If you have a custom shader it's somewhere in your assets folder. If this is the standard shader you might have to change it to another shader that is more mobile friendly. What shader do you have selected in your material settings?

avatar image SuperMasterBlasterLaser Jespertheend2 · Oct 04, 2015 at 03:43 PM 0
Share

On my terrain in $$anonymous$$aterial, there is "Build in Standard" selected. However, when I switch to "Build in Legacy Standard" my terrain looks black in my phone.

Show more comments

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

39 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity can't build my Android project 0 Answers

Camera.main.WorldToScreenPoint(touch.position). Help !!! 1 Answer

Multiple Cars not working 1 Answer

Image Effect lighting 0 Answers

Trying to change a texture with picture from camera 3 Answers


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