


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!



Why is this?Consider mapping of pixel to texture
Pixel
Texture
Removes objectionable artifacts
get smoothed over completely(e.g., gray on horizon)
Unfortunately, there’s a significant drawback here
n
) texels
256x
128x
64x
32x
k
they are the average of
2
k
x
2
k
texels
Fortunately, OpenGL can take care of most details
pyramid from base image
We’ll look at a couple of examples today
We want to add surface texture to an object
This is
not
directly supported by OpenGL
original normal
from bump map
n
n
n
Displacement mapping
surface position
But what if we don’t want things to look completely realistic?
Just at with animation, don’t want to slavishly imitate nature
Humans like artistic freedom and expressiveness
Standard OpenGL lighting
(Phong model)
A Non-Photorealistic Lighting Model For Automatic Technical Illustration. Gooch, Gooch, Shirley, and Cohen. SIGGRAPH 98.
Non-photorealistic Lighting Model
(with silhouette outlines)
Shade model with a linear blend of “warm” and “cool” colors
mixed with surface color
cool
warm
k
k
L n
L n
cool
blue
d
blue
warm
yellow
d
yellow
k
k
k
k
b
k
k
k
k
y y
α
β
.
.
.
.
b
y
α
β
= 0 4
= 0 4
= 0 2
= 0 6