DEV Community

EmberNoGlow
EmberNoGlow

Posted on

Optimize Your Godot 4 Scenes with Merging Meshes

Hey there, Dev.to Community! πŸ‘‹ Are you looking to boost the performance of your 3D scenes with a large number of MeshInstance3D or procedural geometry? Look no further than the Merging Meshes add-on for Godot 4!

What is Merging Meshes?

Merging Meshes is a simple but powerful add-on designed to optimize your scenes by combining multiple MeshInstance3D nodes into a single mesh. This reduces the number of drawing calls, resulting in a significant performance boost.

How Does It Work?

Merging Meshes uses the SurfaceTool class to append meshes from MeshInstance3D nodes. This allows you to combine an unlimited number of meshes into one, drastically improving performance.

How to Use Merging Meshes

  1. Download and enable the addon: Make sure the folder is located in the addons directory.
  2. Add a MergingMeshes node: Add the MergingMeshes node into your scene.
  3. Configure the node: In the Inspector panel, add your MeshInstance3D nodes to the meshes parameter.
  4. Optional: Assign a Material3D to the GeneralMaterial parameter to set the material for the merged mesh.
  5. Recommended: Keep the HideSource parameter enabled to automatically hide the original MeshInstance3D nodes.

Getting started!

Download on Github.

About the Developer

This mini-add-on is part of a larger project I'm working on for Godot 4. Stay tuned for more updates and features!

Did You Like the Performance Boost?

If you found Merging Meshes helpful, consider starring the repository to make it easier for others to find it. Happy coding! πŸš€

Top comments (0)