Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hybrid skeletal animation #164

Open
pixelijo opened this issue Apr 23, 2022 · 2 comments
Open

Hybrid skeletal animation #164

pixelijo opened this issue Apr 23, 2022 · 2 comments
Labels
feature request New feature request

Comments

@pixelijo
Copy link
Member

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

@pixelijo pixelijo added the feature request New feature request label Apr 23, 2022
@QuantumEntangledAndy
Copy link
Contributor

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.

@pixelijo
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature request
Projects
None yet
Development

No branches or pull requests

2 participants