Coder Social home page Coder Social logo

thespygeek / voxelengine Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 0.0 66.03 MB

Voxel Engine is game engine based on voxel. The goal is to have a engine that can load map composed of chunks that contained voxel. This implies many problems of memory managing in order to not load all chunk of the map in RAM. Another problem is the transfer between de CPU data and GPU.

License: MIT License

CMake 1.15% GLSL 1.95% C++ 96.77% Shell 0.13%
voxel-engine glm cpp game-engine imgui voxel voxel-terrain voxel-game opengl

voxelengine's Introduction

Voxel-Engine

Build Status

Voxel-Engine is a WIP game engine specialized for voxel rendering. It is made by 2 students to learn the process of creating a game engine.

terrain_1

terrain_deep

terrain_large

Features

Jeu
  • you can shoot projectile by pushing F
Change transform
  • Change position
  • Change orientation
  • Change scale
  • Animate orientation
Change tools position
  • Change camera position, fov, orientation
  • Change light position
Display
  • Activate/Deactivate display in wire frame
Components

The components are in the folder src/components/

  • Camera Follow : follow the objet attached to
  • Axis Renderer : display axis in the camera Editor
  • Camera Controller First Person : allow to move and rotate the camera with left and right click
  • Camera Projective : functions needed to make a projective camera
  • Camera Renderer : WIP, display the camera in the editor
  • Chunk Renderer : display a terrain composed of chunks with OpenGL
  • Controller : allow to interactively strafe and go forward and backward
  • Mesh Renderer : display in the screen with OpenGL the mesh
  • Third Person Controller : allow to move the camera around an objet like in a third person game

How to clone

git clone --recursive https://github.com/TheSpyGeek/VoxelEngine.git

Build

On Linux

Dependencies :

sudo apt-get install -y build-essential cmake xorg-dev libgl1-mesa-dev libfreetype6-dev

To build :

mkdir build && cd build && cmake .. && make

On Windows

Dependencies :

To build :

  • Create a directory build
  • Run Cmake
  • Configure with Mingw Makefile
  • Run mingw64
  • Go to build directory
  • Compile with mingw32-make
On MAC OSX

Should work

Resources

voxelengine's People

Contributors

thespygeek avatar todorico avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

voxelengine's Issues

[Branch component] Erreur compilation référence non défini vers Remove<MeshRender>()

J'ai crée un classe Component je l'ai ajouté dans l'EngineObject qui est devenu GameObject. J'ai voulu faire des methodes générique pour pouvoir ajouter, supprimer des composant dans l'objet. D'ou les template <class ComponentType> avant les fonctions. Afin de pouvoir faire des appels de fonction comme dans Unity genre obj->getComponent<MeshRender>(). Les fonctions marche le fichier gameObject.h mais dans le scene.cpp ça ne compile pas. ça dit référence not defined. Tu peux testr sur la branche component

Lambertian qui marche pas

Je sais pas trop a quoi c'est du mais selon l'orientation de la lumière et l'orientation de l'objet on peut voir une ligne apparaitre.
lambertian marche pas

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.