A texture map statement names an image file, with options before it. The file name is everything after the last option, so names with spaces work where a program allows them. Texture maps multiply the matching value in the material.
map_Kd -s 2 2 1 -o 0.5 0 0 diffuse.png
map_d -imfchan m alpha.png
bump -bm 0.4 bumps.png
refl -type sphere room.png
The map statements
| Statement | Meaning |
|---|---|
map_Ka | A colour texture for the ambient colour, multiplying Ka. |
map_Kd | A colour texture for the diffuse colour. |
map_Ks | A colour texture for the specular colour. |
map_Ns | A scalar texture multiplying the specular exponent. |
map_d | A scalar texture multiplying the dissolve. |
map_aat on | Anti-aliases this material’s textures. Takes on or off, and no file. |
decal | A scalar texture that blends the texture colour over the material colour. |
disp | A scalar texture that displaces the surface to add roughness. |
bump | A bump texture that perturbs the surface normals. Also seen as map_Bump and map_bump. |
refl | A reflection map, with -type saying its form. |
Colour textures in the specification are .mpc or .cxc
files, or images. Scalar textures are .mps or .cxs, or
images. Bump textures are .mpb or .cxb, or images.
Maps from extensions
| Statement | Meaning |
|---|---|
map_Ke | Emissive colour. |
map_Pr | Roughness. |
map_Pm | Metallic. |
map_Ps | Sheen. |
map_Pc, map_Pcr | Clearcoat thickness and clearcoat roughness. |
map_aniso, map_anisor | Anisotropy and anisotropy rotation. |
map_Tr | Transparency, the inverse of map_d. Written by some programs. |
map_Disp, map_Decal, map_Ni | Not in the specification. The explorer reads them as map statements in case a file uses them. |
norm | A normal map, in which red, green and blue hold the X, Y and Z of the surface normal. |
map_RMA, map_ORM | One image holding roughness, metalness and ambient occlusion, from a DirectXMesh extension. |
Options
| Option | Meaning | Default |
|---|---|---|
-blendu on|off | Blending across the texture, horizontally. | on |
-blendv on|off | Blending across the texture, vertically. | on |
-bm mult | Bump multiplier, for bump only. Values from 0 to 1 work best. | not given |
-boost value | Sharpens mip-mapped textures. Not negative. Higher values can cause crawling in animation. | not given |
-cc on|off | Colour correction, for map_Ka, map_Kd and map_Ks only. | not given |
-clamp on|off | Limits the texture to the 0 to 1 range. | off |
-imfchan r|g|b|m|l|z | The channel a scalar or bump texture reads. | l, or m for decal |
-mm base gain | Adjusts the range of the texture’s values. | 0 and 1 |
-o u [v] [w] | Moves the texture’s origin. | 0 0 0 |
-s u [v] [w] | Scales the texture. | 1 1 1 |
-t u [v] [w] | Adds turbulence. | 0 0 0, none |
-texres value | The texture’s resolution. | the largest power of two no bigger than the source image |
-type | The form of a refl map: sphere, with one file, or cube_top, cube_bottom, cube_front, cube_back, cube_left and cube_right, with one file each. | not given |
In the explorer
Every map statement is split into its options and its file name, shown in the structure tree, and checked (an option the statement does not take, or a map with no file name, is reported). The file name is everything after the last option, so a name with spaces stays whole.
The pictures of a model opened from a folder (see the
overview) draw map_Kd on the faces
that have texture coordinates, multiplied by Kd, with -s
and -o for scale and offset, and -clamp on to stop the
repeat. Where map_Kd is absent, map_Ka is used. A texture
that is not in the folder, or is a kind of image the explorer cannot read, is named
in the materials table. The other maps are listed but not drawn.
Not described
What this page leaves out, and what the explorer does not do.
Known, not yet covered
- Reference: the options were checked on 2026-11-18 against Paul Bourke’s copy of the specification:
-blenduand-blendvdefault on;-boosttakes a non-negative float;-cconly on map_Ka, map_Kd and map_Ks;-clampdefault off (one copy of the texture, the underlying material unchanged outside it; 2D textures clamp in u and v, 3D in u, v and w);-imfchanon the scalar and bump statements (map_Ns, map_d, decal, disp, bump), default l, m for decal;-mm base gaindefaults 0 and 1, render-time only;-odefault 0 0 0,-sdefault 1 1 1 (its w also sets the tessellation of a displacement map),-tdefault 0 0 0 (no turbulence);-texresthe texture size, by default the largest power of two not above the image, made from a square image;-bmon bump only, positive or negative, 0 to 1 best. The specification’s per-statement option lists do not allow every option everywhere (for example-ccis not listed for map_Ns, map_d, decal, disp or bump); the explorer accepts every option on every map statement. Still unchecked: the effect of the options in any real renderer. - Viewer: only
map_Kd(ormap_Ka) is drawn, with-s,-oand-clamp, from PNG, JPEG, TGA, BMP and PPM files. Every other map and option is parsed and listed and not applied, and textures are found only when the model is opened from a folder.
map_RMA and map_ORM channel order: in the DirectXMesh extension, not written up.
Unknown
- Reference and viewer: the
.mpc,.mps,.mpb,.cxc,.cxsand.cxbprocedural texture files: named by the specification, with no public layout found. The viewer does not read them. - Reference and viewer: real texture use: no real texture file was available, so drawing is checked on built files only.