2010-12-06 55 views

回答

1

事实上,正如Fritschy说...... .OBJ可以全球化志愿服务青年.mtl文件,可以保存不透明,透明,反射,颜色,折射率等。

的文件是通过把下面一行在顶部referanced:

mtllib *fileName*.mtl 

然后在obj文件的脸部分,您可以添加这些:

usemtl *materialName* 

Finaly在MTL文件你会想要几个这样的部分:

# declaration of new material 
newmtl *materialName* 
# shininess 
Ns 0.000000 
# ambient colour 
Ka 0.200000 0.200000 0.200000 
# diffuse colour 
Kd 0.800000 0.800000 0.800000 
# specular colour 
Ks 1.000000 1.000000 1.000000 
# refractive index 
Ni 1.000000 
# transparency 
d 1.000000 
# illumination model 
illum 2 
# texture 
map_Kd texName.png