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
1
Question by Sabius · Mar 08, 2015 at 05:47 PM · unity 5materialreflectioncolor changedirectional light

Color problem with Unity 5

So After porting my test project from Unity 4.6 to Unity 5, I have a slight problem, but I don't know exactly what's causing it. I generate some cubes via script at certain locations. All i have in my scene is these cubes, Main Camera, 1 directional light and couple of empty gameobjects for scripts. Let me show some pictures. This is 4.6 view alt text

now this very same scene, ported to Unity 5 alt text

the thing is, that I am using orthographic camera and it seems that i have 1 object, but really, I have 2 objects and with orthographic camera they seem to be one. But as u can see I am getting this color difference between two pieces. (as I said, this object is not 1, it consists of 2 objects under certain angles and with orthographic camera it seems to be 1 object) so the color separation is just where 2 pieces 'stick' together. All cubes have same default material on them and are affected only by 1 directional light. When I move camera a bit this color difference changes so I am guessing it has to do something with reflections ? that color seems different with various camera angles, I don't really know... I tried Player settings and Lighting windows settings but nothing helped.

So i'm guessing now, is this new feature of directional light, and how can I return to 4.6 view ? Or any other suggestions ?

11.jpg (10.3 kB)
12.jpg (9.4 kB)
Comment
Add comment · Show 5
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 Sabius · Mar 08, 2015 at 08:44 AM 1
Share

I figured it out at last, so Unity 5 converted my 4.6 Diffuse shader into a Standard shader, so it had its glossiness and reflections that affected the color. When i used Legacy Shader -> Diffuse the problem solved, but i DO want to use standard shader if possible, so any ideas how can i 'make' standard shader to be the diffuse only shader ?

avatar image meat5000 ♦ · Mar 08, 2015 at 02:47 PM 0
Share

Just turn everything down and set it to opaque. This id standard diffuse. It looks different due to the more advanced lighting and shadows.

avatar image Sabius · Mar 08, 2015 at 05:03 PM 0
Share

Sadly enough that doesn't work, i tried that so much time. I set metallic and smoothness to 0 and nearly almost all possible variations of them, also other map properties I have to 'none', but I can not get the same effect from Standard shader as 4.6 Diffuse material had. As i mentioned if this was solid single object, it would look nice, but in my scene there are 2 objects and first one is higher then second so they get differently lit and have different color.

avatar image meat5000 ♦ · Mar 08, 2015 at 05:47 PM 0
Share

There are all new lighting options etc. You should try playing with them and shadows too. There is a little dropdown next to the static button for example.

avatar image saadali211 · Mar 20, 2017 at 12:14 PM 0
Share

i have color problem and here is how i fixed it https://youtu.be/eFlZBPc2NG0

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by saadali211 · Mar 20, 2017 at 02:19 PM

here is the fix

https://youtu.be/eFlZBPc2NG0

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

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Reflection bigger than actual gameobject. 0 Answers

How to change the reflection according to skybox-material? 2 Answers

How to make Stellaris Map in Unity3D? 1 Answer

How to reflect an object. 1 Answer

Script sets color to multiple objects from instead of only one object with Random.range() 0 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