- Home /
Optimizing multiple objects by combining meshes
Hello,
I'm starting game where I have multiple different size cubes which you can place "minecraft like". Also you can recolorize those cubes anytime after you have placed them.
The game is gonna be multiplayer so game will contain hundreds(probably thousands?)of objects at some points. So if I'm not completely wrong the best way is to combine objects together to reduce draw calls.
Can I Combine objects with different materials together?
What about if material is same but objects are different shapes?
Also I have been thinking something like this:
Everytime when I place new object, game checks if there is already in game same kind of objects, same color and same shape/size. If there is, then recombine meshes together. If there's not, then make new empty game object as "parent" and put object under that and wait for more same kind of objects.
Then, everytime when I want to change color, I remove target object from combined mesh and move that under the right "parent" and recombine them together.
Would be great if someone have suggestions for this.
Thanks!
Your answer
Follow this Question
Related Questions
multiple textures on one mesh + different Albedos 1 Answer
Assertion failed on expression: '(int)lastVertex < GetVertexCount()' 1 Answer
No overload for method "X" takes `1' arguments 1 Answer
Add perlin noise to blocky terrain 0 Answers
CombineMeshes not working on one machine but is on another 1 Answer