OBD:Data types

From OniGalore
Revision as of 15:57, 21 March 2007 by Geyser (talk | contribs) (to be completed...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Strings

16 chars

32 chars

64 chars


Floats

Float

4-byte IEEE float

Vector

3 floats define a vector in 3D space

Axis-aligned bounding box

2 vectors define a min corner and a max corner

Plane

4 floats define an oriented plane in 3D

Quaternion

4 floats define a quaternion

(always normalized, i.e., rotation w/o scaling?)

Transformation matrix

12 floats define a 4x4 transformation matrix

(translation, rotation, scaling, mirroring)



Integers

Mostly non-negative indices, so possibly unsigned.

One known exception: the quantized Euler angles in TRAM

short

long

flagged long

The lower bits are used for an ID, the high bit is a flag

quantized float

e.g., quantized Euler angles in TRAM_



Bitsets

1 byte

2 bytes

4 bytes

8 bytes