⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 3dsinfo.txt

📁 这是书上的代码
💻 TXT
📖 第 1 页 / 共 3 页
字号:
Size       : 48
Father     : 0x4100 (Triangular mesh)
Format     :

  vector   X1
  vector   X2
  vector   X3
  vector   O

X1, X2 and X3 represent the axes, O the origin.

-----------------------------------------------------------------------------
Chunk #    : 0x4165
Name       : Object color in 3D Editor
Level      : 4
Size       : 1
Father     : 0x4100 (Triangular mesh)
Format     :

  byte     Color

-----------------------------------------------------------------------------
Chunk #    : 0x4600
Name       : Light
Level      : 3
Size       : 12 + sub-chunks
Father     : 0x4000 (Object block)
Format     :

  vector   Position

-----------------------------------------------------------------------------
Chunk #    : 0x4610
Name       : Spotlight
Level      : 4
Size       : 20 + sub-chunks
Father     : 0x4600 (Light)
Format     :

  vector   Target
  float    HotSpot
  float    FallOff

If this chunk is found, the light is a spot light and not an omni
directional light.

-----------------------------------------------------------------------------
Chunk #    : 0x4651
Name       : Spot is rectangular
Level      : 5
Size       : 0
Father     : 0x4610 (Spotlight)
Format     : BOOLEAN

-----------------------------------------------------------------------------
Chunk #    : 0x4653
Name       : Spot map
Level      : 5
Size       : varying
Father     : 0x4610 (Spotlight)
Format     :

  strz     Filename

-----------------------------------------------------------------------------
Chunk #    : 0x4656
Name       : Spot roll
Level      : 5
Size       : 4
Father     : 0x4610 (Spotlight)
Format     :

  float    Roll (degree)

-----------------------------------------------------------------------------
Chunk #    : 0x4700
Name       : CAMERA
Level      : 3
Size       : 32
Father     : 0x4000 (Object block)
Format     :

  vector   Position
  vector   Target
  float    Bank (degree)
  float    Lens

-----------------------------------------------------------------------------
Chunk #    : 0x7001
Name       : Window settings
Level      : 2
Size       : varying
Father     : 0x3D3D (3D editor chunk)
Format     :

-----------------------------------------------------------------------------
Chunk #    : 0x3D3E
Name       : Mesh version
Level      : 2
Size       : 4
Father     : 0x3D3D (3D editor chunk)
Format     :

  dword    Version

-----------------------------------------------------------------------------

                          0xAFFF : Material block
                          -----------------------

-----------------------------------------------------------------------------
Chunk #    : 0xAFFF
Name       : Material editor chunk
Level      : 2
Size       : 0 + sub-chunks
Father     : 0x3D3D (3D editor chunk)
Format     :

-----------------------------------------------------------------------------
Chunk #    : 0xA000
Name       : Material name
Level      : 3
Size       : varying
Father     : 0xAFFF (Material block)
Format     :

  strz     Material name

-----------------------------------------------------------------------------
Chunk #    : 0xA010
Name       : Material ambient color
Level      : 3
Size       : 0 + sub-chunks
Father     : 0xAFFF (Material block)
Format     :

This chunk contains color chunks (in gen. rgb byte & rgb byte gamma)

-----------------------------------------------------------------------------
Chunk #    : 0xA020
Name       : Material diffuse color
Level      : 3
Size       : 0 + sub-chunks
Father     : 0xAFFF (Material block)
Format     :

This chunk contains color chunks (in gen. rgb byte & rgb byte gamma)

-----------------------------------------------------------------------------
Chunk #    : 0xA030
Name       : Material specular color
Level      : 3
Size       : 0 + sub-chunks
Father     : 0xAFFF (Material block)
Format     :

This chunk contains color chunks (in gen. rgb byte & rgb byte gamma)

-----------------------------------------------------------------------------
Chunk #    : 0xA040
Name       : Material shininess percent
Level      : 3
Size       : 0 + sub-chunk
Father     : 0xAFFF (Material block)
Format     :

This chunk contains a percent chunk (in gen. int format)

-----------------------------------------------------------------------------
Chunk #    : 0xA041
Name       : Material shininess strength percent
Level      : 3
Size       : 0 + sub-chunk
Father     : 0xAFFF (Material block)
Format     :

This chunk contains a percent chunk (in gen. int format)

-----------------------------------------------------------------------------
Chunk #    : 0xA200 - 0xA34C
Name       : Map
Level      : 3
Size       : 0 + sub-chunk
Father     : 0xAFFF (Material block)
Format     :

These chunks define the different maps (see chunk tree). They contain the
sub-chunks for all maps, such as mapping filename name or U/V scale.

-----------------------------------------------------------------------------
Chunk #    : 0xA300
Name       : Mapping filename
Level      : 4
Size       : varying
Father     : 0xA200 - 0xA34C (Map)
Format     :

  strz     Filename

-----------------------------------------------------------------------------
Chunk #    : 0xA354
Name       : V scale
Level      : 4
Size       : 4
Father     : 0xA200 - 0xA34C (Map)
Format     :

  float    V scale

