CS380: Introduction to Computer Graphics Introduction to...
Transcript of CS380: Introduction to Computer Graphics Introduction to...
2/27/18
1
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
CS380: Introduction to Computer GraphicsIntroduction to OpenGLSL
Min H. KimKAIST School of Computing
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
Welcome• [CS380] Introduction to Computer Graphics
• Professor: Min H. Kim (김민혁)([email protected])
• (Lecture) Tuesday and Thursday, 13:00—14:15AM, Rm. 113, N-1
• (Lab) Monday and Thursday 19:00–22:00, Rm. 317, N-1
• Course website: http://vclab.kaist.ac.kr/cs380/2
2/27/18
2
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
About Instructor• Min Hyuk Kim (김민혁)
– PhD in Computer Science (UCL 2010)– Associate Professor at KAIST School of Computing– Postdoc Researcher at Yale University– ACM SIGGRAPH Asia Technical Paper Committee 2017, 2018– Eurographics Technical Paper Committee 2017– Associate Editor of ACM Trans. Graphics (TOG) 2014--2017– Associate Editor of ACM Trans. Applied Perception (TAP) 2016--Present– Associate Editor of Elsevier Computers & Graphics (CAG) 2016--Present– Microsoft New Faculty Award 2013– Naver Young Faculty Fellowship 2015– Best Paper Awards (ACCV 2014, VAST 2012)
3
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
Textbook• Textbook: Steven J. Gortler
(2012) Foundations of 3D Computer Graphics, MIT Press (available from the KAIST library)
• Harvard CS textbook for Graphics
4
2/27/18
3
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
Example
5
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
Notification• There are no official course prerequisites. • [Warning] However, we assume in CS380 – programming experience in C (or C++):
not teaching basic programming skills, C/C++ language, Visual Studio, Compiler, etc.
– Note that we only support the Windows environment in the lab!!!
– a good knowledge of linear algebra:not teaching general mathematics
– an exposure to calculus and image processing:not teaching computer vision
6
2/27/18
4
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
Teaching Assistants• Sukjun Jeon– VCLAB, ex. 7864– [email protected]
• Giljoo Nam– VCLAB, ex. 7864– [email protected]
• Hyunho Ha– VCLAB, ex. 7864– [email protected]
• Hyeonjoong Jang– VCLAB, ex. 7864– [email protected]
7
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
ResourcesUseful website Address
Textbook website
LightHouse3D.com
freeGLUT
OpenGL GLEW
OpenGL Shade Language
GLFW (advanced one)
GTK+
Wolfram MathWorld
http://www.3dgraphicsfoundations.com/
http://www.lighthouse3d.com/
http://www.transmissionzero.co.uk/software/freeglut-devel/
http://glew.sourceforge.net/
http://www.opengl.org/documentation/glsl/
http://www.glfw.org/
http://www.gtk.org/
http://mathworld.wolfram.com/
8
2/27/18
5
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
What is Computer Graphics?
9
© 2014 Chris Jones, The Passenger
http
://te
chcr
unch
.com
/201
4/10
/01/
this-
is-cg
/
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
What is Computer Graphics?• The study of algorithms and systems
for generating images with computers
• History
10
Photographyand
Television
Computergraphics
rendering
2/27/18
6
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
What is Computer Graphics?
11Rendering
Material modelGeometry Light
Virtual photography
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
What is Computer Graphics?
12Rendering
Material modelGeometry Light
3D scanning,3D modeling
Color, Texturing,
BRDFs
Color, spectrum
Global illumination
Virtual photography
2/27/18
7
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
What is Computer Graphics?
13
Meyer, Rushmeier, Cohen, Torrance and
Greenberg, ACM TOG, 1986
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
What is Computer Graphics?• Imaging = capturing 2D images• Modeling = creating 3D objects• Rendering = generating 2D images from 3D models• Animation = simulating changes over time
14
2/27/18
8
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
Research in Computer Graphics
Image User: How will the image be perceived?
Image Creator: What controls are available?
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
Research in Computer Graphics
• 2D imaging– Digital imaging/filtering– Color transformations– Display technology– Compositing and layering
• 2D drawing– Sketching, illustration– User interface
16
2/27/18
9
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
Research in Computer Graphics
• 3D modeling– Scanning 3D shapes
– 2D texture mapping
– Polygons, curved surfaces
– Procedural modeling
2D texture
Virtual 3D character
17
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
Research in Computer Graphics
• 3D rendering– 2D views of 3D geometry
– Projection and perspective
– Removing hidden surfaces
– Lighting simulation
4 rays per pixel 1024 rays per pixel
Tracingray
transport
3D
2D
18
2/27/18
10
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
• User Interaction
– 2D graphical user interfaces
– 3D modeling interfaces
– Virtual reality
Research in Computer Graphics
NASA19
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
• Animation– Physical simulation
– Key-frame animation
Research in Computer Graphics
nVidia
D. Enright
Prabath Gunawardane
Allowing artistscomplete controlsover animation
Water
Hair
20
2/27/18
11
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
Applications in Computer Graphics
Movies
Games
Computer-Aided Design Computer-Aided
Analysis
Information Visualization
Cultural Heritage
Medical Imaging
Simulation Training
User Interface
21
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
Historical Perspective • A short history of graphics:
– 1950: MIT Whirlwind (CRT)– 1955: Sage, Radar with CRT and light pen– 1958: Willy Higinbotham “Tennis for Two”– 1960: MIT “Spacewar” on DEC PDP-1– 1963: Ivan Sutherland‘s “Sketchpad” (CAD)– 1969: ACM SIGGRAPH founded– 1968: Tektronix storage tube ($5-10,000)– 1968: Evans & Sutherland (flight simulators) founded – 1968: Douglas Engelbart: computer mouse– 1970: Xerox: GUI– 1971: Gourand shading– 1974: Z-buffer– 1975: Phong shading model– 1976: First animations rendered– 1979: Eurographics founded– 1980: Whitted: Ray tracing
22
2/27/18
12
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
Historical Perspective • A short history of graphics (Cont.):
– 1981: Apollo Workstation, IBM PC– 1982: Silicon Graphics (SGI) founded– 1984: X Window System– 1984: First Silicon Graphics Workstations (IRIS GL)– Until mid/end of 1990s: Dominance of SGI in the high end
• HW: Reality Engine, InfiniteReality, RealityMonster, ...• SW: OpenGL, OpenInventor, Performer, DigitalMediaLibs, ...
– End of 1990s:Low- to mid range taken over by “PCs” (Nvidia, ATI, ...)• HW: Fast development cycles, Graphics-on-a-chip,...• SW: Direct3D & OpenGL, computergames
– 1995: First feature film “Toy Story”– Today
• Programmable graphics hardware, Cg, Cuda• Realtime Ray Tracing
23
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
State-of-the-art Graphics
24
2/27/18
13
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
State-of-the-art Graphics
Detroit: Become Human, Sony25
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
What We Are Doing Underneath
26
2/27/18
14
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
What We Are Doing Underneath
27
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
What we are going to do in this course• Taking both lectures and lab courses (either lab A or B will
be assigned to you by the TA today)– Checking attendances for both lectures and labs
• Programming homework every week! (you will do your homework in the lab courses)
• Quiz at the beginning of every lecture!
• Midterm and final term examinations (all about math in graphics, not open-book, no memory test!)
• Let’s have fun! J
28
2/27/18
15
Min H. Kim (KAIST) Foundations of 3D Computer Graphics, S. Gortler, MIT Press, 2012
Grading
• Class participation: 10%
• Midterm/final exam: 50% (25% each)
• Programming assignments (about ten HWs): 30%
• Class quizzes: 10%
• An assignment after its original due date will be
degraded from the marked credit, e.g., A à B.
• Plagiarism will not be tolerated (plagiarism
detection software will be used.)
• No grade for copied codes is given!
29