Giter Club home page Giter Club logo

neon-world's Introduction

Neon World

Terrain mesh generation using Peril Noise 2D function.

Table of contents

General info

Main goal of this project was to learn about terrain generation using noise function. Besides, I also wanted to create eye-catching, fancy mesh-based visualization.

Demo

Project is avaible online on Github Pages here.

Screenshots

Example screenshot1 Example screenshot2 Example screenshot3

Technologies

Setup and run

To run it locally, just download repository and launch index.html on local server. Web browser must support WebGL. In case you don't know whether your browser supports WebGL or not, you can check it here.

Features

List of features:

  • Terrarin generation using Perlin noise 2D function.
  • Mouse interaction with camera.
  • A list of nine settings to play with.
Setting Value Range Description
autoRotateCamera bool Enable/disable automatic camera rotation
showAxesHelper bool Show/hide axes helper
width 2-256 Width of mesh
height 2-256 Height of mesh
spacing 2-32 Mesh cell size
noiseAmpX 0-128 2D Perlin noise X amplification value
noiseAmpY 0-128 2D Perlin noise Y amplification value
noiseFactor 0-1024 2D Perlin noise general value amplification
planeColor RGB Hex values Color of the mesh

To-do ideas:

  • Add more variations of mesh shape (e.g. oval, triangle, pentagon, hexagon, etc.).
  • Adjust setting range values to achieve more interesting results.
  • Add animations (i.e. mesh alters with the flow of time).

Issues

Main issue is quite heavy performance drop, which occurs while changing settings. It is caused by rebuilding whole plane many times in very short time. Adding, for example, max number of rebuilds per second limit seems to be the simplest (not nessecery the most reliable) solution to fix this problem.

Status

Altough there are interesting features that might be added, this project is no longer developed.

Inspiration

Project inspired by @shiffman "Coding Challenge #11: 3D Terrain Generation with Perlin Noise in Processing"

Contact

Created by @michaltkacz - feel free to contact me!

neon-world's People

Contributors

michaltkacz avatar

Stargazers

 avatar

Watchers

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