46
Welcome! Intro to Computer Graphics © 2020 Enrique Rosales

Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

  • Upload
    others

  • View
    9

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Welcome!

Intro to Computer Graphics

© 2020 Enrique Rosales

Page 2: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

What is computer graphics?

© 2020 Enrique Rosales

Intro to Computer Graphics

Page 3: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Imaging

© 2020 Enrique Rosales

Intro to Computer Graphics

Any technology to create, preserve or duplicate images

Page 4: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Imaging (creation)

© 2020 Enrique Rosales

Intro to Computer Graphics

• 2D imaging

• Computer Graphics (usually 3D with a virtual camera involved)

• Visual Arts (Digital Photography, Sculpture, and Sketching)

• LIDAR Imagery (3D scanner for environments)

• Medical imaging

Page 5: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

What is computer graphics?

© 2020 Enrique Rosales

Intro to Computer Graphics

The study of algorithms and systems for generating images with

Computers.

Page 6: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

What is computer graphics?

© 2020 Enrique Rosales

Intro to Computer Graphics

The study of algorithms and systems for generating images with

Computers.

Almost every synthetic image that you can produce with a

computer is computer graphics.

Page 7: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Topics in Computer Graphics

© 2020 Enrique Rosales

Intro to Computer Graphics

• Imaging (2D)

• Modeling (dgp)

• Rendering

• Animation

• Interaction

• Simulation

• Digital Characters

• Virtual Reality

• Augmented Reality

• Capture

• Sketching

Page 8: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

2D Imaging

© 2020 Enrique Rosales

Intro to Computer Graphics

Raster Images

Composed of

Individual pixels

Computer Graphics / 2D Imaging / Raster images

Page 9: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

2D Imaging

© 2020 Enrique Rosales

Intro to Computer Graphics

Raster Images

Composed of

Individual pixels

Computer Graphics / 2D Imaging / Raster images

Page 10: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

2D Imaging

© 2020 Enrique Rosales

Intro to Computer Graphics

Vector Images

Composed of Curves

Computer Graphics / 2D Imaging / Vector images

Page 11: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Modeling (3D surfaces)

© 2020 Enrique Rosales

Intro to Computer Graphics

CAD Models

Surfaces defined by

curves

Computer Graphics / Modeling / CAD models

Page 12: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Modeling (3D surfaces)

© 2020 Enrique Rosales

Intro to Computer Graphics

Polygon Meshes

Surfaces defined by

faces

Computer Graphics / Modeling / Polygon Meshes

Page 13: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Modeling (3D surfaces)

© 2020 Enrique Rosales

Intro to Computer Graphics

Computer Graphics / Modeling / Polygon Meshes

Polygon Meshes

Surfaces defined by

faces

Page 14: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Modeling (3D surfaces)

© 2020 Enrique Rosales

Intro to Computer Graphics

Computer Graphics / Modeling / Polygon Meshes

Example

Page 15: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Modeling (3D volumes)

© 2020 Enrique Rosales

Intro to Computer Graphics

Voxels

The equivalent of

pixels in 3D

Computer Graphics / Modeling / Voxels

Page 16: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Modeling (3D volumes)

© 2020 Enrique Rosales

Intro to Computer Graphics

Voxels

The equivalent of

pixels in 3D

Computer Graphics / Modeling / Voxels

Page 17: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Modeling (3D volumes)

© 2020 Enrique Rosales

Intro to Computer Graphics

Tetrahedral meshes

Computer Graphics / Modeling / Tetrahedral meshes

Page 18: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Modeling (3D volumes)

© 2020 Enrique Rosales

Intro to Computer Graphics

Hexahedral meshes

Computer Graphics / Modeling / Hexahedral meshes

HexaLab.net: an online viewer for hexahedral meshes

Matteo Bracci, Marco Tarini, Nico Pietroni, Marco Livesu, Paolo Cignoni

Page 19: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Procedural Modeling

© 2020 Enrique Rosales

Intro to Computer Graphics

Objects created from a

set of rules

Computer Graphics / Modeling / Procedural Modeling

Procedural Modeling of Buildings

[Müller et al. 2006]

Page 20: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Procedural Modeling

© 2020 Enrique Rosales

Intro to Computer Graphics

Computer Graphics / Modeling / Procedural Modeling

Cities Skylines

Objects created from a

set of rules

Page 21: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Rendering

© 2020 Enrique Rosales

Intro to Computer Graphics

Computer Graphics / Rendering /

Online Rendering

(Real-time rendering)

http://madebyevan.com/webgl-water/

Page 22: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Rendering

© 2020 Enrique Rosales

Intro to Computer Graphics

Computer Graphics / Rendering /

Offline Rendering

(Pre-rendering)

Page 23: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Animation

© 2020 Enrique Rosales

Intro to Computer Graphics

Computer Graphics / Animation /

More in CPSC 426

Page 24: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Interaction

© 2020 Enrique Rosales

Intro to Computer Graphics

Computer Graphics / Interaction /

HCI

(Human Computer

Interaction)