-----------------------------------------------------------------------------
Chunk #    : 0xA356
Name       : U scale
Level      : 4
Size       : 4
Father     : 0xA200 - 0xA34C (Map)
Format     :

  float    U scale

-----------------------------------------------------------------------------
Chunk #    : 0xA358
Name       : U offst
Level      : 4
Size       : 4
Father     : 0xA200 - 0xA34C (Map)
Format     :

  float    U offset

-----------------------------------------------------------------------------
Chunk #    : 0xA35A
Name       : V offst
Level      : 4
Size       : 4
Father     : 0xA200 - 0xA34C (Map)
Format     :

  float    V offset

-----------------------------------------------------------------------------
Chunk #    : 0xA35A
Name       : Rotation angle
Level      : 4
Size       : 4
Father     : 0xA200 - 0xA34C (Map)
Format     :

  float    Rotation angle

-----------------------------------------------------------------------------

                      K E Y F R A M E R    C H U N K
                      ------------------------------

-----------------------------------------------------------------------------
Chunk #    : 0xB000
Name       : Keyframer
Level      : 1
Size       : 0 + sub-chunks
Father     : 0x4D4D (Main chunk)
Format     :

The goal of the keyframer datas is to describe the move of
 - The objects in the scene (like a cube ...)
 - The lights (ambient, omni or spot)
 - The cameras

-----------------------------------------------------------------------------
Chunk #    : 0xB001..0xB007
Name       : Information block
Level      : 2
Size       : 0 + sub-chunks
Father     : 0xB000 (Keyframer chunk)
Format     :

The information block is a chunk constituted of sub-chunks describing the
move of a particular object, or camera:

  0xB001 : Ambient light information block
  0xB002 : Mesh information block
  0xB003 : Camera information block
  0xB004 : Camera target information block
  0xB005 : Omni light information block
  0xB006 : Spot light target information block
  0xB007 : Spot light information block

-----------------------------------------------------------------------------
Chunk #    : 0xB008
Name       : Frames (Start and End)
Level      : 2
Size       : 8
Father     : 0xB000 (Keyframer chunk)
Format     :

  dword    Start
  dword    End

-----------------------------------------------------------------------------
Chunk #    : 0xB010
Name       : Object name, parameters and hierarchy father
Level      : 3
Size       : varying
Father     : 0xB001..0xB007 Information block
Format     :

  strz     Object Name
  word     Flag1
            * Bit 11 : Hidden
  word     Flag2
            * Bit 0 : Show path
            * Bit 1 : Animate smoothing
            * Bit 4 : Object motion blur
            * Bit 6 : Morph materials
  word     Hierarchy father, link to the parent object (-1 for none)

-----------------------------------------------------------------------------
Chunk #    : 0xB013
Name       : Object pivot point
Level      : 3
Size       : 12
Father     : 0xB001..0xB007 Information block
Format     :

  vector   Pivot point

-----------------------------------------------------------------------------
Chunk #    : 0xB020..0xB029
Name       : Track
Level      : 3
Size       : varying
Father     : 0xB001..0xB007 Information block
Format     :

  word     Flag
            * Bits 0-1 : 0 = single
                         2 = repeat
                         3 = loop

            * Bit 3 : lock X
            * Bit 4 : lock Y
            * Bit 5 : lock Z

            * Bit 7 : unlink X
            * Bit 8 : unlink Y
            * Bit 9 : unlink Z

  8 byte   Unknown
  dword    Number of keys in this track

           Then, for each key:
  dword    Key number (position in track)
  word     Acceleration data present (flag)   Range:
            * Bit 0 : Tension follows         [-1.0, 1.0]
            * Bit 1 : Continuity follows      [-1.0, 1.0]
            * Bit 2 : Bias follows            [-1.0, 1.0]
            * Bit 3 : Ease to follows         [ 0.0, 1.0]
            * Bit 4 : Ease from follows       [ 0.0, 1.0]
  n floats Acceleration data
  ?        Track specific data

  Track specific data is:
   0xB020 : Position track : 1 vector   Position
   0xB021 : Rotation track : 1 float    Angle (rad)
                             1 vector   Axis
   0xB022 : Scale track    : 3 floats   Size
   0xB023 : FOV track      : 1 float    Angle (degree)
   0xB024 : Roll track     : 1 float    Angle (degree)
   0xB025 : Color track    :
   0xB026 : Morph track    : 1 strz     Object name
   0xB027 : Hotspot track  : 1 float    Angle (degree)
   0xB028 : Falloff track  : 1 float    Angle (degree)
   0xB029 : Hide track     : nothing


-----------------------------------------------------------------------------
Chunk #    : 0xB030
Name       : Hierarchy position
Level      : 3
Size       : 2
Father     : 0xB001..0xB007 Information block
Format     :

  word     Hierarchy

This word contains a unique value for the object and is used for the
hierarchy tree links.

-----------------------------------------------------------------------------
<end>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -