Fandom

HD2 Wiki

5DS

37pages on
this wiki
Add New Page
Comments0 Share

Introduction Edit

The 5DS file format is used to store animations of a corresponding 4DS file.

Structure Edit

ToDo..

File Header Edit

Description Example
STRING file format "5DS"
16-bit INT file version 122 = 122/100 = 1.22
64-bit INT timestamp
32-bit INT data section size

Data Section Edit

Description Example
16-bit INT number of objects animated
16-bit INT animation range (last frame)

Offset Table Edit

Description Example
32-bit INT offset to object name
32-bit INT offset to object animation data

Animation Data Edit

Animation key flags
Flag Key type
0x02 position key
0x04 rotation key
0x08 scale key
Description Example
32-bit INT animation flag
rotation keys
16-bit INT number of frames
Nx 16-bit INT frames
PADDING 16 - (offset % 16)
Nx (4x 32-bit FLOAT) rotation key values: x, y, z, w
position keys
16-bit INT number of frames
Nx 16-bit INT frames
PADDING if N even: 2 else: 0
Nx (3x 32-bit FLOAT) position key values: x, y, z
scale keys
16-bit INT number of frames
Nx 16-bit INT frames
PADDING if N even: 2 else 0
Nx (3x 32-bit FLOAT) scale key values: x, y, z

Object Table Edit

Description Example
STRING object name (null terminated)

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.