Code Monkey home page Code Monkey logo

cashgenue's Introduction

cashgenUE

Procedural Terrain Generator for UnrealEngine 4.25

This plugin generates heightmap-based terrain tiles in realtime, and move the tiles around to track a player pawn.

CashGen Demo

Features:

  • Multithreaded heightmap, erosion and geometry generation
  • A simple hydraulic erosion algorithm
  • Multiple tile LODs with per-LOD collision, tesselation and subdivision
  • Dithered LOD transitions (when using a suitable material instance)
  • Slope scalar in vertex colour channel
  • Depth map texture generation for water material

It has dependencies on :

  • UnrealFastNoise by myself, a modular noise generation plugin
  1. Create a new C++ project
  2. Checkout UnrealFastNoisePlugin into your engine or project plugins folder ( https://github.com/midgen/UnrealFastNoise )
  3. Checkout this repository into your engine or project plugins folder
  4. Add "CashGen", "UnrealFastNoisePlugin" to your project Build.cs (required to package project)
PrivateDependencyModuleNames.AddRange(new string[] { "CashGen", "UnrealFastNoisePlugin" });
  1. Create a new Blueprint based on CGTerrainManager
  2. OnBeginPlay in the blueprint, call SetupTerrain() and fill out all required parameters
  3. Add a CGTerrainTrackerComponent to any actors you wish to have terrain formed around
  4. You can optionally tell the tracker component to hide/disable gravity on the spawned actors until terrain generation is complete
  5. Vertex Colours - Red = slope. Green = the biome mask specified in terrain config

For samples, please check :

https://github.com/midgen/CashDemo

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.