Page 25: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Simulation

© 2020 Enrique Rosales

Intro to Computer Graphics

Computer Graphics / Simulation /

Physics simulation

(RealFlow example)

Page 26: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Simulation

© 2020 Enrique Rosales

Intro to Computer Graphics

Computer Graphics / Simulation /

Page 27: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Simulation

© 2020 Enrique Rosales

Intro to Computer Graphics

Computer Graphics / Simulation /

http://david.li/fluid/

Page 28: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Digital Characters

© 2020 Enrique Rosales

Intro to Computer Graphics

Computer Graphics / Rendering /

Page 29: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Virtual Reality

© 2020 Enrique Rosales

Intro to Computer Graphics

Computer Graphics / VR /

Surface reconstruction

from VR drawings

Page 30: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Augmented Reality

© 2020 Enrique Rosales

Intro to Computer Graphics

Computer Graphics / Rendering /

Education

Page 31: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Capture

© 2020 Enrique Rosales

Intro to Computer Graphics

Computer Graphics / Capture /

LIDAR scanning

Page 32: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Sketching

© 2020 Enrique Rosales

Intro to Computer Graphics

Computer Graphics / Rendering /

Sketch cleanning

Page 33: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Applications of Computer Graphics

© 2020 Enrique Rosales

Movies

Games

CAD

Computer-Aided Analysis

Geomatics

ML training

Education

Training

Intro to Computer Graphics

Museography

Medical imaging

Information visualization

Architecture

VR

Therapy

Fabrication

Page 34: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

SIGGRAPH

© 2020 Enrique Rosales

Intro to Computer Graphics

Page 35: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

What you will learn

© 2020 Enrique Rosales

Computer Graphics Algorithms that usually NOT stay forever…

New Alternative Mathematical Tools

3D shapes

Transformations

Rendering algorithms

Shading models

Basic animation algorithms

Raytracing

Intro to Computer Graphics

Page 36: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

How much math we will cover?

© 2020 Enrique Rosales

• Vectors

• Matrices

• Coordinate systems

• Transformations (linear, Affine)

• Forward kinematics

• Inverse kinematics

• Quaternions

• Rotors (A bit of Geometric Algebra)

• Intersections (A bit of Projective Geometric Algebra)

• Barycentric coordinates

• Bézier curves

• And more…

Intro to Computer Graphics

Page 37: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

What you will not learn

© 2020 Enrique Rosales

• Hardware details

• OpenGl, three.js or DirectX tricks and hacks

• Software packages

• Artistic skills

• Deep theoretical proofs

• Machine Learning

Intro to Computer Graphics

Page 39: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Staff

© 2020 Enrique Rosales

Instructor

Enrique Rosales

Office hours:

Wednesday

4:30 – 5:30 pm

Intro to Computer Graphics

Teaching Assistant

Yibo JiaoTeaching Assistant

Tianxin Tao

Teaching Assistant

Jake Wong

Teaching Assistant

Mandy Wong

Page 40: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

RequiredSoftware

© 2020 Enrique Rosales

• Geogebra

• 3ds Max

• Maxscript

• Blender

• Photoshop

• Illustrator

• Meshlab

Intro to Computer Graphics

• Javascript

• GLSL

• C++

• WebGL

• Three.js

SupportingSoftware

Page 41: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Communication

© 2020 Enrique Rosales

• Lectures on zoom TWF 3:00 to 4:00 pm (recorded)

• Labs on zoom

• Website: https://www.students.cs.ubc.ca/~cs-314/Vsep2020/

Lectures, assignments and other resources

• Piazza

• Canvas

• Textbooks (links on the website)

Intro to Computer Graphics

Page 42: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Grading

© 2020 Enrique Rosales

1 - Intro 5% (1 extra late day)

2 - Theory 1 4%

3 - Theory 2 4%

4 - Transformations 7% (4 bonus points)

5 - Shading 7% (4 bonus points)

6 - Theory 3 5%

7 - Raytracing 10% (8 bonus points)

8 - Theory 4 7% (4 bonus points)

midterm 1 12% (two-stage-exam TBD)

midterm 2 12% (two-stage-exam TBD)

Participation 2%

final exam 25%

3 late days for use during the term.

Intro to Computer Graphics

Page 43: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Expected outcome

© 2020 Enrique Rosales

A lot of fun learning!

SIGGRAPH Faculty Submitted Student Work

Intro to Computer Graphics

Page 44: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Next lecture

© 2020 Enrique Rosales

Topic:

Math review

We recommend:

• Check Piazza

• Check the Intro Assignment

• Check a couple of WebGl tutorials

• Play with Three.js• Optional reading: Chapters 4 and 5 from 3D math primer for graphics and game development

Intro to Computer Graphics

Page 45: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Questions?

Enrique Rosales

Page 46: Welcome! []Intro to Computer Graphics • 2D imaging • Computer Graphics (usually 3D with a virtual camera involved) • Visual Arts (Digital Photography, Sculpture, and Sketching)

Thanks

Enrique Rosales