Author: Romain Vergne (website)
Please cite my name and add a link to my web page if you use this course

Image synthesis and OpenGL: textures

Quick links to:
  1. Textures for what?
  2. Parametrization
  3. Mapping functions
  4. Texture modes
  5. Filtering
  6. Sources

Textures for what?



Parametrization

Correspondance between 3D data and texture coordinates

1D textures

\( (x,y,z) \rightarrow (u) \)




2D textures

\( (x,y,z) \rightarrow (u,v) \)


3D textures

\( (x,y,z) \rightarrow (u,v,w) \)





Mapping functions

Flat mapping



Cylindrical mapping



Spherical mapping



Cube mapping





Parametric mapping






UV mapping







Texture modes





GL_CLAMP (deprecated)

 GL_CLAMP_TO_EDGE

GL_REPEAT

GL_MIRRORED_REPEAT

Filtering

Problem




Options




GL_NEAREST / GL_NEAREST
GL_LINEAR / GL_LINEAR
Images from Jerome Jouvie


Mipmapping







level 0
1:1
level 1
4:1
level 2
16:1
level 3
64:1
level 4
256:1
level 5
1024:1






GL_NEAREST / GL_NEAREST
GL_LINEAR / GL_LINEAR
GL_LINEAR /
GL_LINEAR_MIPMAP_LINEAR
Images from Jerome Jouvie

Sources


PREVIOUS: EXERCICE04
NEXT: EXERCICE05