GithubHelp home page GithubHelp logo

alan-baylis / xenkovoxelexample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jason-wilmans/xenkovoxelexample

0.0 1.0 0.0 7.89 MB

A minimum example of endless voxel terrain generation

C# 100.00%

xenkovoxelexample's Introduction

Endless Voxel Terrain Example

This is a small example illustrating the basics of an endless terrain generation in the Xenko Game Engine. It has been made as concise as possible, to transport the basic idea.

It is based on the ThirdPerson template. It has mainly two parts: The visible voxel management in the WorldGenerator class and the terrain generation in the TerrainGenerator class.

Especially the terrain generation is nothing more than a simple placeholder for an adequate logic. But it illustrates the concept of a generator function, which returns a height for a given space in the voxel grid. Here it is a mixture of overlapping sine and cosine waves with different wavelengths and amplitudes.

Its output is used in the WorldGenerator component. It tracks the player's position and inserts and removes single voxels, so that they are only displayed, when they are in a square zone around the player.

Feel free to experiment with the code and have fun with it! :)

xenkovoxelexample's People

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.