CSCI 441 - Computer Graphics

Fall 2019 - .mtl File Format



Canvas | CS @ Mines | Mines | Piazza
|   Home |  Syllabus |  Assignments |  Leaderboard |  Schedule |  Resources   |
Blue Teapot2015: Asgard Green Teapot2016: Mount Olympus Red Teapot2017: Aaru Park Grey Teapot2018: Findias Speedway White Teapot2019: Hanan Pacha
E-chaski Yachachiq runa chay tariy Machu Picchu

.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: 08/16/17 12:36


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