Skip to content

bitreal/OpenGL_BrEngine

Repository files navigation

This project is a simple 3D graphics engine that uses OpenGL 3.

Short video - https://youtu.be/NT2cNxtHIcs

I started this project because I wanted to improve my OpenGL and C++ knowledge.

How to build

You need Visual Studio 2017+

The solution contains two projects - OpenGLMain and VulkanMain. Build OpenGLMain please.

Please build for x86.

How to play

  • w/a/s/d - move forward/left/back/right

  • Shift - move upwards

  • Ctrl - move downwards

  • hold Space - look around with mouse

  • Esc - exit

Features

Deferred rendering

gbuffer picture

GPU instancing

gpuInstancing picture

Render to texture

renderingInTexture picture

Different types of lights

light picture

light2 picture

Display of normals by geometry shader

normalsByGeomShader picture

About code

Start reading from main.cpp. It contains engine initialization, scene setup, and the main loop.

The engine has a Unity3D-like API (GameObjects and Components). Classes ending with *Data are raw data for resources (a string for shaders or an array of attributes for meshes, ...).

About

Simple 3D graphics engine built with OpenGL 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors