Git Product home page Git Product logo

cavegenerationsystem's Introduction

Cave Generation System

Cave generation using cellular automata. Users can change multiple traits of the cave; the x width, z width, rock density, wireframe, flat mode, and generate by seed.

How does the user interact with the executable?

Simply run the CaveGenerationSystem.exe file and the application will start. Use the 'W', 'S', 'A', and 'D' keys to move about the world, and move the mouse to aim the camera. Press 'F1' or '`'/'¬' to enter debug mode and change the cave system characteristics. Press 'ESC' to exit the program.

How does the program code work?

The 'Project.cpp' file is where the application starts. The three main objects that constitute the cave are 'caveWalls', 'caveCeiling', and 'caveFloor'. These three objects take the vertices generated and process them using buffer objects and array objects. The 'CaveGenerator' and 'MeshGenerator' classes are where the cellular automata algorithm and vertex generation happens. CaveGenerator created a 2D vector of integers representing walls and blank space. MeshGenerator then takes this 2D vector and creates vertices that OpenGL can use. VBO, VAO, Texture, and Shader classes are all used to ecnapsulate OpenGL processes that are used several times throughout the runtime of the application.

How does this program compare to other software?

This application can best be described as a prototype cave mesh generator. It can be used to visualise the cellular automata algorithm implemented. This cave system can be taken and used for games that find it appropriate to use such a system.

What I started with

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.