cse 681 introduction to 3d graphics. cse 681 computer graphics is “the creation and manipulation...

10
CSE 681 Introduction to 3D Graphics

Upload: erik-brooks

Post on 13-Dec-2015

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CSE 681 Introduction to 3D Graphics. CSE 681 Computer graphics is “the creation and manipulation of graphics images by means of computer.” (Marc Berger,

CSE 681

Introduction to 3D Graphics

Page 2: CSE 681 Introduction to 3D Graphics. CSE 681 Computer graphics is “the creation and manipulation of graphics images by means of computer.” (Marc Berger,

CSE 681

Computer graphics is “the creation and manipulation of graphics images by means of

computer.” (Marc Berger, 1986.)

Computer Graphics

Animation

Solid Modeling Scientific

Visualization

Real-timeRenderingRendering

Vector Graphics Raster Graphics

681-782

694A,682?

784Coming soon…

781

Page 3: CSE 681 Introduction to 3D Graphics. CSE 681 Computer graphics is “the creation and manipulation of graphics images by means of computer.” (Marc Berger,

CSE 681

Vector GraphicsDraw a picture line by line.

Drawbacks:

• Not solid imagery (wireframe).

• Vector hardware continually redraws all objects.

Advantages:

• Straight lines.

• Hardward supports high resolution

Page 4: CSE 681 Introduction to 3D Graphics. CSE 681 Computer graphics is “the creation and manipulation of graphics images by means of computer.” (Marc Berger,

CSE 681

Raster Graphics

n x m grid of pixels

Problems:• Needs a frame buffer• Convert objects to pixels• Aliasing: Screen resolution may be

much less than object resolution.

Advantages:• Based on TV technology• Lends itself to shaded imagery

Page 5: CSE 681 Introduction to 3D Graphics. CSE 681 Computer graphics is “the creation and manipulation of graphics images by means of computer.” (Marc Berger,

CSE 681

2D v. 3D

SCREEN

Viewport

Window

x

y

Page 6: CSE 681 Introduction to 3D Graphics. CSE 681 Computer graphics is “the creation and manipulation of graphics images by means of computer.” (Marc Berger,

CSE 681

3D Graphics

3D Graphics

Rendering

Vector Graphics Raster Graphics

Scan Conversion Ray Tracing

Modeling Animating

Page 7: CSE 681 Introduction to 3D Graphics. CSE 681 Computer graphics is “the creation and manipulation of graphics images by means of computer.” (Marc Berger,

CSE 681

Scan Conversion• Transform 3d object into 2d object (object-based)• “Scan” 3d object, converting it into pixels.

• Fast;• Commonly used;• Industry standard – OpenGL;• Hardware support (OpenGL).

Image plane

Page 8: CSE 681 Introduction to 3D Graphics. CSE 681 Computer graphics is “the creation and manipulation of graphics images by means of computer.” (Marc Berger,

CSE 681

Ray Tracing• Shoot a ray through each pixel (pixel-based)

• Find first object intersected by ray.

Image plane

Eye

• Slow;

• Not commonly used;

• No hardware support.

Page 9: CSE 681 Introduction to 3D Graphics. CSE 681 Computer graphics is “the creation and manipulation of graphics images by means of computer.” (Marc Berger,

CSE 681

Scan Conversion v. Ray TracingScan Conversion

(CSE 581, 781, …)

• Fast;

• Commonly used;

• Industry standard (OpenGL);

• Hardware support.

Ray Tracing(CSE 681)

• Models optics (better);

• Photorealistic rendering;

• Special effects;

• Better for understanding rendering/lighting.

Page 10: CSE 681 Introduction to 3D Graphics. CSE 681 Computer graphics is “the creation and manipulation of graphics images by means of computer.” (Marc Berger,

CSE 681

Creating a Scene

• Translate & rotate objects.

• Linear algebra. (Prerequisite: Math 568 or 571.)