UE4ProceduralMesh

by SRombauts

UE4.7 Procedural Mesh Generation plugin

137 Stars 56 Forks Last release: Not found 21 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

UE4 Procedural Mesh

Join the chat at https://gitter.im/SRombauts/UE4ProceduralMesh

Note: There is now à better alternative with the Runtime Mesh Component plugin by Koderz (forum), available on Github (Koderz/UE4RuntimeMeshComponent) and on the Marketplace

UE 4.7 Procedural MeshGeneration from the Epic Wiki, using C++ code and Blueprints

  • https://wiki.unrealengine.com/ProceduralMeshGeneration

This is a very simple demonstration on how to generate procedural meshes and spawn them in game.

It is not to be taken as an example of proper programming technique, but only as an indication to help you generate your own meshes.

C++ Code

  • UProceduralMeshComponent, using FProceduralMeshTriangle, composed of FProceduralMeshVertex
  • AProceduralTriangleActor spwaning an simple triangle mesh with UV and a base color material applied that can be changed at runtime
  • AProceduralLatheActor spwaning an example "Lathe" mesh from rotating a Polyline, with another base color applied

Blueprints

Basic blueprints are created from the C++ Procedural Actor classes. This help demonstrating how they can be spawned manually in the level at construction time. Then a new Material can be applied to the generated meshes (the triangle have correct UV for applying textures) - BPProceduralTriangle - BPProceduralLathe

Level Blueprint

Spawnin is done on the Level Blueprint, at the BeginPlay Event :

Level Blueprint spawning a GameGeneratedActor

Result

GameGeneratedActor

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.