

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Real-time Rendering & Graphics Hardware Pradeep Sen
Class 11 – February 26, 2007
Real-Time Rendering &
Graphics Hardware
Real-time Rendering & Graphics Hardware Pradeep Sen
Class 11 – February 26, 2007
Announcements ^ New homework available today (due nextMonday) ^ Midterm exam next Wednesday (March 7 inclass). Will cover up to and including nextMonday’s lecture on hard shadows. ^ Office hours tomorrow start at 3:
Real-time Rendering & Graphics Hardware Pradeep Sen
Class 11 – February 26, 2007
Last time ^ Joe talked to you about Cg, high-levelshading for NPR
Real-time Rendering & Graphics Hardware Pradeep Sen
Class 11 – February 26, 2007
Today ^ Introduction to the texture mapping pipeline ^ Sampling artifacts ^ Silhouette maps
Real-time Rendering & Graphics Hardware Pradeep Sen
Class 11 – February 26, 2007
Introduction to texture mapping^ – Developed by Catmull (’74) as way to improve realism
(u,v)^0
Real-time Rendering & Graphics Hardware Pradeep Sen
Class 11 – February 26, 2007
Introduction to texture mapping
u
v
Real-time Rendering & Graphics Hardware Pradeep Sen
Class 11 – February 26, 2007
A little sampling theory
Real-time Rendering & Graphics Hardware Pradeep Sen
Class 11 – February 26, 2007
Ideal texture mapping pipeline in 1D^ 1D
u
v^ s t
u v screen space
texture space
Real-time Rendering & Graphics Hardware Pradeep Sen
Class 11 – February 26, 2007
Representing Theoretical Texture Signal^ ^ Explicitly, with a mathematical equation
u v
u v
(10π
Real-time Rendering & Graphics Hardware Pradeep Sen
Class 11 – February 26, 2007
Representing Theoretical Texture Signal There are several possible ways to represent thetheoretical texture signal:^ ^ Explicitly, with a mathematical equation^ ^ Implicitly, with a functional program that can computef(u,v) everywhere on the domaine.g. procedural textures^ Shader checkboard(float4 uv) {uv = floor(uv * 8);return ((uv.x % 2) == (uv.y % 2));} These have the same problem as the explicitrepresentations – not all textures can be represented!
Real-time Rendering & Graphics Hardware Pradeep Sen
Class 11 – February 26, 2007
Representing Theoretical Texture Signal There are several possible ways to represent thetheoretical texture signal:^ ^ Explicitly, with a mathematical equation^ ^ Implicitly, with a functional program that can computef(u,v) everywhere on the domain^ ^ Implicitly, with a composition of geometrical shapeswith well-defined mathematical representations.e.g. vector graphicsThese can be expensive to compute in real-time.Similar to the general rendering problem!
circles^
lines^
Bézier curves
Real-time Rendering & Graphics Hardware Pradeep Sen
Class 11 – February 26, 2007
Representing Theoretical Texture Signal There are several possible ways to represent thetheoretical texture signal:^ ^ Explicitly, with a mathematical equation^ ^ Implicitly, with a functional program that can computef(u,v) everywhere on the domain^ ^ Implicitly, with a composition of geometrical shapeswith well-defined mathematical representations.^ ^ Approximately, using a discrete representation
u v
u v
theoretical texture signal
discrete representation
Real-time Rendering & Graphics Hardware Pradeep Sen
Class 11 – February 26, 2007
Standard Texture Mapping Pipeline in 1D
performed once
60 Hz
Real-time Rendering & Graphics Hardware Pradeep Sen
Class 11 – February 26, 2007
Standard Texture Mapping Pipeline in 1D
performed once
60 Hz
Real-time Rendering & Graphics Hardware Pradeep Sen
Class 11 – February 26, 2007
Standard Texture Mapping Pipeline in 1D^ OpenGL provides two reconstruction filter modes:
performed once
60 Hz
Real-time Rendering & Graphics Hardware Pradeep Sen
Class 11 – February 26, 2007
Standard Texture Mapping Pipeline in 1D OpenGL provides two reconstruction filter modes:
performed once
60 Hz
Real-time Rendering & Graphics Hardware Pradeep Sen
Class 11 – February 26, 2007
Standard Texture Mapping Pipeline in 1D
performed once
60 Hz
Real-time Rendering & Graphics Hardware Pradeep Sen
Class 11 – February 26, 2007
Standard Texture Mapping Pipeline in 1D
performed once
60 Hz