I'd like to combine objects to reduce the drawcall amount. Currently it goes to thousands so it's really bad. I'm creating the terrain with the following basecode:
Should I combine the whole thing as one object? They're plain planes just next to each other. I'm planning on using a 1024 x 1024 texture with all the different terrain types and assign it to all planes. Will this approach be any good? 1024 x 1024 is needed considering the amount of different tiles I'll be using.
asked Jan 15 '10 at 12:46 AM
If you're using Unity 2.6+ there's a built-in function on Mesh called CombineMeshes that's probably preferable over the standard assets CombineChildren script. See the documentation here: http://unity3d.com/support/documentation/ScriptReference/Mesh.CombineMeshes.html
Some caveats of doing what you're suggesting though:
answered Jan 15 '10 at 11:52 PM
You better look at how to make a Mesh object as this will give way to many objects. You could try to merge them with the CombineChildren script from Standard Assets, but will probably give quite a delay.
Also, instead of
If you have only one Ground type it isn't to hard to generate the Mesh with some little coding, if you need help with that, let us know.
answered Jan 15 '10 at 12:59 AM