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

Collada animations, KeyFrameAnimation removed ? #11585

Closed
3 of 13 tasks
SebastienFPRousseau opened this issue Jun 22, 2017 · 5 comments
Closed
3 of 13 tasks

Collada animations, KeyFrameAnimation removed ? #11585

SebastienFPRousseau opened this issue Jun 22, 2017 · 5 comments
Labels

Comments

@SebastienFPRousseau
Copy link

SebastienFPRousseau commented Jun 22, 2017

Description of the problem

Hello,

The class KeyFrameAnimation has been removed from the docs and the examples. How am I supposed to animate my collada model when kinematics and skinning methods are not working at all ? How can i use the collada.animations with this latest release ( r86 ) ?

const loader = new ColladaLoader();

loader.load(source, function(collada) 
{
	const obj = collada.scene;
        const animations = collada.animations; // I have to use this.

	obj.traverse(function(child)
	{
		child.castShadow = true;
		child.receiveShadow = true;
	});
});

Thanks for reading.

Three.js version
  • Dev
  • r86
  • ...
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
@Mugen87
Copy link
Collaborator

Mugen87 commented Jun 22, 2017

You can use ColladaLoader2 for skeletal animations. Kinematics support is not yet implemented though.

Besides, the following example shows how you can use the old ColladaLoader with skeletal animations and the core animation system.

KeyFrameAnimation, Animation and AnimationHandler have been deprecated for almost two years and were removed from the project with R86. If you depend on these entities, you can still checkout R85.

@Mugen87
Copy link
Collaborator

Mugen87 commented Jun 22, 2017

BTW: The kinematics example also works with R86: https://threejs.org/examples/#webgl_loader_collada_kinematics

@SebastienFPRousseau
Copy link
Author

Thanks for reply.

I didn't know that. Do you know some examples with the ColladaLoader2, please ?

@Mugen87
Copy link
Collaborator

Mugen87 commented Jun 22, 2017

These two examples are not yet official but they work with ColladaLoader2 in the master branch.

https://yume.human-interactive.org/examples/collada/index.html
https://yume.human-interactive.org/examples/collada/multi.html (Heads up! Big collada file)

We currently try to enhance ColladaLoader2 because ColladaLoader allocates a lot of memory. Some users already reported problems in this context (see #10592).

Please be aware, that ColladaLoader2 is not perfect yet. If you encounter problems, just report them and i will look into it.

@SebastienFPRousseau
Copy link
Author

Thanks for all !

I'll try this.

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

No branches or pull requests

2 participants