GithubHelp home page GithubHelp logo

bwiberg / conflagrantengine Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 1.8 MB

The Conflagrant graphics engine (OpenGL 4.0+).

CMake 2.47% C++ 82.58% Makefile 0.49% M4 0.64% C 0.44% Python 8.73% Shell 0.51% GLSL 4.14%
opengl computer-graphics game-engine 3d-graphics

conflagrantengine's Introduction

๐Ÿ”ฅ Conflagrant Engine ๐Ÿ”ฅ

The Conflagrant graphics engine (OpenGL 4.0+).

Features

  • Entity-Component-System based implementation
  • Custom JSON-based scene format
  • GUI using Dear ImGui
  • Texture mapping for materials
    • Diffuse maps
    • Specular maps
    • Normal maps
  • Shadow mapping for multiple directional lights
  • Frustum culling with bounding spheres
  • Voxel Cone Tracing
    • Indirect diffuse/specular lighting
    • Voxel-based Ambient Occlusion

Installation

Linux (Arch)

Depending on your GPU you first need to run one of these commands:

  • NVIDIA - pacaur -S cuda
  • Intel - pacaur -S intel-opencl-sdk
  • AMD - pacaur -S amdapp-sdk
pacaur -S ocl-icd opencl-headers glew glm jsoncpp assimp
git clone --recursive -j8 https://github.com/bwiberg/conflagrant.git
cd conflagrant
mkdir build && cd build
cmake ..
make

MacOS

Does not work at the moment, but the following should be a good start

brew install glm jsoncpp assimp
git clone --recursive -j8 https://github.com/bwiberg/conflagrant.git
cd conflagrant
mkdir build && cd build
cmake ..
make

Windows...

Does not work at the moment, but the following should be a good start

Install these libraries (preferred way is to build from source). Add their base directories to the Path env. variable.

Using Git for Windows (or similar), run the following:

git clone --recursive -j8 https://github.com/bwiberg/conflagrant.git

Next step is to build using CMake using one of the alternatives below:

  • Use CLion as IDE (my preferred solution)
  • Use cmake-gui.exe to create a project solution (Code::Blocks, Visual Studio, Unix Makefiles etc.)

Running examples

cd conflagrant/build/examples
./exampleN

Controls

DeferredRenderer

  • V: Toggle VCT pipeline
    • 0: Toggle direct rendering
    • 1: Toggle direct lighting
    • 2: Toggle indirect diffuse lighting
    • 3: Toggle indirect specular lighting
  • Left Shift + F: Toggle first-person camera controls
  • A: Start all animations
  • B: Stop all animations

conflagrantengine's People

Contributors

bwiberg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

meowboy326

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.