loader Package¶
loaderEgg
Module¶
loaderObj
Module¶
parse_mtl
Module¶
-
class
pi3d.loader.parse_mtl.
Materials
[source]¶ Bases:
object
-
NEW_MATERIAL_CHUNK
= 'newmtl'¶
-
float3_f
(y, z)¶
-
float_f
()¶
-
int_f
()¶
-
str_f
()¶
-
class
Prop
(name, func)¶ Bases:
tuple
Create new instance of Prop(name, func)
-
func
¶ Alias for field number 1
-
name
¶ Alias for field number 0
-
-
PROPERTIES
= {'Ka': Prop(name='colorAmbient', func=<function Materials.<lambda>>), 'Kd': Prop(name='colorDiffuse', func=<function Materials.<lambda>>), 'Ke': Prop(name='colorEmissive', func=<function Materials.<lambda>>), 'Ks': Prop(name='colorSpecular', func=<function Materials.<lambda>>), 'Ni': Prop(name='opticalDensity', func=<function Materials.<lambda>>), 'Ns': Prop(name='specularCoef', func=<function Materials.<lambda>>), 'Tf': Prop(name='colorTransparency', func=<function Materials.<lambda>>), 'Tr': Prop(name='transparency', func=<function Materials.<lambda>>), 'bump': Prop(name='mapBump', func=<function Materials.<lambda>>), 'd': Prop(name='transparency', func=<function Materials.<lambda>>), 'illum': Prop(name='illumination', func=<function Materials.<lambda>>), 'map_Bump': Prop(name='mapBump', func=<function Materials.<lambda>>), 'map_Ka': Prop(name='mapAmbient', func=<function Materials.<lambda>>), 'map_Kd': Prop(name='mapDiffuse', func=<function Materials.<lambda>>), 'map_Ks': Prop(name='mapSpecular', func=<function Materials.<lambda>>), 'map_d': Prop(name='mapAlpha', func=<function Materials.<lambda>>)}¶
-