• 沒有找到結果。

ICG 2017 Fall Homework1 Guidance

N/A
N/A
Protected

Academic year: 2022

Share "ICG 2017 Fall Homework1 Guidance"

Copied!
26
0
0

加載中.... (立即查看全文)

全文

(1)

ICG 2017 Fall Homework1 Guidance

網媒所碩二 陳卓晗

(2)

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

(3)

Illumination Models

(4)

Shading

(5)

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

(6)

Rendering Pipeline

(7)

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

(8)

Shader data

(9)

Shader data

(10)
(11)

Rendering Pipeline

(12)

Load models

(13)

Load models

(14)

World transform

Model coordinates

x y

z

(15)

World transform

World coordinates

(16)

World transform

Camera coordinates

(17)

Transformations

Homogeneous Coordinates

(18)

Transformations

(19)

Scale

(20)

Rotate

(21)

Shear

(22)

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

(23)

Requirements Again

(24)

Reference

https://webglfundamentals.org/

http://learningwebgl.com/blog/?page_id=1217

https://learnopengl.com/

(25)

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

(26)

Q&A

參考文獻

相關文件

Department of Mathematics, National Taiwan Normal University, Taiwan..

Feng-Jui Hsieh (Department of Mathematics, National Taiwan Normal University) Hak-Ping Tam (Graduate Institute of Science Education,. National Taiwan

2 Department of Educational Psychology and Counseling / Institute for Research Excellence in Learning Science, National Taiwan Normal University. Research on embodied cognition

These findings suggest that when teaching small classes many teachers were still experimenting with different approaches, even after three years, while in normal classes there

2013 Workshop on Nonlinear Analysis, Optimization and Their Applications, De- partment of Mathematics, National Kaohsiung Normal University, Kaohsiung, Tai- wan, December 30,

 Define the non-Abelian gauge transformation of 2-form (decomposed into zero/KK modes):.. (1) Lie-algebra, and reduce to abelian case in

• Given a direction of propagation, there are two k values that are intersections of propagation direction and normal surface.. – k values ⇒ different phase velocities ( ω /k)

Department of Mathematics, National Taiwan Normal University, Taiwan..