Graphics Programs Reference
In-Depth Information
v 10.000000 10.000000 0.000000
v -10.000000 10.000000 0.000000
vn 0.000000 0.000000 1.000000
usemtl Plane
s off
f 3//1 4//1 2//1
f 1//1 3//1 2//1
Listing 4-10. Chapter4/Blender/tankFence5.mtl
# Blender MTL File: 'tankFence5.blend'
# Material Count: 3
newmtl Enemy
Ns 96.078431
Ka 0.000000 0.000000 0.000000
Kd 1.000000 0.000000 0.000000
Ks 0.500000 0.500000 0.500000
Ni 1.000000
d 1.000000
illum 2
newmtl Plane
Ns 96.078431
Ka 0.000000 0.000000 0.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ni 1.000000
d 1.000000
illum 2
▪ Recall the names of objects you modeled-Plane, Enemy, and
Player. Listing 4-9 contains the block of data for Plane object.
Perl parser stores object names (for example, “Plane”, “Enemy”)
and uses them to read the material file to get the material colors.
So, corresponding to the Plane object, it stores white col-
or—indicated as "Kd 1.000000 1.000000 1.000000"
(RGB format) in Listing 4-10 .
 
Search WWH ::




Custom Search