Package pyffi :: Package formats :: Package cgf :: Class CgfFormat :: Class _MtlChunk
[hide private]
[frames] | no frames]

Class _MtlChunk

source code

                  object --+                        
                           |                        
      utils.graph.DetailNode --+                    
                               |                    
          utils.graph.GlobalNode --+                
                                   |                
object_models.xml.struct_.StructBase --+            
                                       |            
                        CgfFormat._Chunk --+        
                                           |        
                             CgfFormat.Chunk --+    
                                               |    
                      CgfFormat.AbstractMtlChunk --+
                                                   |
                                                  CgfFormat._MtlChunk
Known Subclasses:

Nested Classes [hide private]

Inherited from object_models.xml.struct_.StructBase: __metaclass__

Instance Methods [hide private]

Inherited from Chunk: apply_scale, tree

Inherited from object_models.xml.struct_.StructBase: __init__, __str__, deepcopy, fix_links, get_attribute, get_basic_attribute, get_detail_child_names, get_detail_child_nodes, get_global_child_nodes, get_global_display, get_hash, get_links, get_refs, get_size, get_strings, get_template_attribute, read, replace_global_node, set_attribute, set_basic_attribute, set_template_attribute, write

Inherited from utils.graph.GlobalNode: get_global_child_edge_types, get_global_iterator

Inherited from utils.graph.DetailNode: get_detail_child_edge_types, get_detail_display, get_detail_iterator

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from object_models.xml.struct_.StructBase: get_games, get_versions

