Author: Romain Vergne (
website)
Please cite my name and add a link to my web page if you use this course
Image synthesis and OpenGL: exercises 07
Setup
We will use Linux and the following libraries:
Installing sources. In a terminal, do:
- Download the sources at
http://romain.vergne.free.fr/teaching/IS/data07/TP07.tgz
- If needed, edit the file main.pro to change paths
- To compile: qmake && make
- To run: ./tp07 file.off
- To edit: use either your preferred text editor or qtcreator
Deferred Shading
The goal of these exercices is to
familiarize yourself with Framebuffer objects and the Deferred Shading
technique. You should obtain something like:
Color/albedo map
|
Normal map
|
Depth map
|
Rendering
|
Advice:
you won't be able to test the result before the whole pipeline is
created. Follow precisely the steps
Exercise 1: real-time coding (with the prof.)
- Code description
- Texture modification in the shader
- Multiple render target
- Playing with shader
Exercise 2: a simple depth dependent-lighting
- In the first shader, compute the depth
value and store in in the last channel (the A) of one of the textures
- In the second shader, computer a Phong
shading that changes according to the depth value
- For
instance, modify the object color or add a fog effect according to
the depth value
Exercise 3: free coding!
The following exercises are independent. You can choose them or make your
own effects!
- Add multiple (animated) lights in the scene
- Make a pixel art effect
- Make a duplicate effect
- Make a noisy effect
- Make a blur effect
- Make your own effect!
- you can use any data to drive your effect (normal, depth,
coordinates, etc)
- be creative...