1 of 83

Overview of Computer Graphics & Applications 2023

Instructor: 李同益

2 of 83

CG System

Overview

3 of 83

Triangle, quad,

curve surface

4 of 83

Mesh

Simplification

5 of 83

Level of Details (LOD)

6 of 83

The teapot

Real teapot

Martin NewellMartin Newell, The teapot model was created in 1975 by early computer graphics researcher Martin NewellMartin Newell, The teapot model was created in 1975 by early computer graphics researcher Martin Newell, a member of the pioneering graphics program at the University of Utah.

7 of 83

Utah Teapot’s Data

8 of 83

9 of 83

Rendering

10 of 83

Rendering/Shading

11 of 83

Photo-realistic Rendering

12 of 83

Rendering and Texture Mapping

13 of 83

Direct v.s. Indirect Lighting

14 of 83

2023/02/16

15 of 83

Animation

16 of 83

17 of 83

A Standard Graphics Pipeline

18 of 83

OpenGL Transformation �Pipeline

v

e

r

t

e

x

Modelview

Matrix

Projection

Matrix

Perspective

Division

Viewport

Transform

Modelview

Modelview

Projection

object

eye

clip

normalized

device

window

glTranslate{fd}( x, y, z )

glRotate{fd}( angle, x, y, z )

glScale{fd}( x, y, z )

19 of 83

OpenGL Rendering

20 of 83

21 of 83

Basic Idea of Ray tracing

Note: translucent materials allow some light to pass through. Transparent and translucent objects still form shadows, but they may be faint, fuzzy or colored.

22 of 83

23 of 83

“Backward” Ray-Tracing

  • Trace rays from eye instead
  • Do work where it matters

Eye

Light

This is what most people mean by “ray tracing”.

24 of 83

Raytracng

http://www.realtimerendering.com/raytracing.html

The Ray Tracer Challenge

A Test-Driven Guide to Your First 3D Renderer

by Jamis Buck

25 of 83

Shadow Rays

26 of 83

27 of 83

Scanning the David

height of gantry: 7.5 meters

weight of gantry: 800 kilograms

大衛像 (David of Michelangelo))

大衛像是文藝復興時代米開朗基羅的傑作,於1501年至1504年雕成。雕像為白色大理石雕成的站立的男性裸體,一個佛羅倫薩藝術中最受歡迎的主題。用以表現聖經中的猶太英雄大衛王。原作目前置放於義大利佛羅倫斯美術學院,

28 of 83

Michelangelo’s Pieta

handmade replica

29 of 83

Molder Package

3ds Max 是由 Autodesk 公司開發的專業級 3D 動畫軟體,應用的領域包括電影視覺效果、遊戲場景與角色製作、建築工程與室內設計、工業產品設計等,從 DOS 系統的 3D Studio 到今年推出的 3ds Max 2017 版本已擁有超過 25 年的歷史,隨著版本更新不斷增加新的功能。

30 of 83

Sketch �略圖,�草圖;

31 of 83

Depth Cueing

32 of 83

Clipping (Far-plane)

33 of 83

Coloring

34 of 83

Hidden Surface Removal

35 of 83

Constant Rendering

36 of 83

Facet Shading

37 of 83

Smooth Shading

38 of 83

Correct Highlight

(高亮度)

39 of 83

Edge Silhouettes

輪廓

40 of 83

Texture & Shadow

41 of 83

Texture Mapping

42 of 83

Surface Flattening �and �Texture Mapping

43 of 83

44 of 83

In this image, the head on the left is a low-res model, the head in the middle is a highly detailed high-res model. The head on the right is the low-res model with a normal map generated from the hi-res model. It is visually almost indistinguishable from the high-poly model

45 of 83

Shading with Scan Conversion�for Pixels

Lecture 15

6.837 Fall 2001

Bump/Normal Mapping and

Displacement Mapping

46 of 83

Lecture 15

Slide 46

6.837 Fall 2001

47 of 83

Procedural Texture

程序紋理

48 of 83

Reflection

49 of 83

Global Illumination

50 of 83

Lighting

51 of 83

Photo image of

the real scene

Non-photorealistic

Rendering

52 of 83

Hatching

53 of 83

Smooth Shading

NPR Cartoon Shading

54 of 83

55 of 83

Computer Graphics is about Movies!

56 of 83

57 of 83

Motion capture (mocap)

58 of 83

Inspirational Video

Keep in mind: this film is entirely Computer-generated.

59 of 83

Games are OK here

60 of 83

Medical Visualization

61 of 83

62 of 83

Computer Aided Design

63 of 83

Scientific Visualization

64 of 83

Word Cloud Visualization

http://graphics.csie.ncku.edu.tw/TVCG_Word_Cloud/Main_video.mp4

A tag cloud (word cloud, or weighted list in visual design) is a visual representation of text data, typically used to depict keyword metadata (tags) on websites, or to visualize free form text. Tags are usually single words, and the importance of each tag is shown with font size or color.[2] This format is useful for quickly perceiving the most prominent terms and for locating a term alphabetically to determine its relative prominence. When used as website navigation aids, the terms are hyperlinked to items associated with the tag.

65 of 83

Graphical User Interfaces (GUIs)

66 of 83

WYSIWYG NPR:�Drawing Strokes Directly on 3D Models

http://www.cs.princeton.edu/gfx/proj/wnpr/

67 of 83

Virtual

Reality

(VR)

68 of 83

Head-Mounted Displays

69 of 83

70 of 83

Caves

71 of 83

Looking at NASA Space Station on display wall

http://www.cs.princeton.edu/~benshedd/

CSDisplayWall8&24/index.html

                                                                         

72 of 83

Display Wall

73 of 83

Image/Video Retargeting

  • Adapt image/video content to different display devices
    • Resolution
    • Aspect ratio

16 : 9

? : ?

2.39 : 1

4 : 3

74 of 83

Image Resizing

  • Need to fit images to various display media (wide-screen TV, PDA, thumbnail...)

4:3

16:9

1:1

75 of 83

Resizing – Standard Solutions

  • Linear scaling
    • everything is distorted
  • Letterboxing
    • screen not fully utilized
  • Cropping
    • objects close to boundary are removed

© Blender Foundation

76 of 83

Resizing – Standard Solutions

  • Linear scaling
    • everything is distorted
  • Letterboxing
    • screen not fully utilized
  • Cropping
    • objects close to boundary are removed

© Blender Foundation

77 of 83

Resizing – Standard Solutions

  • Linear scaling
    • everything is distorted
  • Letterboxing
    • screen not fully utilized
  • Cropping
    • objects close to boundary are removed

© Blender Foundation

78 of 83

Resizing – Standard Solutions

  • Linear scaling
    • everything is distorted
  • Letterboxing
    • screen not fully utilized
  • Cropping
    • objects close to boundary are removed

© Blender Foundation

79 of 83

Resizing – Content-Aware Solutions

Seam-carving

[Avidan+Shamir 2007]

Non-homo. warping

[Wolf et al. 2007]

Optimized scale&stretch

[Wang et al. 2008]

Determine ‘important’ regions

Apply operator

[Visual Media Retargeting, SIGGRAPH Asia 09 Course]

80 of 83

Seam carving: nonlinear cropping�[Avidan and Shamir 2007; Rubinstein et al. 2008]

  • Define an importance map (for example: gradients)

  • Remove lowest-energy 1D seams (one by one)

81 of 83

Results

original

SC (Seam carving)

ours

82 of 83

Video Resizing Results in SIGGRAPH Asia 2009

83 of 83

Flickering and waving artifacts