









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!










Mapping to Polygon Mesh Objects
Mapping a square to a quadrilateral
a b c d e f g h i
x’ y’ w
s’ t’ q
(x, y) = (x’/w, y’/w)
(s, t) = (s’/q, t’/q)
Affine (linear) mapping:
a b c d e f 0 0 1
x y 1
s t 1
x = as + bt + c y = ds + et + f
a b c d e f 0 0 1
x y 1
s t 1
Forward mapping:
s t 1
x y 1
Inverse mapping:
cofactor(Tf)
det (T f)
x y 1
e −b bf−ec −d a dc−af 0 0 ae−bd
x y 1
ae−bd
a b c d e f g h i
x’ y’ w
s’ t’ q
x = x’/w = (as + bt + c)/(gs + ht + i) y = y’/w = (ds + et + f)/(gs + ht + i)
assume i = 1
x = as + bt + c − gsx − htx y = ds + et + f − gsy −hty
(x 0 ,y 0 )
(x 3 ,y3)
(x 1,y1)
(x2,y2)
x 0 = c y0 = f x1 = a + c − gx 1 y1 = d + f −gy 1 x2 = b + c − hx 2 y2 = e + f − hy 2 x3 = a + b + c − gx 3 − htx 3 y3 = d + e +f − gy 3 − hy 3
Inverse Mapping using an Intermediate Surface
""""""""
""""""""
""""""""
""""""""
""""""""
""""""""
""""""""
""""""""
""""""""
"""""""
"""""""
"""""""
"""""""
"""""""
"""""""
"""""""
"""""""
"""""""
""""""
""""""
""""""
""""""
""""""
""""""
""""""
""""""
""""""
""""""
− used when there is no texture coordinate−vertex coordinate correspondence
− two pass method
− the intermediate surface is generally non−planar but it possesses an analytic mapping function
e.g.
Using a cylinder, cube or sphere results in a 3d to 3d mapping
Procedure (cont’d)
T’(xi, yi, zi) O(xw, yw, zw )
using the center of the object
using the normal from the object surface
using the normal of the intermediate surface
Billboards
− Use 2d image as a 3d entity
− Rotate the plane of the image so it is always normal to its viewing direction
− best for objects are cylindrically symmetric
− for objects are impossible to render in real time
− Offer convincing visual effect
− View point only changes slightly
− View vector is parallel to the horizontal plane in the scene space
pv
pu
P(x,y,z)
N = (^) x
δP δP δu δv
P’( u,v) = P(u,v) + B(u,v)N
N’ = P’ u x P’v
P’u = Pu + BuN + B( u,v)Nu P’v = Pv + BvN + B(u,v)Nv
N’ = N + B uN xPv + BvPuxN
= N + (B uI − BvJ)
= N + D
−B v B u
Environment Mapping
− a short cut to rendering shinny objects that reflect the environment in which they are placed
− can approximate the quality of ray−tracing for specular reflections
− the environment is defined by a 2d map which is obtained with a preprocessing step
− geometrically correct only when the object becomes smal w.r.t. the env that contains it
− doesn’t work for concave objects
− a separate map is needed for each object in the scene
− in some cases, it’s view dependent
3D Textures
− map a 2D texture to the surface of a 3d object can be a non−trivial and problematic task.
− with 3d texture mapping, only need to determine the position of the point in space
((((
((((
((((
((((
((((
((((
((((
((((
((((
((((
(((((((
(((((((
(((((((
(((((((
(((((((
(((((((
(((((((
((((((( ((((((((((
((((((((((
((((((((((
((((((((((
(((((((
(((((((
(((((((
(((((((
(((((((
(((((((
(((((((
(((((((
− T is procedurally generated
−> compact, no fixed resolution, parameterized
P(x, y, z) on the surface of an object has color defined by T(x, y, z)
− mapping problem is eliminated but the type of textures can be created is limited
3D Noise Textures
− noise as a texturing primitive
− noise functions should be controllable
− noise functions should have a narrow bandpass limit in frequency