Skip to content

Instantly share code, notes, and snippets.

@makidoll
Last active August 9, 2022 17:28
Show Gist options
  • Save makidoll/c79ee91d31b547ff75b4acfb844e7f11 to your computer and use it in GitHub Desktop.
Save makidoll/c79ee91d31b547ff75b4acfb844e7f11 to your computer and use it in GitHub Desktop.
Obj Mtl Cheat Sheet

Obj Mtl Cheat Sheet

newmtl (material assignment) name

Ka (ambient) r g b
Kd (diffuse) r g b
Ks (specular) r g b
Ke (emission) r g b
map_K? (K? map) filename

Ns (shininess) 0 to ?
Ni (index of refraction) 1 (glass is 1.5)

Tr (alpha) 0 to 1
d (opposite alpha from Tr) 1 to 0

illum (illumination model)
	- 0 constant color from Kd
	- 1 diffuse model
	- 2 diffuse and specular model
	- Find "The illumination models are:" on https://www.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/27982/versions/5/previews/help%20file%20format/MTL_format.html

More at https://people.cs.clemson.edu/~dhouse/courses/405/docs/brief-mtl-file-format.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment