Tes4Mod:Mod File Format/TREE

The UESPWiki – Your source for The Elder Scrolls since 1995

Jump to: navigation, search

A TREE record defines a tree. For TESCS parameter descriptions, see CSWiki: Tree.

Subrecord Type Info
EDID zstring Container editor ID
MODL zstring Model filename
MODB unknown Follows MODL subrecord
ICON zstring Leaf texture map file name.
SNAM struct? Short + n ints?
CNAM struct? Short + n floats? (usually? 8 floats)
BNAM struct? Short + n floats? (usually? 2 floats)

It's been suggested that the last three parameters all start with a short indicating the byte length of the rest of the data. However, such a length parameter would be unnecessary (the length of the field is known, so simply divide by four to get the number of elements. OTOH, perhaps the unnecessary dats is included because it's a dump of the native format of a "speedtree" application.

Example

Chunk name: TREE
Chunk name: EDID
25
0ulsvTreeEastHemlockSnow
Chunk name: MODL
25
\TreeEastHemlockSnow.spt
Chunk name: MODB
4
1146.751465
Chunk name: ICON
30
TreeEastHemlockLeavesSnow.dds
Chunk name: SNAM
4
953971
Chunk name: CNAM
32
2.500000
5.000000
85.000000
0.500000
0.700000
0.000000
1.000000
1.200000
Chunk name: BNAM
8
950.000000
950.000000
Sponsored Links
Personal tools