dotrix icon indicating copy to clipboard operation
dotrix copied to clipboard

Hybrid skeletal animation

Open voxelias opened this issue 3 years ago • 2 comments

We need a possibility to mix animations, for example run and shoot

voxelias avatar Apr 23 '22 20:04 voxelias

Perhaps on a compute shader.

Load a two bones transform matricies and the vertex buffer and weights.

Apply both to the vertex buffer separately.

Combine the verts with weighted average on the result.

Write result to a buffer.

For multiple mixes we simply apply the compute multiple times with appropriate weights.

QuantumEntangledAndy avatar Apr 24 '22 00:04 QuantumEntangledAndy

Moving of animation calculations to compute shader in general is a quite interesting idea.

voxelias avatar Apr 24 '22 13:04 voxelias