- Home /
Why do meshes break batches on certain positions
I have a simple setup of 3 meshes (wheels) with less than 900 mesh attributes and one (cylinder) with more. The following screenshot shows them in top down orthographic view, aligned in front of the camera. the 3 wheels get batched in Depth, Shadow and Forward rendering pass, while the cylinder is rendered alone.
Moving the cylinder along the z-axis just swaps out both jobs. So far so good.
Now comes the weird part. while keeping the cylinder closer to the camera and moving one of the wheels closer to the camera too, at a certain point, the batch of the wheels break on the depth pass, round about there:
It doesn't even matter, if I move the wheel back into z position OR the cylinder, both get batching back to work again. I also see a 1 frame black screen while crossing the point where batching breaks or works. I have even tried changing LOD bias, but that did not do anything either.
So what's the reason for breaking the batch and in doing that depend on a certain position or distance from the camera?
Answer by Billy4184 · Dec 18, 2016 at 11:39 AM
I had a similar sort of problem and it was due to the meshes being Lightmap Static - lightmaps break batching. Check it in the top right corner of the editor.
Your answer
Follow this Question
Related Questions
How to assign different colorsets to objects that are using the same mesh? 0 Answers
Creating a mesh and assigning a material during edit time. 1 Answer
Am I inside a volume? (without colliders) 3 Answers
beast breaks batching 1 Answer
Need theory advice on dynamic batching versus combining meshes. 0 Answers