Git Product home page Git Product logo

terrain_tests's Introduction

Amethyst_terrain

What is this?

This is an experimental render pass for terrains in Amethyst using Cardinal Neighbor Quadtrees and tesselation for Level-of-Detail.

Example Image

Principles

A terrain heightmap is split based on the distance to the viewer using Cardinal Neighbor Quadtrees. Each leaf is tesselated in regards to its neighbor to avoid T-Junctions.

After that, a basic quad mesh is drawn using instanced attributes for each leaf.

Future

Tries to have comparable performance to major engine solutions. The first step is Unreal and Unity final step would be FarCry5's engine e.g.

Some specific targets are:

  • Asset streaming and thus splitting of the terrain assets (heightmap, etc.) into tiles for each leaf
  • Decals
  • Support in amethyst-atelier and the editor
  • Fallback for lower spec systems without tesselation support

Limitations

This approach uses tesselation and geometry shaders and thus does currently not support Metal or older OpenGL versions

What's in here

  • A cnquadtree crate implementing the algorithm from Safwan W. Qasem and Ameur A.
  • The render pass for Amethyst in the crate amethyst_terrain
  • A simple demonstration crate implementing a game with a simple terrain created with Gaea

Inspiration

This approach was inspired by

terrain_tests's People

Contributors

valkum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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