Package pyffi :: Package formats :: Package nif :: Class NifFormat :: Class TexDesc
[hide private]
[frames] | no frames]

Class TexDesc

source code

                  object --+            
                           |            
      utils.graph.DetailNode --+        
                               |        
          utils.graph.GlobalNode --+    
                                   |    
object_models.xml.struct_.StructBase --+
                                       |
                                      NifFormat.TexDesc

Texture description.
Nested Classes [hide private]

Inherited from object_models.xml.struct_.StructBase: __metaclass__

Instance Methods [hide private]

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, tree, 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...
  _has_links = True
  _has_refs = True
  _names = ['source', 'clamp_mode', 'filter_mode', 'flags', 'unk...

Inherited from object_models.xml.struct_.StructBase: arg

Properties [hide private]
  center_offset
The offset from the origin?
  clamp_mode
0=clamp S clamp T, 1=clamp S wrap T, 2=wrap S clamp T, 3=wrap S wrap T
  filter_mode
0=nearest, 1=bilinear, 2=trilinear, 3=..., 4=..., 5=...
  flags
Texture mode flags; clamp and filter mode stored in upper byte with 0xYZ00 = clamp mode Y, filter mode Z.
  has_texture_transform
Determines whether or not the texture's coordinates are transformed.
  ps_2_k
PS2 only; from the Freedom Force docs,"The K value is used as an offset into the mipmap levels and can range from -2047 to 2047.
  ps_2_l
PS2 only; from the Freedom Force docs,"L values can range from 0 to 3 and are used to specify how fast a texture gets blurry".
  source
NiSourceTexture object index.
  tiling
The number of times the texture is tiled in each direction?
  transform_type
The texture transform type? Doesn't seem to do anything.
  translation
The amount to translate the texture coordinates in each direction?
  unknown_1
Unknown, 0 or 0x0101?
  unknown_short
Unknown, seems to always be 1
  uv_set
The texture coordinate set in NiGeometryData that this texture slot will use.
  w_rotation
2D Rotation of texture image around third W axis after U and V.

Inherited from object: __class__

Class Variable Details [hide private]

_attribute_list

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x2c2a450>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c2a4d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c2a550>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c2a510>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c2a590>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c2a5d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c2a610>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c2a650>,
...

_attrs

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x2c2a450>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c2a4d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c2a550>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c2a510>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c2a590>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c2a5d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c2a610>,
 <pyffi.object_models.xml.StructAttribute object at 0x2c2a650>,
...

_names

Value:
['source',
 'clamp_mode',
 'filter_mode',
 'flags',
 'unknown_short',
 'uv_set',
 'ps_2_l',
 'ps_2_k',
...

Property Details [hide private]

center_offset

The offset from the origin?
Get Method:
<functools.partial object at 0x2c2e100>
Set Method:
<functools.partial object at 0x2c2e158>

clamp_mode

0=clamp S clamp T, 1=clamp S wrap T, 2=wrap S clamp T, 3=wrap S wrap T
Get Method:
<functools.partial object at 0x2c2c368>
Set Method:
<functools.partial object at 0x2c2c3c0>

filter_mode

0=nearest, 1=bilinear, 2=trilinear, 3=..., 4=..., 5=...
Get Method:
<functools.partial object at 0x2c2c470>
Set Method:
<functools.partial object at 0x2c2c4c8>

flags

Texture mode flags; clamp and filter mode stored in upper byte with 0xYZ00 = clamp mode Y, filter mode Z.
Get Method:
<functools.partial object at 0x2c2c578>
Set Method:
<functools.partial object at 0x2c2c5d0>

has_texture_transform

Determines whether or not the texture's coordinates are transformed.
Get Method:
<functools.partial object at 0x2c2cba8>
Set Method:
<functools.partial object at 0x2c2cc00>

ps_2_k

PS2 only; from the Freedom Force docs,"The K value is used as an offset into the mipmap levels and can range from -2047 to 2047. Positive values push the mipmap towards being blurry and negative values make the mipmap sharper."-75 for most v4.0.0.2 meshes.
Get Method:
<functools.partial object at 0x2c2c998>
Set Method:
<functools.partial object at 0x2c2c9f0>

ps_2_l

PS2 only; from the Freedom Force docs,"L values can range from 0 to 3 and are used to specify how fast a texture gets blurry".
Get Method:
<functools.partial object at 0x2c2c890>
Set Method:
<functools.partial object at 0x2c2c8e8>

source

NiSourceTexture object index.
Get Method:
<functools.partial object at 0x2c2c260>
Set Method:
<functools.partial object at 0x2c2c2b8>

tiling

The number of times the texture is tiled in each direction?
Get Method:
<functools.partial object at 0x2c2cdb8>
Set Method:
<functools.partial object at 0x2c2ce10>

transform_type

The texture transform type? Doesn't seem to do anything.
Get Method:
<functools.partial object at 0x2c2cfc8>
Set Method:
<functools.partial object at 0x2c2e050>

translation

The amount to translate the texture coordinates in each direction?
Get Method:
<functools.partial object at 0x2c2ccb0>
Set Method:
<functools.partial object at 0x2c2cd08>

unknown_1

Unknown, 0 or 0x0101?
Get Method:
<functools.partial object at 0x2c2caa0>
Set Method:
<functools.partial object at 0x2c2caf8>

unknown_short

Unknown, seems to always be 1
Get Method:
<functools.partial object at 0x2c2c680>
Set Method:
<functools.partial object at 0x2c2c6d8>

uv_set

The texture coordinate set in NiGeometryData that this texture slot will use.
Get Method:
<functools.partial object at 0x2c2c788>
Set Method:
<functools.partial object at 0x2c2c7e0>

w_rotation

2D Rotation of texture image around third W axis after U and V.
Get Method:
<functools.partial object at 0x2c2cec0>
Set Method:
<functools.partial object at 0x2c2cf18>