View Single Post
Old 10-01-05, 08:27 AM   #145
Seeadler
Pacific Aces Dev Team
 
Join Date: Mar 2001
Location: Northern Germany
Posts: 1,096
Downloads: 169
Uploads: 0


Default

Quote:
Originally Posted by Sansal
What is Kd Ks Ka in mtl ?
Ka - defines the ambient color of the material to be (r,g,b). The default is (0.2,0.2,0.2);

Kd - defines the diffuse color of the material to be (r,g,b). The default is (0.8,0.8,0.8);

Ks - defines the specular color of the material to be (r,g,b). This color shows up in highlights. The default is (1.0,1.0,1.0);

d - defines the transparency of the material to be alpha. The default is 1.0 (not transparent at all) Some formats use Tr instead of d

Tr - defines the transparency of the material to be alpha. The default is 1.0 (not transparent at all). Some formats use d instead of Tr

Ns - defines the shininess of the material to be s. The default is 0.0

illum - denotes the illumination model used by the material. illum = 1 indicates a flat material with no specular highlights, so the value of Ks is not used. illum = 2 denotes the presence of specular highlights, and so a specification for Ks is required

map_Ka - names a file containing a texture map, which should just be an ASCII dump of RGB values

Reference:
http://www.csit.fsu.edu/~burkardt/data/mtl/mtl.html
Seeadler is offline   Reply With Quote