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
0
Question by Reverend-Speed · Mar 04, 2013 at 08:58 PM · performancecolorvertexbatchingvertexcolor

Vertex colours - can they improve performance? Do they affect batching?

http://docs.unity3d.com/Documentation/ScriptReference/Mesh-colors.html http://docs.unity3d.com/Documentation/ScriptReference/Mesh-colors32.html

Not sure if folks are familiar with the original Rebellion Alien versus Predator game, but my understanding was that in order to overcome memory restrictions the level textures were stored as greyscale which were then tinted by vertex colours. In addition to this, there's a lovely document here: http://athey.deviantart.com/art/Resistance-Level-Art-QandA-117607780 ...which highlights the importance of vertex colours for high performance in areas of low memory.

Is there anybody out there who can tell me if this is an avenue worth pursuing for first person games on IOS/Android/PC? Not huge environments (say, the halls, conference rooms and hotel rooms of a decent hotel as an example), but quite detailed.

I'm happy to hear I can just ignore this, but I'd love to hear details. =)

Thanks in advance,

--Rev

(Quick follow-up - is there an obvious GUI method to do the tinting or should I just add a script to each mesh object? Is there a best method of exporting meshes with vertex colour?)

Comment
Add comment · Show 3
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 robertbu · Mar 04, 2013 at 09:22 PM 1
Share

Can only address the part of your question: changing vertex colors in the mesh does not break dynamic batching. But note that batching is limited by the number of vertex attributes on a mesh, and adding vertex colors can push a mesh above the limit. The limit is 900 vertex attributes.

avatar image Reverend-Speed · Aug 03, 2013 at 08:02 PM 0
Share

Thank you for another very informative answer, Robert. I wonder, is there an easy way to identify when you're getting closer to the 900 vertex limit. Hmm. Time to investigate the Stats overlays...

Cheers! --Rev

avatar image robertbu · Aug 03, 2013 at 08:09 PM 1
Share

Select your mesh in the Project folder and take a look at the bottom of the the Preview window for information on that mesh.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by TheAleksandar · Mar 20, 2015 at 04:52 PM

https://www.youtube.com/watch?v=O3dbE2t8lPQ More then a year too late, but none the less i hope this helps future viewers.

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

11 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

Related Questions

Colors do not work with a mesh created in script? 3 Answers

Vertex color by face 1 Answer

How can I change the color of an object's material, not generate another instance of the material, and still keep batching? 2 Answers

Changing vertex colors break batching? 3 Answers

How can I assign one color to one vertex? 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