Skip to content

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

Notifications You must be signed in to change notification settings

sansajn/cube_rain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published