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 poolts · Apr 11, 2013 at 01:46 PM · batching3d modeldynamic batching

What's the best practice to batch a group of 3D characters?

Say I have a model of a player (roughly 6k verts) what would be the best practice to dynamically batch a team of models? Which all share the same material and mesh setup (i.e. separate meshes, but the same instance).

In the docs, our model falls under the 180 verts required criteria for dynamic batching, since it uses normal maps, and extra UVs.

Comment
Add comment · Show 6
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 Steven-1 · Apr 11, 2013 at 02:16 PM 0
Share

why would you want to split the model in parts under 180 verts ? the purpose of batching is quite the opposite: combining meshes to reduce draw calls

avatar image poolts · Apr 11, 2013 at 02:22 PM 1
Share

I think in order to dynamically batch a group of models they have to be under 180 verts (since we're using a shader that requires vert pos, normal map, and 2 uv channels)

Batching dynamic objects has certain overhead per vertex, so batching is applied only to meshes containing less than 900 vertex attributes in total. If your shader is using Vertex Position, Normal and single UV, then you can batch up to 300 verts; whereas if your shader is using Vertex Position, Normal, UV0, UV1 and Tangent, then only 180 verts. From the Unity docs: http://docs.unity3d.com/Documentation/$$anonymous$$anual/DrawCallBatching.html

avatar image Steven-1 · Apr 11, 2013 at 02:32 PM 0
Share

woa, didn't know that, that means we have been using dynamic batching for naught, since all our dynamic props are about 500-1000 vertices (and that's only counting position). thanks for the info.

avatar image poolts · Apr 11, 2013 at 02:34 PM 0
Share

Check in the inspector, if the mesh filter reads combined mesh then it's worked. Also if the models don't move you can just mark them as static, and they'll statically batch (faster).

avatar image Steven-1 · Apr 11, 2013 at 03:14 PM 0
Share

yeah I know, but you know, reading all the restrictions, it seems the dynamic bathcing is only usefull for mobile devices, totally not usefull for pc games.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by BitMax · Apr 11, 2013 at 04:00 PM

Try this: http://answers.unity3d.com/questions/197415/dynamic-batching-and-instantiating.html

And this: http://docs.unity3d.com/Documentation/Manual/DrawCallBatching.html

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 poolts · Apr 11, 2013 at 04:18 PM 0
Share

Thanks for the answer, but these don't really answer the question, nor do the discuss the best practices to batch a group of 3D characters (namely models over 6k). I'm familiar with the Unity docs on batching, but in this case need to know if there are any ways to dynamically batch a group of models each containing 6k verts.

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

12 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

Related Questions

Alternative to LineRenderer/TrailRenderer 1 Answer

How performance heavy is dynamic batching? 0 Answers

Why scale break a batch? 1 Answer

Why is object with 384 verts and simple shader not getting batched? 1 Answer

Draw calls on instantiated prefabs? help 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