Giter Site home page Giter Site logo

v41u / ngg Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 46.9 MB

A native C++ geometry generator for Unreal Engine 4. This plugin uses the UProceduralMeshComponent to allow for runtime chunk-based geometry generation and editing

C# 3.68% C++ 96.09% C 0.23%
ngg chunk-manager geometry-generation unreal-engine-4

ngg's Introduction

NGG

The Native Geometry Generator (NGG) is a private project that allows for chunk-based geometry generation using Unreal's UProceduralMeshComponent.

I have implemented the Marching Cubes algorithm to allow surface editing. Individual chunks register themselves to the chunk manager and allow for edits that can affect multiple chunks at once.

A rough overview of the functionality can be seen in the video here.

Current Features

  • You can use individual chunks to create a map which create a surface using the UMath::Perlin noise function.
  • Editing of the surface using a spherical brush like: Blueprint Terrain Editing
  • An actor can call either EditTerrain or EditTerrainOVERRIDE
    • EditTerrain uses the chunk manager and allows for editing of terrain over multiple chunks
    • EditTerrainOVERRIDE only adapts the individual chunk that is called. This may may be used, but I advise against it ;)
  • For each individual chunk one can define:
    • Extent: How large is the individual chunk
    • Cube Resolution: The size of the cube that is used in the marching cube algorithm
    • Feature Size: The size of the perlin noise features. A smaller value leads to more extreme differences which could represent a mountainous area. You do you :)
    • Use Smooth Surface: Boolean that defines whether a more exact surface representation should be done or whether the edges of the marching cube are always snapped to 0.5.

Open TODOs

  • Expose the generation function so that users can overwrite this and have custom mesh generation (e.g. Underground tunnel systems)
  • Expose VoxelData so that users can save the current version of chunks and the chunk state is not lost when destructing.
  • Bugfixes (e.g. Chunks are currently not unregistered from the chunk manager if they are destructed)

ngg's People

Contributors

v41u avatar

Stargazers

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