Giter Site home page Giter Site logo

blendergamer / ue4marchingcubes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mikhomak/ue4marchingcubes

0.0 0.0 0.0 614.88 MB

๐Ÿ“ฆ3D Perlin Noise using Marching cubes algorithm for Unreal Engine 4๐Ÿ“ฆ

License: MIT License

C++ 100.00%

ue4marchingcubes's Introduction

3D Perlin noise using marching cubes algorithm

About:

This component allows you to generate 3D Perlin Noise mesh with collisions in runtime in unreal engine.

Requirements:

In order for this component to work you will need:

  1. Unreal Engine 4 2.5 (2.6 is yet not supported by RuntimeMeshComponent so you need to use 2.6 or update RuntimeMeshComponent to 2.6)
  2. Runtime mesh component - In order to create a mesh (Marketplace)
  3. PerlinNoiseComponent - In order to get noise values (This component comes bundled in this repo)

Installation:

  1. Install the RuntimeMeshComponent
  2. Add libnoise library to your UE4 project. You can find how in this repo by nialna. P.S. - in the git history of this repo you can find installed version of libnose.
  3. Copy PerlinNoiseComponent.h and PerlinNoiseComponent.cpp to your Source folder. This component was made by nialna, thanks a lot to her!
  4. Copy MCubeComponent.h and MCubeComponent.cpp to your Source folder. (You can also copy MCubeActor.h and MCubeActor.cpp which is an Actor example)
  5. Add UMcubeComponent, URuntimeMeshComponentStatic and UPerlinNoiseComponent to your actor. Set Noise and RuntimeMesh variables for UMcubeComponent.
  6. Call GenerateMarchingCubeMesh() of UMcubeComponent to generate the mesh!

Screenshots:

FAQ:

1) Does the mesh have collisions?
YES, but you can disable them in MCubeComponent.cpp RuntimeMesh->CreateSectionFromComponents(0, 0, 0, Vertices, Triangles, Normals, UV, VertexColors, Tangents, ERuntimeMeshUpdateFrequency::Infrequent, true); by setting the last argument to false.

2) Can you use it as a Terrain?
Yeap, but I recomend you for this purpouse to use Voxel plugin which is cool as shit

Credits:

ue4marchingcubes's People

Contributors

mikhomak 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.