Class Variables [hide private]
  _attribute_list = [<pyffi.object_models.xml.StructAttribute ob...
  _attrs = [<pyffi.object_models.xml.StructAttribute object at 0...
  _games = {'Aion': [1863], 'Crysis': [1862], 'Far Cry': [1860, ...
  _has_links = True
  _has_refs = True
  _names = ['name', 'reserved', 'alpha_test', 'type', 'col_d', '...

Inherited from AbstractMtlChunk (private): _is_template

Inherited from object_models.xml.struct_.StructBase: arg

Properties [hide private]
  alpha_test
Unknown.
  children
Links to other material chunks.
  col_a
Ambient color.
  col_d
Diffuse color.
  col_s
Specular color.
  dyn_bounce
Set 1.0 to activate collision, 0.0 for walkthrough.
  dyn_sliding_friction
  dyn_static_friction
  flags
  name
Material and shader name.
  num_children
  opacity
Opacity.
  reserved
Reserved.
  reserved_2
All zero?
  reserved_3
Unknown.
  self_illum
Self illumination.
  spec_level
Specular level.
  spec_shininess
Specular shininess.
  tex_a
Ambient texture settings.
  tex_b
Bump texture settings.
  tex_c
Cubemap texture settings.
  tex_d
Diffuse texture settings.
  tex_detail
Detail texture settings.
  tex_f
Filter texture settings.
  tex_g
Gloss texture settings.
  tex_o
Opacity texture settings.
  tex_r
Reflection texture settings.
  tex_s
Specular texture settings.
  tex_subsurf
Subsurface scattering texture settings.
  type
Material type.
  unknown
Zero, probably just padding bytes.

Inherited from object: __class__

Class Variable Details [hide private]

_attribute_list

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x2730ed0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2730f50>,
 <pyffi.object_models.xml.StructAttribute object at 0x2738090>,
 <pyffi.object_models.xml.StructAttribute object at 0x27380d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2738110>,
 <pyffi.object_models.xml.StructAttribute object at 0x27381d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2738250>,
 <pyffi.object_models.xml.StructAttribute object at 0x27382d0>,
...

_attrs

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x2730ed0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2730f50>,
 <pyffi.object_models.xml.StructAttribute object at 0x2738090>,
 <pyffi.object_models.xml.StructAttribute object at 0x27380d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2738110>,
 <pyffi.object_models.xml.StructAttribute object at 0x27381d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2738250>,
 <pyffi.object_models.xml.StructAttribute object at 0x27382d0>,
...

_games

Value:
{'Aion': [1863], 'Crysis': [1862], 'Far Cry': [1860, 1861, 1862]}

_names

Value:
['name',
 'reserved',
 'alpha_test',
 'type',
 'col_d',
 'col_s',
 'col_a',
 'unknown',
...

Property Details [hide private]

alpha_test

Unknown.
Get Method:
<functools.partial object at 0x2737e10>
Set Method:
<functools.partial object at 0x2737e68>

children

Links to other material chunks.
Get Method:
<functools.partial object at 0x273d9f0>

col_a

Ambient color.
Get Method:
<functools.partial object at 0x273c260>
Set Method:
<functools.partial object at 0x273c2b8>

col_d

Diffuse color.
Get Method:
<functools.partial object at 0x273c050>
Set Method:
<functools.partial object at 0x273c0a8>

col_s

Specular color.
Get Method:
<functools.partial object at 0x273c158>
Set Method:
<functools.partial object at 0x273c1b0>

dyn_bounce

Set 1.0 to activate collision, 0.0 for walkthrough.
Get Method:
<functools.partial object at 0x273d520>
Set Method:
<functools.partial object at 0x273d578>

dyn_sliding_friction

Get Method:
<functools.partial object at 0x273d730>
Set Method:
<functools.partial object at 0x273d788>

dyn_static_friction

Get Method:
<functools.partial object at 0x273d628>
Set Method:
<functools.partial object at 0x273d680>

flags

Get Method:
<functools.partial object at 0x273d470>

name

Material and shader name.
Get Method:
<functools.partial object at 0x2737c58>
Set Method:
<functools.partial object at 0x2737cb0>

num_children

Get Method:
<functools.partial object at 0x273d838>
Set Method:
<functools.partial object at 0x273d890>

opacity

Opacity.
Get Method:
<functools.partial object at 0x273c730>
Set Method:
<functools.partial object at 0x273c788>

reserved

Reserved.
Get Method:
<functools.partial object at 0x2737d60>

reserved_2

All zero?
Get Method:
<functools.partial object at 0x273d940>

reserved_3

Unknown. Only in Aion.
Get Method:
<functools.partial object at 0x273c838>

self_illum

Self illumination.
Get Method:
<functools.partial object at 0x273c628>
Set Method:
<functools.partial object at 0x273c680>

spec_level

Specular level.
Get Method:
<functools.partial object at 0x273c418>
Set Method:
<functools.partial object at 0x273c470>

spec_shininess

Specular shininess.
Get Method:
<functools.partial object at 0x273c520>
Set Method:
<functools.partial object at 0x273c578>

tex_a

Ambient texture settings.
Get Method:
<functools.partial object at 0x273c8e8>
Set Method:
<functools.partial object at 0x273c940>

tex_b

Bump texture settings.
Get Method:
<functools.partial object at 0x273cd08>
Set Method:
<functools.partial object at 0x273cd60>

tex_c

Cubemap texture settings.
Get Method:
<functools.partial object at 0x273d050>
Set Method:
<functools.partial object at 0x273d0a8>

tex_d

Diffuse texture settings.
Get Method:
<functools.partial object at 0x273c9f0>
Set Method:
<functools.partial object at 0x273ca48>

tex_detail

Detail texture settings.
Get Method:
<functools.partial object at 0x273d368>
Set Method:
<functools.partial object at 0x273d3c0>

tex_f

Filter texture settings.
Get Method:
<functools.partial object at 0x273cf18>
Set Method:
<functools.partial object at 0x273cf70>

tex_g

Gloss texture settings.
Get Method:
<functools.partial object at 0x273ce10>
Set Method:
<functools.partial object at 0x273ce68>

tex_o

Opacity texture settings.
Get Method:
<functools.partial object at 0x273cc00>
Set Method:
<functools.partial object at 0x273cc58>

tex_r

Reflection texture settings.
Get Method:
<functools.partial object at 0x273d158>
Set Method:
<functools.partial object at 0x273d1b0>

tex_s

Specular texture settings.
Get Method:
<functools.partial object at 0x273caf8>
Set Method:
<functools.partial object at 0x273cb50>

tex_subsurf

Subsurface scattering texture settings.
Get Method:
<functools.partial object at 0x273d260>
Set Method:
<functools.partial object at 0x273d2b8>

type

Material type.
Get Method:
<functools.partial object at 0x2737f18>
Set Method:
<functools.partial object at 0x2737f70>

unknown

Zero, probably just padding bytes.
Get Method:
<functools.partial object at 0x273c368>