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 The-Oddler · Apr 09, 2011 at 05:22 PM · renderingbatching

Batching problem: Poor forest tiles don't batch [fixed but not sure why xD]

Hi,

Some of my objects don't seem to like batching, since they don't want to do it :( Yet others do batch :S I don't know what I'm doing wrong.

My sea-tile batches: (note: batches 64) Sea Tiles

Yet my forst don't want to: (note: batches 0 :( ) Forest Tiles

Both images show a level of 8x8tiles, each tile is one prefad, which I create many times :P

The sea tile is just a cube with the simple water material on it. My forest tile consists out of one cube and three trees, all have the same material:

Forest

Forest

Forest

Is there anything I have to do to make these batch other than giving them the same material ? Or is it something else I'm doing wrong ?

Edit: Each tree has 134 verts, so the entire prefab has more than 400 verts. Though I tried and delete one of the trees (so the prefab has less then 300 verts) but still the non-batching problem stays :S

Edit: FIXED Well I've seem to have fixed it ! It was something with the shader, when I use the diffuse shader that comes with unity (or some other shaders that come with unity, haven't tested them all though) the batching doesn't seem to work. It does work when I use my own custom shader. I don't know what's the difference, but who cares, it works :D

Thanks for the help !

-Pablo

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
1
Best Answer

Answer by The-Oddler · Apr 10, 2011 at 12:48 PM

Fixed it myself :D I also added the fix to the main post, but I can't say that it is answered so I'll answer it here myself:

Apparently dynamic batching doesn't work with some shaders. I was using the diffuse shader that comes with unity and when I changed it it suddenly works now ! Not sure why it works with some, and not with other, if anyone knows this I'm very interested in that answer ;)

Greets

-The Oddler

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

No one has followed this question yet.

Related Questions

What is the alternative to Material Property Blocks when using SRP Batcher? 0 Answers

Why does the frame debugger say node uses different shader when it isn't? 0 Answers

When Static Batching and building, objects checked Static do not appear 1 Answer

Is there any way I can statically batch procedurally generated objects? 0 Answers

Why scale break a batch? 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