drawing - CS148: Introduction to Computer Graphics and...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Page 1 CS148: Introduction to Computer Graphics and Imaging Drawing CS148 Lecture 2 Pat Hanrahan, Winter 2009 Today’s Outline OpenGL introduction OpenGL primitives Demos / code Rasterization rules The OpenGL graphics pipeline Graphics hardware Colored pixels on screen shapes, lines, points images, text
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Page 2 Demonstrations CS148 Lecture 2 Pat Hanrahan, Winter 2009 OpenGL Shape Primitives
Background image of page 2
Page 3 CS148 Lecture 2 Pat Hanrahan, Winter 2009 Pixel Coordinates (0,0) (1,1) y x (0,1) (1,0) CS148 Lecture 2 Pat Hanrahan, Winter 2009 Pixel Coordinates (.5, .5) y x (.5, 1.5) (1.5, .5) (1.5, 1.5) OpenGL: Pixel centers correspond to non-integer coordinates
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Page 4 CS148 Lecture 2 Pat Hanrahan, Winter 2009 Rasterization Rules: Area Primitives y x Output fragment if pixel center is inside area CS148 Lecture 2 Pat Hanrahan, Winter 2009 Fragments vs. Pixels y x Combine fragment color with pixel color and store in framebuffer
Background image of page 4
CS148 Lecture 2 Pat Hanrahan, Winter 2009 Rasterization Rules: Lines y
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 01/12/2010.

Page1 / 9

drawing - CS148: Introduction to Computer Graphics and...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online