home *** CD-ROM | disk | FTP | other *** search
/ Xentax forum attachments archive / xentax.7z / 11459 / CryImport.7z / include / CAF_headers_.ms < prev    next >
Encoding:
Text File  |  2016-06-22  |  5.4 KB  |  163 lines

  1.  
  2. --/////////////////////////// CAF Headers ///////////////////////////
  3.  
  4.  
  5. struct MotionParams905
  6. (
  7.     chunkID                            = 0,
  8.     
  9.     m_nAssetFlags                 = 0, --uint32 
  10.     m_nCompression                 = 0, --uint32 
  11.  
  12.     m_nTicksPerFrame             = 0, --int32   --//!< Unused (always assumed to be 1).
  13.     m_fSecsPerTick                 = 0, --f32    --//!< Unused (always assumed to be 1/30).
  14.     m_nStart                         = 0, --int32 
  15.     m_nEnd                             = 0, --int32 
  16.  
  17.     m_fMoveSpeed                 = 0, --f32
  18.     m_fTurnSpeed                 = 0, --f32
  19.     m_fAssetTurn                     = 0, --f32
  20.     m_fDistance                     = 0, --f32
  21.     m_fSlope                         = 0, --f32
  22.  
  23.     
  24.     m_StartLocation                 = quat 0 0 0 0, --QuatT --quaternion with Translation vector  (translation vector below)
  25.         T_StartLocation                = point3,
  26.     
  27.     m_EndLocation                 = quat 0 0 0 0, --QuatT --quaternion with Translation vector (translation vector below)
  28.         T_EndLocation                    = point3,
  29.  
  30.     
  31.     m_LHeelStart                     = 0, --f32
  32.     m_LHeelEnd                     = 0, --f32
  33.     
  34.     m_LToe0Start                 = 0, --f32
  35.     m_LToe0End                     = 0, --f32
  36.     
  37.     m_RHeelStart                     = 0, --f32
  38.     m_RHeelEnd                     = 0, --f32
  39.     
  40.     m_RToe0Start                 = 0, --f32
  41.     m_RToe0End                     = 0 --f32
  42.  
  43. --     MotionParams905()
  44. --     {
  45. --         m_nAssetFlags    = 0;
  46. --         m_nCompression   = -1;
  47. --         m_nTicksPerFrame = 0;
  48. --         m_fSecsPerTick   = 0;
  49. --         m_nStart         = 0;
  50. --         m_nEnd           = 0;
  51.  
  52. --         m_fMoveSpeed = -1;
  53. --         m_fTurnSpeed = -1;
  54. --         m_fAssetTurn = -1;
  55. --         m_fDistance  = -1;
  56. --         m_fSlope     = -1;
  57.  
  58. --         m_LHeelStart = -1;
  59. --         m_LHeelEnd   = -1;
  60. --         m_LToe0Start = -1;
  61. --         m_LToe0End   = -1;
  62. --         m_RHeelStart = -1;
  63. --         m_RHeelEnd   = -1;
  64. --         m_RToe0Start = -1;
  65. --         m_RToe0End   = -1;
  66.  
  67. --         m_StartLocation.SetIdentity();
  68. --         m_EndLocation.SetIdentity();
  69. --     }
  70. )
  71.  
  72. struct CHUNK_GAHCAF_INFO
  73. (
  74. --     enum {VERSION = 0x0971};
  75. --     enum {FILEPATH_SIZE = 256};
  76.     
  77.     chunkID                                = 0,
  78.  
  79.     m_Flags                             = 0,     --uint32 
  80.     m_FilePath                             = "", --char string m_FilePath[FILEPATH_SIZE]
  81.             FILEPATH_SIZE             = 256,
  82.     
  83.     m_FilePathCRC32                 = 0,     --uint32 
  84.     m_FilePathDBACRC32             = 0,     --uint32 
  85.  
  86.     m_LHeelStart                         = 0, --f32
  87.     m_LHeelEnd                         = 0, --f32
  88.     
  89.     m_LToe0Start                     = 0, --f32
  90.     m_LToe0End                         = 0, --f32
  91.     
  92.     m_RHeelStart                         = 0, --f32
  93.     m_RHeelEnd                         = 0, --f32
  94.     
  95.     m_RToe0Start                     = 0, --f32
  96.     m_RToe0End                         = 0, --f32    
  97.     
  98.  
  99.     m_fStartSec                         = 0, --f32         --//!< Asset-feature: Start time in seconds.
  100.     m_fEndSec                         = 0, --f32           --//!< Asset-feature: End time in seconds.
  101.     m_fTotalDuration                 = 0, --f32    --//!< Asset-feature: asset-feature: total duration in seconds.
  102.     m_nControllers                     = 0,     --uint32 
  103.  
  104.     m_StartLocation                     = quat 0 0 0 0,      --//!< Locator information. --QuatT  --QuatT --quaternion with Translation vector  (translation vector below)
  105.         T_m_StartLocation                = point3,
  106.     
  107.     m_LastLocatorKey                 = quat 0 0 0 0,     --//!< Locator information. --QuatT  --QuatT --quaternion with Translation vector  (translation vector below)
  108.         T_LastLocatorKey                = point3,
  109.  
  110.     m_vVelocity                         = point3,           --//!< Asset-feature: the velocity vector for this asset.
  111.     m_fDistance                         = 0, --f32           --//!< Asset-feature: the absolute distance this objects is moving.
  112.     m_fSpeed                             = 0, --f32              --//!< Asset-feature: speed (meters in second).
  113.     m_fSlope                             = 0, --f32              --//!< Asset-feature: uphill-downhill measured in degrees.
  114.     m_fTurnSpeed                     = 0, --f32          --//!< Asset-feature: turning speed per second.
  115.     m_fAssetTurn                         = 0 --f32          --//!< Asset-feature: radiant between first and last frame.
  116. )
  117.  
  118. --It looks like two Vec3's
  119. struct ChunkType_BspTreeData
  120. (
  121.     chunkID            = 0,
  122.     
  123.     vec3_a             = point3,
  124.     vec3_b             = point3
  125. )
  126.  
  127. --See CryHeaders.h 983
  128. -- //! Compressed PQ animation controller chunk (position + scale). Used in .caf files.
  129. -- //! The chunk payload has the following structure:
  130. -- //! - rotation value keys.
  131. -- //! - rotation time keys.
  132. -- //! - position value keys.
  133. -- //! - position time keys (optional).
  134. -- //! The number of keys and their binary representations are specified by this descriptor.
  135. struct CONTROLLER_CHUNK_DESC_0829
  136. (
  137. --     enum { VERSION = 0x0829 };
  138.  
  139. --     enum { eKeyTimeRotation = 0, eKeyTimePosition = 1 };
  140.  
  141.     chunkID                                    = 0,
  142.     
  143.     nControllerId                             = 0,     --uint32    --//!< Unique controller ID (crc32 of the bone name).
  144.  
  145.     numRotationKeys                     = 0,     --uint16    --//!< Number of rotation keys stored within this chunk.
  146.     numPositionKeys                         = 0,     --uint16    --//!< Number of position keys stored within this chunk.
  147.     
  148.     RotationFormat                         = 0,     --uint8     --//!< Format identifier of the rotation value keys (see: ECompressionInformation enumeration type).
  149.     RotationTimeFormat                     = 0,    --uint8     --//!< Format identifier of the rotation time keys (see: EKeyTimesFormat enumeration type).
  150.     PositionFormat                         = 0,    --uint8     --//!< Format identifier of the position value keys (see: ECompressionInformation enumeration type).
  151.     PositionKeysInfo                         = 0,    --uint8       --//!< Specifies which time key array is used by the position component (eKeyTimeRotation, eKeyTimePosition).
  152.     PositionTimeFormat                     = 0,    --uint8     --//!< Format of identifier the position time keys (see: EKeyTimesFormat enumeration type). May not be used depending on the value of PositionKeysInfo.
  153.     
  154.     TracksAligned                             = 0    --uint8     --//!< If set to nonzero, signals that all key arrays are padded to a 4-byte boundary.
  155.  
  156. --     AUTO_STRUCT_INFO;
  157. )
  158.  
  159.  
  160.  
  161.  
  162.  
  163.