EvilEngine/DYNA/effect:grass: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 10: Line 10:


==Format==
==Format==

<source lang=cpp>
<source lang=cpp>
struct asset_type : xDynAsset
class asset_type : xDynAsset
{
{
uint8 orient;
unsigned char orient;
uint8 pad1;
unsigned char pad1;
uint16 flags;
unsigned short flags;
uint32 mesh;
unsigned int mesh;
uint32 model;
unsigned int model;
float32 width_scale;
float width_scale;
float32 height_scale;
float height_scale;
float32 density_scale;
float density_scale;
float32 width_min;
float width_min;
float32 height_min;
float height_min;
float32 animate;
float animate;
};
};
</source>
</source>
Line 31: Line 30:
! Offset !! Type !! Variable !! Description
! Offset !! Type !! Variable !! Description
|-
|-
| 0x00 || uint8 || '''orient''' ||
| 0x10 || u8 || '''orient''' ||
|-
|-
| 0x01 || uint8 || '''pad1''' ||
| 0x11 || u8 || '''pad1''' ||
|-
|-
| 0x02 || uint16 || '''flags''' ||
| 0x12 || u16 || '''flags''' ||
|-
|-
| 0x04 || [[GRSM]] || '''GRSM_AssetID''' ||
| 0x14 || [[AssetID]] || '''mesh''' || [[GRSM]]
|-
|-
| 0x08 || [[MODL]] || '''MODL_AssetID''' ||
| 0x18 || [[AssetID]] || '''model''' || [[MODL]]
|-
|-
| 0x0C || float32 || '''width_scale''' ||
| 0x1C || f32 || '''width_scale''' ||
|-
|-
| 0x10 || float32 || '''height_scale''' ||
| 0x20 || f32 || '''height_scale''' ||
|-
|-
| 0x14 || float32 || '''density_scale''' ||
| 0x24 || f32 || '''density_scale''' ||
|-
|-
| 0x18 || float32 || '''width_min''' ||
| 0x28 || f32 || '''width_min''' ||
|-
|-
| 0x1C || float32 || '''height_min''' ||
| 0x2C || f32 || '''height_min''' ||
|-
|-
| 0x20 || float32 || '''animate''' ||
| 0x30 || f32 || '''animate''' ||
|}
|}



Latest revision as of 12:47, 19 September 2023

effect:grass
Hash0x081A3629
Games usedThe Incredibles

Format

class asset_type : xDynAsset
{
    unsigned char orient;
    unsigned char pad1;
    unsigned short flags;
    unsigned int mesh;
    unsigned int model;
    float width_scale;
    float height_scale;
    float density_scale;
    float width_min;
    float height_min;
    float animate;
};
Offset Type Variable Description
0x10 u8 orient
0x11 u8 pad1
0x12 u16 flags
0x14 AssetID mesh GRSM
0x18 AssetID model MODL
0x1C f32 width_scale
0x20 f32 height_scale
0x24 f32 density_scale
0x28 f32 width_min
0x2C f32 height_min
0x30 f32 animate