EvilEngine/FLY: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
No edit summary
Line 16: Line 16:


<source lang=cpp>
<source lang=cpp>
struct flyKeyFrame
struct zFlyKey
{
{
int32 frame;
UInt32 frameNumber;
float cameraNormalizedLeft[3];
float cameraNormalizedRight[3];
float cameraNormalizedUp[3];
float cameraNormalizedUp[3];
float cameraNormalizedBackward[3];
float cameraNormalizedBackward[3];
float cameraPosition[3];
float cameraPosition[3];
float unknown[3];
float aperture[2];
float focal;
};
};
</source>
</source>

Revision as of 23:07, 19 June 2022

FLY
Flythrough
TypeBinary
Games usedBattle for Bikini Bottom
The SpongeBob SquarePants Movie
Source codezCamera.h

A Flythrough defines a path for the camera to move around a level. It is made up of individual points, each point defining the transform for the camera at a specified time. The time is measured in frames. 30 frames = 1 second.

Format

Flythroughs are stored in little-endian. There is no header, it is simply made up of the following struct which repeats until the end of the file. The total length in frames is the frame number of the last struct in the file. Each entry is 64 (0x40 hex) bytes long.

struct zFlyKey
{
	int32 frame;
	float cameraNormalizedRight[3];
	float cameraNormalizedUp[3];
	float cameraNormalizedBackward[3];
	float cameraPosition[3];
	float aperture[2];
    float focal;
};