Merge meshes

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Kovalski
:warning: Old Version Published before Godot 3 was released.

Is it possible to merge imported meshes?

Merge how? And when? Why not do it in a 3D editing program?

Zylann | 2017-02-18 19:45

Because mesh will be created from multiple hexes, and hexes count is set by player. I want to do for optimization.

Kovalski | 2017-02-18 20:21

You can have multiple MeshInstances though. Are there that many of them to instance? (like, more than 50?)
You want to merge them at run time, right?

Zylann | 2017-02-18 20:32

Yes, much more then 50. And I want to merge them at run time.

Kovalski | 2017-02-18 20:52

I don’t think a built-in API for this is available. You can do it manually but it will be very slow in GDScript. I made a feature request: Merge meshes · Issue #7844 · godotengine/godot · GitHub

Zylann | 2017-02-19 04:23

Reduz replied to the request above, you could use MultiMesh so hardware instancing can be used and cost way less performance.
However, in Godot 2.1 hardware instancing is not available, but will be in 3.0, as well as faster draw calls.

Zylann | 2017-02-20 01:24