course_mapcamera.bin (File Format)

From Wexos's Wiki
(Redirected from Course mapcamera.bin)
Jump to navigationJump to search

course_mapcamera.bin is a file found in Mario Kart 8 and Mario Kart 8 Deluxe. It is used on tracks and battle arenas, and it contains camera projection values for the position of the characters and miscellaneous icons on the minimap, rendered in 3D space.

File Format

For Mario Kart 8 the file byte order is always big endian, while for Mario Kart 8 Deluxe it is always little endian. The file is always 0x2D bytes long.

Offset Type Description
0x00 Float[3] Position of the camera.
0x0C Float[3] Position of the camera's target.
0x18 Float[3] Normal vector of the camera's angle. Always (0,1,0).
0x24 Float[2] It seems to be width and height of the minimap space.
0x2C Byte Unknown. Probably camera mode, always 0x0A.

Getting the values from 3ds Max

To get the values from 3ds Max, it is necessary to use the following camera settings:

  • Ortographical projection.
  • Field of View = 150 degrees.

The values from 0x24 (width and height) are calculated by multiplying the target distance by 7.44.

Tools

The following tools can handle course_mapcamera.bin files:

  • (none)