COMP SCI 352 Computer Graphics and Animation. Computer Graphics2 My name is … My name is … How...

Preview:

Citation preview

COMP SCI 352COMP SCI 352

Computer Graphics Computer Graphics and Animationand Animation

Computer Graphics 2

My name is …My name is … How to find meHow to find me Course PoliciesCourse Policies BackgroundBackground Your turnYour turn

IntroductionsIntroductions

Computer Graphics 3

The room will be locked but students who take a class in that The room will be locked but students who take a class in that room will have card access during the following times as long as room will have card access during the following times as long as no class is in session:no class is in session:– 1. Monday through Friday. 7:00 AM - 9:30 PM.1. Monday through Friday. 7:00 AM - 9:30 PM.– 2. Saturday and Sunday 9:00 AM through 4:30 PM2. Saturday and Sunday 9:00 AM through 4:30 PM

There is no access during other hours.There is no access during other hours. The computers are to be used for course work only.The computers are to be used for course work only. Students are NOT to use the instructor workstations nor the Students are NOT to use the instructor workstations nor the

projection equipment. We CAN check who logged into them.projection equipment. We CAN check who logged into them. No software is to be installed on any of the machines. Installing No software is to be installed on any of the machines. Installing

software will result in your access being revoked. Be aware, that software will result in your access being revoked. Be aware, that it is easy to find out who was logged into a machine when it is easy to find out who was logged into a machine when unauthorized software was installed.unauthorized software was installed.

No food or drink is allowed in the room at any time.No food or drink is allowed in the room at any time. No one who does not have card access should be let into the No one who does not have card access should be let into the

room.room.

Mac 122 PoliciesMac 122 Policies

Computer Graphics 4

Cathode Ray Tube (CRT)Cathode Ray Tube (CRT)

Computer Graphics 5

Raster Scan DisplayRaster Scan Display

Computer Graphics 6

Scan Line InterlacingScan Line Interlacing

Computer Graphics 7

Random Scan Display: Random Scan Display: Vector GraphicsVector Graphics

Computer Graphics 8

Turtle GraphicsTurtle Graphics

Computer Graphics 9

Color PixelColor Pixel

Computer Graphics 10

Shadow Mask CRTShadow Mask CRT

Computer Graphics 11

Additive ColorsAdditive ColorsRed, Green, Blue = RGBRed, Green, Blue = RGB

Computer Graphics 12

Subtractive ColorsSubtractive ColorsCyan, Magenta, YellowCyan, Magenta, Yellow

Computer Graphics 13

Color WheelColor Wheel

Computer Graphics 14

The Utah TeapotThe Utah Teapot

Computer Graphics 15

Vertex and Line Drawing ModesVertex and Line Drawing Modes

Computer Graphics 16

Vertex and Line Drawing ModesVertex and Line Drawing Modes

Computer Graphics 17

Polygon Drawing ModesPolygon Drawing Modes

Computer Graphics 18

GLUT ObjectsGLUT Objects

Computer Graphics 19

Shapes DemoShapes Demo

Computer Graphics 20

Transformations DemoTransformations Demo

Computer Graphics 21

Synthetic Camera ModelSynthetic Camera Model

Computer Graphics 22

Synthetic Camera ModelSynthetic Camera Model

Computer Graphics 23

Orthographic ProjectionOrthographic Projection

Computer Graphics 24

Perspective ProjectionPerspective Projection

Computer Graphics 25

Projection (Viewing) PlaneProjection (Viewing) Plane

Computer Graphics 26

OpenGL Rendering PipelineOpenGL Rendering Pipeline

(GL_PROJECTION)

Computer Graphics 27

View Volume Projection and View Volume Projection and ClippingClipping

Computer Graphics 28

OpenGL MatricesOpenGL Matrices

Computer Graphics 29

Effect of the Modelview MatrixEffect of the Modelview Matrix

Computer Graphics 30

Effect of the Projection MatrixEffect of the Projection Matrix

Computer Graphics 31

Effect of the Viewport MatrixEffect of the Viewport Matrix

Computer Graphics 32

Projection DemoProjection Demo

Computer Graphics 33

Visual RealismVisual Realism

Hidden face removalHidden face removal LightingLighting ShadingShading Material propertiesMaterial properties ShadowsShadows

Visual realism is achieved byVisual realism is achieved by

Computer Graphics 34

Computer Graphics 35

Hidden Face RemovalHidden Face Removal

Wireframe scene without and with hidden face Wireframe scene without and with hidden face removalremoval

Computer Graphics 36

Flat ShadingFlat Shading

Wireframe scene and rendering with flat shadingWireframe scene and rendering with flat shading

Computer Graphics 37

Smooth Shading and Lighting Smooth Shading and Lighting EffectsEffects

Smooth shading, specular light and shadowsSmooth shading, specular light and shadows

Computer Graphics 38

Light and Materials DemoLight and Materials Demo

Computer Graphics 39

Texture MappingTexture Mapping

Mapping a texture map to a surface (polygon = Mapping a texture map to a surface (polygon = square)square)

Computer Graphics 40

Texture MappingTexture Mapping

Hyperbolic interpolation improves Hyperbolic interpolation improves perspective appearance:perspective appearance:

Without hyperbolic interpolation With hyperbolic interpolationWithout hyperbolic interpolation With hyperbolic interpolation

Computer Graphics 41

Texture MappingTexture Mapping

Mapping a texture to a cylinder:Mapping a texture to a cylinder:

Computer Graphics 42

Texture MappingTexture Mapping

Mapping a texture to a sphere:Mapping a texture to a sphere:

Computer Graphics 43

Texture Mapping DemoTexture Mapping Demo

Computer Graphics 44

3-D Scene Editor3-D Scene Editor

Computer Graphics 45

Polygonal ModelingPolygonal Modeling

Computer Graphics 46

Polygonal Modeling - HelixPolygonal Modeling - Helix

Computer Graphics 47

Tangent VectorsTangent Vectors

Computer Graphics 48

Frenet FramesFrenet Frames

Recommended