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

Using separate GLB files animation #420

Open
lorenzoMezza opened this issue Mar 18, 2024 · 0 comments
Open

Using separate GLB files animation #420

lorenzoMezza opened this issue Mar 18, 2024 · 0 comments
Labels
❓ question Further information is requested

Comments

@lorenzoMezza
Copy link

lorenzoMezza commented Mar 18, 2024

Hello,

In my project, I'm faced with the necessity of having separate GLB files for animations, distinct from the GLB file containing the 3D model. I'm exploring how to effectively use these animations on the same model.

I've managed to successfully integrate animations when they're included in a single GLB file alongside the 3D model.
With this code:

window.addEventListener('keydown', function(event) {
    if (event.keyCode === 32) 
        if (soldier) {
            soldier.playAnimation({ animation: 0, duration: 1000 });
        }
    }
});

However, in my scenario, I have multiple GLB files for different animations, with only one GLB file containing the 3d model itself and i need to be able to use all of those animations for the 3D model.
what is the right way to accomplish this?

@lorenzoMezza lorenzoMezza added the ❓ question Further information is requested label Mar 18, 2024
@lorenzoMezza lorenzoMezza changed the title Issue with using separate GLB animation using separate GLB files animation Mar 18, 2024
@lorenzoMezza lorenzoMezza changed the title using separate GLB files animation Using separate GLB files animation Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant