EvilEngine/CCRV: Difference between revisions
Content added Content deleted
EnergyDrink (talk | contribs) m (ratproto) |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 9: | Line 9: | ||
</onlyinclude> |
</onlyinclude> |
||
{{AutoAssetInfobox}} |
{{AutoAssetInfobox}} |
||
==Format== |
|||
CCRV are [[Base|base assets]], so they start with their 0x8 byte header, then are followed by: |
|||
<source lang=cpp> |
|||
struct zCameraCurveAsset : xBaseAsset |
|||
{ |
|||
private: |
|||
unsigned char mVersion; |
|||
unsigned char pad[3]; |
|||
int mCameraType; |
|||
unsigned int mFlags; |
|||
int mTransitionType; |
|||
float mTransitionTime; |
|||
unsigned int mCurveID[2]; |
|||
int mNumBeads; |
|||
}; |
|||
</source> |
|||
===zCameraCurveAsset=== |
|||
{| class="wikitable" |
|||
! Offset !! Type !! Variable !! Description |
|||
|- |
|||
| 0x08 || u8 || '''mVersion''' || |
|||
|- |
|||
| 0x09 || u8[3] || '''padding''' || |
|||
|- |
|||
| 0x0C || s32 || '''mCameraType''' || |
|||
|- |
|||
| 0x10 || u32 || '''mFlags''' || |
|||
|- |
|||
| 0x14 || s32 || '''mTransitionType''' || |
|||
|- |
|||
| 0x18 || f32 || '''mTransitionTime''' || |
|||
|- |
|||
| 0x1C || [[AssetID]] || '''mCurveID1''' || |
|||
|- |
|||
| 0x20 || [[AssetID]] || '''mCurveID2''' || |
|||
|- |
|||
| 0x24 || s32 || '''mNumBeads''' || |
|||
|} |
|||
<source lang=cpp> |
|||
struct zCameraCurveBead |
|||
{ |
|||
float mCurveU[2]; |
|||
float mDistanceAdjust; |
|||
float mPitchOffset; |
|||
float mTargetRadius; |
|||
float mTargetMarginAngle; |
|||
float mLeadOffset; |
|||
float mYOffset; |
|||
float mNearWallAdjust |
|||
float mFarWallAdjust; |
|||
}; |
|||
</source> |
|||
===zCameraCurveBead=== |
|||
{| class="wikitable" |
|||
! Offset !! Type !! Variable !! Description |
|||
|- |
|||
| 0x00 || f32 || '''mCurveU1''' || |
|||
|- |
|||
| 0x04 || f32 || '''mCurveU2''' || |
|||
|- |
|||
| 0x08 || f32 || '''mDistanceAdjust''' || |
|||
|- |
|||
| 0x0C || f32 || '''mPitchOffset''' || |
|||
|- |
|||
| 0x10 || f32 || '''mTargetRadius''' || |
|||
|- |
|||
| 0x14 || f32 || '''mTargetMarginAngle''' || |
|||
|- |
|||
| 0x18 || f32 || '''mLeadOffset''' || |
|||
|- |
|||
| 0x1C || f32 || '''mYOffset''' || |
|||
|- |
|||
| 0x20 || f32 || '''mNearWallAdjust''' || |
|||
|- |
|||
| 0x24 || f32 || '''mFarWallAdjust''' || |
|||
|} |
|||
{{Assets}} |
{{Assets}} |
Latest revision as of 19:14, 12 October 2023
CCRV | |
---|---|
Camera Curve | |
Type | Base |
Base Type | 0x8D |
Games used | Rise of the Underminer Ratatouille Prototype |
Format
CCRV are base assets, so they start with their 0x8 byte header, then are followed by:
struct zCameraCurveAsset : xBaseAsset
{
private:
unsigned char mVersion;
unsigned char pad[3];
int mCameraType;
unsigned int mFlags;
int mTransitionType;
float mTransitionTime;
unsigned int mCurveID[2];
int mNumBeads;
};
zCameraCurveAsset
Offset | Type | Variable | Description |
---|---|---|---|
0x08 | u8 | mVersion | |
0x09 | u8[3] | padding | |
0x0C | s32 | mCameraType | |
0x10 | u32 | mFlags | |
0x14 | s32 | mTransitionType | |
0x18 | f32 | mTransitionTime | |
0x1C | AssetID | mCurveID1 | |
0x20 | AssetID | mCurveID2 | |
0x24 | s32 | mNumBeads |
struct zCameraCurveBead
{
float mCurveU[2];
float mDistanceAdjust;
float mPitchOffset;
float mTargetRadius;
float mTargetMarginAngle;
float mLeadOffset;
float mYOffset;
float mNearWallAdjust
float mFarWallAdjust;
};
zCameraCurveBead
Offset | Type | Variable | Description |
---|---|---|---|
0x00 | f32 | mCurveU1 | |
0x04 | f32 | mCurveU2 | |
0x08 | f32 | mDistanceAdjust | |
0x0C | f32 | mPitchOffset | |
0x10 | f32 | mTargetRadius | |
0x14 | f32 | mTargetMarginAngle | |
0x18 | f32 | mLeadOffset | |
0x1C | f32 | mYOffset | |
0x20 | f32 | mNearWallAdjust | |
0x24 | f32 | mFarWallAdjust |