CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with...

30
Introduction to Computer Graphics Dongguk University Jeong-Mo Hong CSE4030

Transcript of CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with...

Page 1: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

Introduction to Computer Graphics

Dongguk University

Jeong-Mo Hong

CSE4030

Page 2: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

Week 1 • The first step on a journey to the virtual world

– An introduction to computer graphics and interactive techniques

– How to start graphics programming

Page 4: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

Movie

Page 5: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

Commercial Films

Page 9: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

Scientific Visualization

Page 10: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

What is CG? [1/2] • Computer graphics is concerned with all aspects of

producing pictures or images using a computer.

• The field began humbly almost 50 years ago, with the display of a few lines on a cathode-ray tube (CRT); now, we can create images by computer that are indistinguishable from photographs of real objects.

• We routinely train pilots with simulated airplanes, generating graphical displays of a virtual environment in real time.

• Feature-length movies made entirely by computer have been successful, both critically and financially.

Page 11: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

What is CG? [2/2]

• The term ‘Computer Graphics’ – the representation and manipulation of pictorial data

by a computer

– the various technologies used to create and manipulate such pictorial data

– the images so produced, and the sub-field of computer science which studies methods for digitally synthesizing and manipulating visual content

– Although the term often refers to three-dimensional computer graphics, it also encompasses two-dimensional graphics and image processing

Page 12: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

What is ‘interactivity’? • HCI (Human–computer interaction)

– The study of interaction between people (users) and computers

– The intersection of computer science, behavioral sciences, design and several other fields of study

– Interaction between users and computers occurs at the user interface (or simply interface), which includes both software and hardware

Page 13: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

Objectives

• To understand the fundamental topics in computer graphics – Graphics pipeline, shading models, texturing,

computer animation, rendering, etc.

• To learn how to design and implement 3D graphic software – Real-time HCI (human-computer interface)

• To have an impressive portfolio – The best way to get a nice job

Page 14: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

Course Outline • 3 credits

– 2 lecture, 2 lab, 1 design

• Approach – More emphasis on practical programming

– Less emphasis on history and theory (math)

• Projects – Personal programming assignment (weekly lab)

– Team project (game or VFX competition)

• Textbook – Interactive Computer Graphics: A Top-Down Approach

Using OpenGL (5th ) by Edward Angel

Page 15: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

Instructor Information

• Contact – [email protected], P300, 02-2260-3826

• Education and employment – BME KAIST 1996-2000

– MSME KAIST 2000-2002

– PhD in CS KU 2002-2005

– Post-Doctoral Scholar Stanford 2005-2007

– Research Professor KU 2007-2008

– Assistant Professor DGU 2008-Present

Page 16: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

Evaluation • Attendance 15%

– Attendance 10% + Participation 5%

• Exams 30% – Midterm 15% + Final 15%

• Homework 15% – Math problems 5% + Reports 10%

• Lab 15% – Attendance 5% + Result 10%

• Project 25% – Report 10% + Result (15+α)%

• Each of the scores will be normalized

Page 17: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

Tentative Schedule [1/2]

• Week 1. The first step on a journey to the virtual world

• Week 2. Let's get drawing!

• Week 3. Living in a 3 dimensional world

• Week 4. Make them move

• Week 5. Show yourself!

• Week 6. The magician of light

• Week 7. The magician of material

• Week 8. Midterm exam

Page 18: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

Tentative Schedule [2/2]

• Week 9. Are you naked?

• Week 10. Do you want to be rich in your 2nd life?

• Week 11. Shall we dance?

• Week 12. May the force be with you

• Week 13. Let there be light

• Week 14. Let's rock, baby!

• Week 15. Final exam

• Week 16. Game development competition

Page 20: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

No Hats

• Penalty in participation points

Page 21: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

Cheating Policy

• Penalty will be very heavy

– 0 point in the related evaluation

– Deduct 10~20 points

Page 22: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

OpenGL

• Open Graphics Library – API for 2D and 3D graphics programming

– Developed by Silicon Graphics

– OpenGL 3.0 was released on August 11, 2008

– Cross-platform (but MS has D3D)

– GLUT – The OpenGL Utility Toolkit

Page 23: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

glColor3f(1.0, 0.0, 1.0); glBegin(GL_POLYGON); glVertex3f(0.1, 0.1, 0.0); glVertex3f(0.9, 0.1, 0.0); glVertex3f(0.1, 0.9, 0.0); glEnd();

OpenGL - Preview

Page 24: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

Lab 1

• No lab this week

Page 25: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

Reading Assignment

• Try to understand Figures (instead of …)

– Figure 1.1, 1.11, 1.21, 1.31

– Figure 2.6

• Let’s see an example

Figure 1.1 A graphics system

Page 26: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

Creating the World of Pandora

Page 27: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

Performance Capture

Page 28: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

Virtual Camera

Page 29: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

3D Fusion Camera

Page 30: CSE4030 Introduction to Computer Graphics · 2011-12-28 · •Computer graphics is concerned with all aspects of producing pictures or images using a computer. • The field began

Simul-Cam