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

Add Skinny animation sample. #79

Merged
merged 4 commits into from
Nov 18, 2023
Merged

Add Skinny animation sample. #79

merged 4 commits into from
Nov 18, 2023

Conversation

rejurime
Copy link
Member

  • Add skinny animation sample.
  • Add CustomPipelineManager to process animations content.

* Add skinny animation sample.
* Add CustomPipelineManager to process animations content.
@rejurime rejurime added the enhancement New feature or request label May 29, 2023
@rejurime rejurime self-assigned this May 29, 2023
Copy link
Member

@AVinitzca AVinitzca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Se ve lindo pero hay que cambiar un par de cosas.

TGC.MonoGame.Samples/Animations/Models/AnimatedModel.cs Outdated Show resolved Hide resolved
TGC.MonoGame.Samples/Animations/Models/AnimatedModel.cs Outdated Show resolved Hide resolved
TGC.MonoGame.Samples/Animations/Models/AnimatedModel.cs Outdated Show resolved Hide resolved
TGC.MonoGame.Samples/Animations/Models/AnimatedModel.cs Outdated Show resolved Hide resolved
TGC.MonoGame.Samples/Animations/Models/AnimatedModel.cs Outdated Show resolved Hide resolved
{
foreach (var bone in Bones)
{
if (bone.Name == name)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Esto va a buscar cada hueso por nombre. Podría estar en inicialización, pero cada vez que cambiás de animación va a ejecutarse y ya en el ejemplo de TGCito va a ejecutar ~70 veces este método. No podemos hacer esto por índice o algo similar?

/// Animation Clip player.
/// It maps an animation Clip onto a Model.
/// </summary>
public class AnimationPlayer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puede ser una estructura.

TGC.MonoGame.Samples/Animations/Models/Bone.cs Outdated Show resolved Hide resolved
TGC.MonoGame.Samples/Animations/Models/BoneInfo.cs Outdated Show resolved Hide resolved
@rejurime rejurime marked this pull request as ready for review November 18, 2023 00:13
@rejurime rejurime merged commit a3398d4 into develop Nov 18, 2023
2 checks passed
@rejurime rejurime deleted the feature/skinny-animation branch November 18, 2023 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants