Wavefront .obj File - Material Template Library - Introduction - Texture Maps

Texture Maps

Textured materials use the same properties as above, and additionally define texture maps. Below is an example of a common material file. See the full wavefront file format reference for more details.

newmtl Textured Ka 1.000 1.000 1.000 Kd 1.000 1.000 1.000 Ks 0.000 0.000 0.000 d 1.0 illum 2 map_Ka lenna.tga # the ambient texture map map_Kd lenna.tga # the diffuse texture map (most of the time, it will # be the same as the ambient texture map) map_Ks lenna.tga # specular color texture map map_Ns lenna_spec.tga # specular highlight component map_d lenna_alpha.tga # the alpha texture map map_bump lenna_bump.tga # some implementations use 'map_bump' instead of 'bump' below bump lenna_bump.tga # bump map (which by default uses luminance channel of the image) disp lenna_disp.tga # displacement map decal lenna_stencil.tga # stencil decal texture (defaults to 'matte' channel of the image)


Texture map statements may also have option parameters (see full spec).

map_Ka -o 1 1 1 ambient.tga # texture origin (1,1,1) refl -type sphere clouds.tga # spherical reflection map

Read more about this topic:  Wavefront .obj File, Material Template Library, Introduction

Famous quotes containing the words texture and/or maps:

    The verbal poetical texture of Shakespeare is the greatest the world has known, and is immensely superior to the structure of his plays as plays. With Shakespeare it is the metaphor that is the thing, not the play.
    Vladimir Nabokov (1899–1977)

    And now good morrow to our waking souls,
    Which watch not one another out of fear;
    For love all love of other sights controls,
    And makes one little room an everywhere.
    Let sea-discoverers to new worlds have gone,
    Let maps to other, worlds on worlds have shown,
    Let us possess one world; each hath one, and is one.
    John Donne (1572–1631)