CSCI 441 - Computer Graphics

Fall 2016 - .mtl File Format



|   Home |  Syllabus |  Assignments |  Leaderboard |  Schedule |  Resources   |

.mtl File Format

Sample *.mtl file:
#
# example .mtl file
#

newmtl cube_mtl
Ns 64.0
Tr 1.0
Kd 0.7 0.7 0.7
Ks 0.0 0.0 0.0
Ka 0.1 0.1 0.1
map_Kd texture.jpg
Explaination of each line:
  • # comments
           comments
  • newmtl materialName
           specify the name for these material settings
  • Ns s
           shininess
  • Tr alpha
           transparency
  • Kd r g b
           diffuse color
  • Ks r g b
           specular color
  • Ka r g b
           ambient color
  • Ke r g b
           emissive color
  • map_Kd filename
           diffuse texture map
For more information, visit Wikipedia or paulbourke.net.
Last Updated: 01/01/70 00:00


Valid HTML 4.01 Strict Valid CSS! Level Triple-A conformance, W3C WAI Web Content Accessibility Guidelines 2.0