Difference between revisions of "Template:KMP CAME header"

From Custom Mario Kart
Jump to navigation Jump to search
m (Changed KMP Modifier's values to the ones used in v3.1)
Line 23: Line 23:
 
| Settings<br/>(box 1, second 2 digits)
 
| Settings<br/>(box 1, second 2 digits)
 
| <tt>next</tt>
 
| <tt>next</tt>
| Camera
+
| Next
 
| Next
 
| Next
 
|-
 
|-
Line 135: Line 135:
 
| Z5
 
| Z5
 
| <tt>sec*60</tt>
 
| <tt>sec*60</tt>
| Secs
+
| Time
 
| Time
 
| Time
 
|}
 
|}

Revision as of 12:13, 10 March 2013

CAME entry data structure (0x48 bytes)
Offset Type Description Box name in
SZS Modifier
Names in
Wiimms Tools
Column name in
KMP Modifier
Box name in
KMP Cloud
0x00 byte Camera type. Settings
(box 1, first 2 digits)
type Type Type
0x01 byte Next camera entry index. Value -1 (0xff) means: no next camera. Settings
(box 1, second 2 digits)
next Next Next
0x02 byte Camshake Exact meanings unknown (always 0) Settings
(box 1, third 2 digits)
unknown Shake 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 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) Pointspeed
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) Zoomspeed
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) Viewspeed
0x0a byte Start flag Exact meanings unknown Settings
(box 3, third 2 digits)
unknown Flag
(First 2 digits)
Start
0x0b byte Movie flag Exact meanings unknown Settings
(box 3, last 2 digits)
unknown Flag
(Second 2 digits)
Movie
0x0C vector A 3D position vector of the camera. X, Y and Z position (x,y,z) X, Y and Z PositionX, PositionY and PositionZ
0x18 vector A rotation 3D vector. Almost always 0,0,0. X2, Y2 and Z2 rotation (x,y,z) Roll, Yaw and Pitch RotationX, RotationY and RotationZ
0x24 float Zoom start. It seems to be an angle of view (field of view). Angles >180 creates curios effects. X3 zoom beg Zoom Zoomstart
0x28 float Zoom end. The camera changes the zoom to this value. Offset 0x06 (Velocity) controls the speed of zooming. Y3 zoom end Zoom2 Zoomend
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) ViewStartX, ViewStartY and ViewStartZ
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) ViewEndX, ViewEndY and ViewEndZ
0x44 float The time how long this Camera is active. (in units of 1/60 seconds) Z5 sec*60 Time Time