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 madhur · Oct 28, 2015 at 05:57 PM · shadershadersimportassetbundleimporting assets

Unity 5 import Shader changed to Standard from Diffuse

Hi,

I am loading 3d models (fbx) as assetbundles in my Unity Windows app. I am trying to upgrade my Unity 4.3 project to Unity 5.2.1. I am seeing a color difference in the models in Unity 5. They are darker than the previous version.

When I compared the two versions, it looks that the objects that had the Shader as Diffuse in 4.3 now coming as Standard in the 5.2. I guess this is happening when importing the model (when creating the asset bundle).

Please let me know how I can fix this issue. I have to hundreds of models that I am importing to Unity 5.2. So manually changing them is not an option.

I have attached a sample to show the color difference.

Thanks

alt text alt text

old.png (31.9 kB)
new.png (32.9 kB)
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by arcifus · Oct 29, 2015 at 01:23 AM

You can dynamically swap shaders to your liking via script. So once you load the object from the assetbundle, just assign the shader you want.

http://docs.unity3d.com/ScriptReference/Shader.Find.html?from=Material

Comment
Add comment · Show 1 · 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 madhur · Oct 29, 2015 at 08:14 AM 0
Share

Thanks for the reply arcifus. The issue in my case is that I have hundreds of models to be used in my app and each of these models can have hundreds of small parts(objects) some of them having the diffuser/standard shader issue. So changing the shader in a script is not going to be practical. I am looking for a way to fix this when importing the models as assetbundles. Also we really don't know which objects needs to have which shader. The client created the fbx files using Rhino and when they are loaded to our app, it should look just like it was in Rhino. This worked fine earlier in Unity 4.3. I want it to look the same in 5.2 as well.

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

Why does setting maximum shader smoothness show these images? 0 Answers

Missing shader variants/features in asset bundles 2 Answers

How to do an outline shader?,How to do an outline? 0 Answers

Shader Problem 0 Answers

How is _WorldSpaceLightPos0 calculated for a directional light? 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