0% found this document useful (0 votes)
26 views12 pages

005texture Mapping

The document discusses texture mapping and how textures can be used to alter illumination equations by providing texture color values. Texture mapping involves assigning texture coordinates to map textures to 3D geometry and different methods for generating texture coordinates are covered like manual mapping, optimization, and mathematical mappings.

Uploaded by

iimsheung
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views12 pages

005texture Mapping

The document discusses texture mapping and how textures can be used to alter illumination equations by providing texture color values. Texture mapping involves assigning texture coordinates to map textures to 3D geometry and different methods for generating texture coordinates are covered like manual mapping, optimization, and mathematical mappings.

Uploaded by

iimsheung
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Texture Mapping

Spatial Variation
Weassume the materials are the same everywhere
Relationship between 𝐿𝑜 and 𝐿𝑖 independent of surface point
I.e., constant diffuse color kd, specular color ks, specular exponent q, ...

Constant Diffuse Color


Texture Mapping & Illumination
Texturemapping can be used to alter some or all of the
constants in the illumination equation
kd in particular is often read from a texture map
Diffuse color kd, specular color ks, specular exponent q, ...

Constant Diffuse Color Diffuse Texture Color Texture used as Diffuse Color
Texture Mapping & Illumination
Texturemapping can be used to alter some or all of the
constants in the illumination equation
kd in particular is often read from a texture map
Diffuse color kd, specular color ks, specular exponent q, ...

Ignore the equation, set pixel value = texture

Constant Diffuse Color Diffuse Texture Color Texture used as Diffuse Color
Texture Mapping & Illumination
Texturemapping can be used to alter some or all of the
constants in the illumination equation
kd in particular is often read from a texture map
Diffuse color kd, specular color ks, specular exponent q, ...

Ignore the equation, set pixel value = texture

Constant Diffuse Color Diffuse Texture Color Texture used as Diffuse Color Texture used as Label
Effects of Textures
Texture Coordinates (UVs)
Define how a texture is wrapped
around the geometry
Each 3D position (vertex) of the
geometry is mapped to a
texture coordinate:
A texture coordinate is a pair of
(float) values usually from 0.0 to 1.0
Measured on U & V axes
Texture map very often referred as
UV map
Texture Mapping
How to get texture coordinates
Manually, provide by user (tedious!)
Optimization, e.g., minimize distortion of
the unrolled surface
Mathematical mapping, e.g., sphere

Image from Wikipedia, created by Drummyfish


Manual Mapping

Image source: https://www.toolfarm.com/tutorial/the_new_uv_editor_in_maya_2018/


Manual Mapping

https://www.youtube.com/watch?v=1Q-t47TZcBY
Optimization

https://www.youtube.com/watch?v=N48ji24QOAY
Mathematical mapping
Sphere
x = r cos 2𝜋𝑢
y = r sin 2𝜋𝑢 cos 2𝜋𝑣
z = r sin 2𝜋𝑢 sin 2𝜋𝑣

Image from https://commons.wikimedia.org/wiki/File:UVMapping.png

You might also like