Difference between revisions of "Template:KMP CAME header"

From Custom Mario Kart
Jump to navigation Jump to search
Line 8: Line 8:
 
! Names in<br/>[[Wiimms SZS Tools|Wiimms Tools]]
 
! Names in<br/>[[Wiimms SZS Tools|Wiimms Tools]]
 
! Column name in<br/>[[KMP Modifier]]
 
! Column name in<br/>[[KMP Modifier]]
 +
! Box name in<br />[[KMP Cloud]]
 
|-
 
|-
 
| 0x00
 
| 0x00
Line 14: Line 15:
 
| Settings<br/>(box 1, first 2 digits)
 
| Settings<br/>(box 1, first 2 digits)
 
| <tt>type</tt>
 
| <tt>type</tt>
 +
| Type
 
| Type
 
| Type
 
|-
 
|-
Line 22: Line 24:
 
| <tt>next</tt>
 
| <tt>next</tt>
 
| Camera
 
| Camera
 +
| Next
 
|-
 
|-
 
| 0x02
 
| 0x02
Line 28: Line 31:
 
| Settings<br/>(box 1, third 2 digits)
 
| Settings<br/>(box 1, third 2 digits)
 
| <tt>unknown</tt>
 
| <tt>unknown</tt>
 +
| Shake
 
| Shake
 
| Shake
 
|-
 
|-
Line 35: Line 39:
 
| Settings<br/>(box 1, last 2 digits)
 
| Settings<br/>(box 1, last 2 digits)
 
| <tt>route</tt>
 
| <tt>route</tt>
 +
| Route
 
| Route
 
| Route
 
|-
 
|-
Line 43: Line 48:
 
| <tt>v(came)</tt>
 
| <tt>v(came)</tt>
 
| V(Cam)
 
| V(Cam)
 +
| Pointspeed
 
|-
 
|-
 
| 0x06
 
| 0x06
Line 50: Line 56:
 
| <tt>v(zoom)</tt>
 
| <tt>v(zoom)</tt>
 
| V(Zoom)
 
| V(Zoom)
 +
| Zoomspeed
 
|-
 
|-
 
| 0x08
 
| 0x08
Line 57: Line 64:
 
| <tt>v(v.pt)</tt>
 
| <tt>v(v.pt)</tt>
 
| V(View)
 
| V(View)
 +
| Viewspeed
 
|-
 
|-
 
| 0x0a
 
| 0x0a
Line 64: Line 72:
 
| <tt>unknown</tt>
 
| <tt>unknown</tt>
 
| Flag<br/>(First 2 digits)
 
| Flag<br/>(First 2 digits)
 +
| Start
 
|-
 
|-
 
| 0x0b
 
| 0x0b
Line 71: Line 80:
 
| <tt>unknown</tt>
 
| <tt>unknown</tt>
 
| Flag<br/>(Second 2 digits)
 
| Flag<br/>(Second 2 digits)
 +
| Movie
 
|-
 
|-
 
| 0x0C
 
| 0x0C
Line 78: Line 88:
 
| <tt>position (x,y,z)</tt>
 
| <tt>position (x,y,z)</tt>
 
| X, Y and Z
 
| X, Y and Z
 +
| PositionX, PositionY and PositionZ
 
|-
 
|-
 
| 0x18
 
| 0x18
Line 85: Line 96:
 
| <tt>rotation (x,y,z)</tt>
 
| <tt>rotation (x,y,z)</tt>
 
| Roll, Yaw and Pitch
 
| Roll, Yaw and Pitch
 +
| RotationX, RotationY and RotationZ
 
|-
 
|-
 
| 0x24
 
| 0x24
Line 92: Line 104:
 
| <tt>zoom beg</tt>
 
| <tt>zoom beg</tt>
 
| Zoom
 
| Zoom
 +
| Zoomstart
 
|-
 
|-
 
| 0x28
 
| 0x28
Line 99: Line 112:
 
| <tt>zoom end</tt>
 
| <tt>zoom end</tt>
 
| Zoom2
 
| Zoom2
 +
| Zoomend
 
|-
 
|-
 
| 0x2C
 
| 0x2C
Line 106: Line 120:
 
| <tt>view point beg (x,y,z)</tt>
 
| <tt>view point beg (x,y,z)</tt>
 
| View(x), View(y) and View(z)
 
| View(x), View(y) and View(z)
 +
| ViewStartX, ViewStartY and ViewStartZ
 
|-
 
|-
 
| 0x38
 
| 0x38
Line 113: Line 128:
 
| <tt>view point end (x,y,z)</tt>
 
| <tt>view point end (x,y,z)</tt>
 
| View2(x), View2(y) and View2(z)
 
| View2(x), View2(y) and View2(z)
 +
| ViewEndX, ViewEndY and ViewEndZ
 
|-
 
|-
 
| 0x44
 
| 0x44
Line 120: Line 136:
 
| <tt>sec*60</tt>
 
| <tt>sec*60</tt>
 
| Secs
 
| Secs
 +
| Time
 
|}
 
|}

Revision as of 13:08, 4 July 2012

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 Camera 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 Secs Time