Template:KMP CAME header

From Custom Mario Kart
Revision as of 20:45, 28 June 2012 by Wiimm (talk | contribs)
Jump to navigation Jump to search
CAME entry data structure (0x48 bytes)
Offset Type Description Box name in
SZS Modifier
Names in
Wiimms Tools
Column name in
KMP Modifier
0x00 byte Camera type. Settings
(box 1, first 2 digits)
type Type
0x01 byte Next camera entry index. Value -1 (0xff) means: no next camera. Settings
(box 1, second 2 digits)
next Camera
0x02 byte Camshake Exact meanings unknown (always 0) Settings
(box 1, third 2 digits)
unknown Shake
0x03 byte Route used by the camera. This is index link into the POTI section. The value 0xff (-1) means "no route". Settings
(box 1, last 2 digits)
route Route
0x04 short Velocity of the camara point in units per 100/60 sec (=distance/1.67 sec) Settings
(box 2, first 4 digits)
v(came) V(Cam)
0x06 short Velocity of zooming in units per 100/60 sec (=units/1.67 sec) (tested with camera type 5). Settings
(box 2, last 4 digits)
v(zoom) V(Zoom)
0x08 short Velocity of the view point in distance per 100/60 sec (=distance/1.67 sec) (tested with camera type 5). Settings
(box 3, first 4 digits)
v(v.pt) V(View)
0x0a byte Start flag Exact meanings unknown Settings
(box 3, third 2 digits)
unknown Flag
(First 2 digits)
0x0b byte Movie flag Exact meanings unknown Settings
(box 3, last 2 digits)
unknown Flag
(Second 2 digits)
0x0C vector A 3D position vector of the camera. X, Y and Z position (x,y,z) X, Y and Z
0x18 vector A rotation 3D vector. Almost always 0,0,0. X2, Y2 and Z2 rotation (x,y,z) Roll, Yaw and Pitch
0x24 float Zoom start. It seems to be an angle of view (field of view). Angles >180 creates curios effects. X3 zoom beg Zoom
0x28 float Zoom end. The camera changes the zoom to this value. Offset 0x06 (Velocity) controls the speed of zooming. Y3 zoom end Zoom2
0x2C vector Start vector of the view point (05) or the relative camera position (03) Z3, X4 and Y4 view point beg (x,y,z) View(x), View(y) and View(z)
0x38 vector (Destination) vector of the view point Z4, X5 and Y5 view point end (x,y,z) View2(x), View2(y) and View2(z)
0x44 float The time how long this Camera is active. (in units of 1/60 seconds) Z5 sec*60 Secs