-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
BVHLoader & example #9188
BVHLoader & example #9188
Conversation
http://threejsworker.com/api/pullrequests/9188/examples/webgl_loader_bvh.html Thanks! You will need to include the example in |
@WestLangley Do you mean the bvh file? or the whole example? |
var mesh; | ||
|
||
var loader = new THREE.BVHLoader(); | ||
loader.load( "models/bvh/pirouette.bvh", ( result ) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loader.load( "models/bvh/pirouette.bvh", ( result ) {
Add your new example to https://github.com/mrdoob/three.js/blob/dev/examples/files.js. Your example is throwing errors -- perhaps because your mesh geometry has no faces. There likely is another way of handling this. |
I think it should all be fine now, |
The skeleton animates but stays in the same place. Is that correct? |
Yes, this example bvh file does not contain any position channels. Should I replace it with another one? |
I think so yes, people may think it's broken otherwise... |
You're right, I agree! Also added an attribution to the original source of the animation. |
Sweet! Thanks! |
Loader for BVH files including a simple example.
Files with multiple ROOTs (i.e. multiple characters) are not supported, I haven't come across such files yet..