102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
skinning.c File Reference

Go to the source code of this file.

Data Structures

struct  SkinWeight

Functions

static int16_t scale_skin_coordinate (int16_t value, int32_t weight)
static void copy_morph_base (struct Actor_State *actor)
static int collect_skin_weights (uint32_t time, const struct Animation_SplineChannelMorph *track, struct SkinWeight *weights)
static void add_morph_delta (struct Math_Vec3I16 *out, const struct Animation_MorphTargetVertex *delta, int32_t weight)
void Bone_TransformVerticesMorphed (uint32_t sample_time, struct Animation_SplineChannelMorph *morph_channels, struct Actor_State *actor)
static void add_skin_vertices (struct Mesh_RuntimeVertex *dst, const struct Animation_FrameVertex *src, int32_t weight, uint32_t count)
void Bone_TransformVerticesWeighted (uint32_t sample_time, struct Animation_SplineChannelMorph *bone_channels, struct Bone_SkinningOwnerView *actor, struct Submesh_Entry *mesh_piece)
static void clear_skin_normal (struct Bone_SkinningOwnerView *actor, struct Mesh_RuntimeVertex *v)
void Bone_InitVertexBufferFromSkin (struct Bone_SkinningOwnerView *actor, struct Mesh_RuntimeVertex *dst_vertices, struct Animation_FrameVertex *skin_vertices, int32_t vertex_count)
void Bone_BlendVerticesMultiWeight (struct Submesh_Entry *mesh_piece, struct Bone_SkinningOwnerView *actor, struct Animation_FrameVertex **skin_tables, int32_t *weights)
static int32_t rotate_long_coordinate (const int16_t *row, struct Math_Vec3I32 v)
static void prepare_weighted_view (void)
static int32_t rotate_skin_coordinate (const int16_t *row, struct Math_Vec3I16 v)
static void project_skin_vertex (int index, struct Math_Vec3I16 local)
void Bone_TransformWeightedVerticesForRender (struct Scene_Node *node, struct Submesh_RenderSpan *span, const struct Math_TransformQ12Q6 *world)

Function Documentation

◆ add_morph_delta()

void add_morph_delta ( struct Math_Vec3I16 * out,
const struct Animation_MorphTargetVertex * delta,
int32_t weight )
static

Definition at line 73 of file skinning.c.

◆ add_skin_vertices()

void add_skin_vertices ( struct Mesh_RuntimeVertex * dst,
const struct Animation_FrameVertex * src,
int32_t weight,
uint32_t count )
static

Definition at line 115 of file skinning.c.

◆ Bone_BlendVerticesMultiWeight()

void Bone_BlendVerticesMultiWeight ( struct Submesh_Entry * mesh_piece,
struct Bone_SkinningOwnerView * actor,
struct Animation_FrameVertex ** skin_tables,
int32_t * weights )

Definition at line 201 of file skinning.c.

◆ Bone_InitVertexBufferFromSkin()

void Bone_InitVertexBufferFromSkin ( struct Bone_SkinningOwnerView * actor,
struct Mesh_RuntimeVertex * dst_vertices,
struct Animation_FrameVertex * skin_vertices,
int32_t vertex_count )

Definition at line 185 of file skinning.c.

◆ Bone_TransformVerticesMorphed()

void Bone_TransformVerticesMorphed ( uint32_t sample_time,
struct Animation_SplineChannelMorph * morph_channels,
struct Actor_State * actor )

Definition at line 84 of file skinning.c.

◆ Bone_TransformVerticesWeighted()

void Bone_TransformVerticesWeighted ( uint32_t sample_time,
struct Animation_SplineChannelMorph * bone_channels,
struct Bone_SkinningOwnerView * actor,
struct Submesh_Entry * mesh_piece )

Definition at line 132 of file skinning.c.

◆ Bone_TransformWeightedVerticesForRender()

void Bone_TransformWeightedVerticesForRender ( struct Scene_Node * node,
struct Submesh_RenderSpan * span,
const struct Math_TransformQ12Q6 * world )

Definition at line 308 of file skinning.c.

◆ clear_skin_normal()

void clear_skin_normal ( struct Bone_SkinningOwnerView * actor,
struct Mesh_RuntimeVertex * v )
static

Definition at line 174 of file skinning.c.

◆ collect_skin_weights()

int collect_skin_weights ( uint32_t time,
const struct Animation_SplineChannelMorph * track,
struct SkinWeight * weights )
static

Definition at line 57 of file skinning.c.

◆ copy_morph_base()

void copy_morph_base ( struct Actor_State * actor)
static

Definition at line 28 of file skinning.c.

◆ prepare_weighted_view()

void prepare_weighted_view ( void )
static

Definition at line 243 of file skinning.c.

◆ project_skin_vertex()

void project_skin_vertex ( int index,
struct Math_Vec3I16 local )
static

Definition at line 284 of file skinning.c.

◆ rotate_long_coordinate()

int32_t rotate_long_coordinate ( const int16_t * row,
struct Math_Vec3I32 v )
static

Definition at line 237 of file skinning.c.

◆ rotate_skin_coordinate()

int32_t rotate_skin_coordinate ( const int16_t * row,
struct Math_Vec3I16 v )
static

Definition at line 279 of file skinning.c.

◆ scale_skin_coordinate()

int16_t scale_skin_coordinate ( int16_t value,
int32_t weight )
static

Definition at line 22 of file skinning.c.