Dynamic Triangulation

Andrew Esenin - Code Plugins - Dec 19, 2023

This C++ Plugin will allow you to create polygonal meshes from points. Meshes can be created in the editor or when the game is running.

  • Supported Platforms
  • Supported Engine Versions
    4.27, 5.0 - 5.3
  • Download Type
    Engine Plugin
    This product contains a code plugin, complete with pre-built binaries and all its source code that integrates with Unreal Engine, which can be installed to an engine version of your choice then enabled on a per-project basis.

You can use a set of consecutive points (spline points, for example) that form an area to turn it into a single mesh.



Video | Playable Demo | Documentation | Example Project



Example Project contains an overview scene and an example of how to utilize this asset at runtime.


Features:

  • Good performance.
  • Can be edited and generated at Runtime or in the Editor.
  • Generates UV’s for meshes.
  • Triangulated meshes can be baked into single static meshes.
  • Contains two additional functions: one for chamfering or rounding corners and one for removal of duplicate points before mesh generation.
  • Can triangulate a closed spline while precisely repeating its shape.
  • Include materials that have: moving animations, texture rotation, flickering effects, opacity masks. Materials can work with or without UV’s.
  • Both the Blueprints and the C++ code contain comments.
  • Source code is also included with the plugin.


Technical Details

Limitations:

  • Self-intersections of boundary edges are possible, but they disrupt the triangulation order and can cause visual bugs.
  • Holes inside the triangulation area are not supported.
  • Triangulation can produce very sharp and narrow triangles.
  • Points located at the same coordinates may cause some triangles to disappear (Use the Merge Border Points function to fix this).
  • 3D is supported, boundary points will be placed at a specified height, but the internal area will be triangulated randomly.


Plugin Contains

  • 1 С++ Class
  • 2 Blueprint Examples
  • 9 Materials and Material Instances
  • 8 Simple pattern textures


Code Modules:

  •  DynamicTriangulation [Runtime]


Network Replication Is not implemented

Supported Development Platforms: Any

Supported Target Build Platforms: Win64 (Not tested on other platforms)