Skip to content

OpenGL demo with deffered shading and different post-processes.

Notifications You must be signed in to change notification settings

roberlozcar/OpenGLDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGL Demo

Introduction

This is a demo for OpenGL. It draws a set of cube with different trajectories and rotations. After that, it applies different post-processes: depth of field and motion blur effects, some convolutional mask (Gaussian, Laplacian and unsharp filters), a distortion and a desaturation.

It used two set of shaders, the first one draw the geometry, create a buffer with the information of position, colors, depth and normal, and the second one finish the image adding lights, with the information of the calculated buffer, and post-processes. It is called deferred shading and it is used to reduce the cost of lighting in complex scenes with many fragments and lights.

Options

  • The user can change the position of the camera with "wasd" and it orientation with "q", "e" and the mouse.
  • The focal distance and max distance factor of the depth of field effect can be changed with "+" and "-" and "m" and "l", respectively.
  • The motion blur can be enabled and disabled with "h" and its alpha is changed using "b" and "v" (more of less effect).
  • Also, the user can change the type of light (spotlight, point light or directional light) of the scene.
  • The type of convolutional mask is changed with "c".

Requeriments

This project needs glm, glew, glut and freeimage. The headers, libs and dlls for win32 are included in this repository.

Questions

Write an email to r.lozano93@gmail.com.

About

OpenGL demo with deffered shading and different post-processes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published