A c++ Godot engine module containing utilites for working with mehses (Like simplification)
Go to file
Relintai fcb9a8dba8 Updated the readme. 2023-01-09 20:55:19 +01:00
delaunay Backported Delaunay3D from godot 4 and added a method for it to MeshUtils. In 4.0 is should just work with the default built in class. 2022-01-27 19:04:05 +01:00
doc_classes Re-extracted the docs. 2022-01-12 22:11:15 +01:00
xatlas Use the piecewise generator by default. 2021-09-29 09:43:53 +02:00
.gitignore
LICENSE Updated copyright headers. 2022-01-12 22:11:44 +01:00
README.md Updated the readme. 2023-01-09 20:55:19 +01:00
SCsub Backported Delaunay3D from godot 4 and added a method for it to MeshUtils. In 4.0 is should just work with the default built in class. 2022-01-27 19:04:05 +01:00
config.py
defines.h
fast_quadratic_mesh_simplifier.cpp Updated copyright headers. 2022-01-12 22:11:44 +01:00
fast_quadratic_mesh_simplifier.h Work on fixing compile for 4.0. 2022-02-08 11:52:53 +01:00
fqms.h Work on fixing compile. 2023-01-09 14:11:15 +01:00
mesh_merger.cpp Work on fixing compile. 2023-01-09 01:17:43 +01:00
mesh_merger.h Work on fixing compile. 2023-01-09 01:17:43 +01:00
mesh_utils.cpp Work on fixing compile. 2023-01-09 01:17:43 +01:00
mesh_utils.h Work on fixing compile. 2023-01-09 01:17:43 +01:00
register_types.cpp Work on fixing compile. 2023-01-09 01:17:43 +01:00
register_types.h Updated register_types.h and cpp to the current godot 4 style. 2023-01-08 15:55:55 +01:00
simplify.h

README.md

Mesh Utils Module

This is a c++ engine module for the Godot engine, containing my mesh merging utilities.

Godot Version Support

This branch tries to follow godot's master branch (as much as I have time).

For different godot versions look at the other branches.

Status for this branch: Update for 4.0 is work in progress.

Pre-built binaries

You can grab a pre-built editor binary from the Broken Seals repo, should you want to. It contains all my modules.

Optional Dependencies

Mesh Data Resource: Support for merged meshes, even in gles2. Adds MeshMerger a few helper methods.

MeshUtils Singleton

Contains generic algorithms that manipulate meshes.

Mesh Merger

Works similarly to SurfaceTool, but it has more utility functions.

Fast Quadratic Mesh Simplifier

A port of https://github.com/Whinarn/UnityMeshSimplifier . For future reference it's based on e8ff4e8862735197c3308cfe926eeba68e0d2edb. Porting is mostly done, but it does needs some debugging (it has a crash if smart linking is enabled).

I might just return to using the original FQMS. As if meshes are merged together using MeshUtils.merge_mesh_array, or bake_mesh_array_uv the original algortithm will work fine. Still on the fence about it.

Building

  1. Get the source code for the engine.

If you want Godot 3.2: git clone -b 3.2 https://github.com/godotengine/godot.git godot

If you want Godot 4.0: git clone https://github.com/godotengine/godot.git godot

  1. Go into Godot's modules directory.
cd ./godot/modules/
  1. Clone this repository
git clone https://github.com/Relintai/mesh_utils mesh_utils
  1. Build Godot. Tutorial