Skip to content

Simple voxel engine written in C++. Infinite world, no height limit

Notifications You must be signed in to change notification settings

LiteApplication/OpenGL-experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voxel Renderer

This is a simple voxel renderer implemented in C++, utilizing OpenGL for drawing the scene. It features a separate thread for chunk building and rendering, a basic wave shader, random terrain generation using Perlin noise and a bit of point lighting.

Dependencies

  • CMake: Make sure you have CMake installed to build the project.
  • GLFW: This project utilizes GLFW for window creation and OpenGL context management.
  • GLM: GLM (OpenGL Mathematics) is used for mathematics operations in OpenGL applications.

Make sure to install these dependancies as the program cannot be built without them

Arch Linux :

sudo pacman -S glfw glm cmake gcc

Screenshot

An isolated island in the middle of the river

Building Instructions

  1. Clone this repository to your local machine.
git clone https://github.com/LiteApplication/OpenGL-experiments
  1. Navigate to the cloned repository directory.
cd OpenGL-experiments
  1. Create a build directory and navigate into it.
mkdir build
cd build
  1. Run CMake to generate build files.
cmake ..
  1. Build the project using your preferred build system (Makefiles, Visual Studio solution, etc.).
cmake --build .
  1. After successful compilation, the executable will be generated in the build directory.

Usage

  1. Run the executable generated after building the project.

    ./TestGL
  2. Interact with the renderer using the provided controls or interface.

Controls

  • Use ZQSD to navigate the scene
  • Scroll to change the field of view (zoom in and out)
  • Use SPACE and SHIFT to go up and down
  • Use CTRL to go faster
  • Use H to go even faster

Credits

This project was created while reading the website learnopengl.com.

License

This project is licensed under the MIT License. Feel free to use and modify it according to your needs.

About

Simple voxel engine written in C++. Infinite world, no height limit

Resources

Stars

Watchers

Forks