sansajn / cube_rain

One of my OpenGL based mini project, the goal here is to make rain of cubes with a camera system and diffuse lighting.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cube rain

One of my OpenGL ES 3 based mini project, the goal here is to make rain of cubes with a camera system and diffuse lighting. Sample shows how to set up a scene with camera and moving objects in it all rendered with diffuse based lighting shader program. How to handle user input (mouse and keyboard) to change camera rotation, pan and zoom. How to calculate per triangle model normal vectors to support lighting.

cube rain screenshot

controls

space: freeze time, left mouse: rotate camera, right mouse: pan camera

building

Building is easy, all we need to do is

cd cube_rain
scons -j4

but before we can do it we need to install glfw3, glew, glm and scons libraries.

Note: in Ubuntu 19.10 use

sudo apt install libglfw3-dev libglew-dev libglm-dev scons

command.

After successful build, ./cube_rain command can be used to run sample.

About

One of my OpenGL based mini project, the goal here is to make rain of cubes with a camera system and diffuse lighting.


Languages

Language:C++ 70.0%Language:C 26.4%Language:Objective-C++ 2.2%Language:Makefile 0.5%Language:Objective-C 0.5%Language:Batchfile 0.2%Language:HTML 0.1%Language:CMake 0.0%Language:Python 0.0%Language:GLSL 0.0%Language:Shell 0.0%