Code Monkey home page Code Monkey logo

ue4proceduralmesh's Introduction

UE4 Procedural Mesh

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

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

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)

  • BP_ProceduralTriangle
  • BP_ProceduralLathe

Level Blueprint

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

Level Blueprint spawning a GameGeneratedActor

Result

GameGeneratedActor

ue4proceduralmesh's People

Contributors

srombauts avatar gitter-badger avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.