Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 Rainsing · Nov 07, 2013 at 09:39 AM · shaderrenderingmaterial

[Closed] Material Properties Not Applied To glProgram at Runtime

Hi All,

We recently encountered a rare and random rendering issue with Unity 4.2.0 on Android devices.

We have a dressing room scene, where the player can try out various outfits for their avatar. When a different piece of clothing is put on, we change the mesh and material for that body part. The problem we are experiencing is, by a small random chance, the material of the new clothing will render incorrectly. The type of the visual artifacts is also random. Possible results includes: pure black, black diffuse color with correct spectacular lighting, or completely invisible.

We did investigate deeper into the details of the problem. ARM arms us with a powerful debugging tool for systems with a Mali GPU - the Mali Graphics Debugger. It works just like PIX on D3D platforms - at a given time, by intercepting all graphics API calls issued from target application, it captures a complete snapshot of the graphics pipeline. That's how we found the cause of the above mentioned issue.

Here are the values of some of the uniforms (and texture samplers) when Unity draws a mesh with completely black diffuse color:

alt text

The uniform with the name "DiffuseColorFactorC1" (which is one the material properties) is used by the current glProgram without a correctly set value. As we performed more tests, it turned out that other uniforms and even the texture samplers may be null. All of the cases happened occasionally and we could not find a 100% repro.

So this is almost certainly a bug of Unity itself. I contacted a Unity Developer I know in person, and he confirmed they already received similar bug reports.

I want to know if anyone here at the Unity Community has experienced similar issues, and whether you have figured out a workaround. We just can't wait for a new Unity release.

[UPDATE] Reverting back to Unity 4.1.2 fixed the issue. We'll check out Unity 4.3 when we have time.

{1d02c9ec-0b7f-4827-a3ec-cacc890af1b0}.jpg (51.3 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

0 Replies

· Add your reply
  • Sort: 

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

15 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

Related Questions

Using a camera replacement shader but keeping the underlying (original) colors? -4 Answers

Make material always culled. 1 Answer

Transparency cutting opaque mesh 0 Answers

How do I shade something for edge-rendering? 2 Answers

Create shader materials and lights like rendered in 3ds Max? 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