ICG 2017 Fall Homework1 Guidance
網媒所碩二 陳卓晗
Requirements
Flat, Gouraud, and Phong shading with Phong illumination model i n shaders. You can demonstrate the three shading computation in a single object. (3pts)
Enable multiple shaders and transformation on multiple objects in a scene. You are free to use those provided model files and arrange them to form the scene on your own style. You must show the thre e shading simultaneously on different objects in your scene. (3pts)
More than 2 objects & more than 2 light sources
Bonus: Special effects on animation
Illumination Models
Shading
Shading
Flat Shading: Constant normal on the whole surface
Gouraud Shading: Different vertex normal, interpolated ve rtex color on a fragment
Phong Shading: Different vertex normal, interpolated vert
ex normal on a fragment
Rendering Pipeline
Shaders
// gl_Position is a built-in variable, it is the output of the vertex shader
// another output pass to fragment shader
// gl_FragColor is a built-in variable, it is the output of the fragment shader
Shader data
Shader data
Rendering Pipeline
Load models
Load models
World transform
Model coordinates
x y
z
World transform
World coordinates
World transform
Camera coordinates
Transformations
Homogeneous Coordinates
Transformations
Scale
Rotate
Shear
Requirements Again
Flat, Gouraud, and Phong shading with Phong illumination model i n shaders. You can demonstrate the three shading computation in a single object. (3pts)
Enable multiple shaders and transformation on multiple objects in a scene. You are free to use those provided model files and arrange them to form the scene on your own style. You must show the thre e shading simultaneously on different objects in your scene. (3pts)
More than 2 objects & more than 2 light sources
Bonus: Special effects on animation
Requirements Again
Reference
https://webglfundamentals.org/
http://learningwebgl.com/blog/?page_id=1217
https://learnopengl.com/
TA Hours
CSIE R506
陳卓晗
pandachen0611@gmail.com
星期三 12:30 ~ 13:30
星期五 12:30 ~ 13:30
张子捷
r05922176@csie.ntu.edu.tw
星期二 19:00 ~ 20:00
星期三 19:00 ~ 20:00