Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Animation Questions #7

Open
lajune1 opened this issue Jun 28, 2018 · 1 comment
Open

Animation Questions #7

lajune1 opened this issue Jun 28, 2018 · 1 comment

Comments

@lajune1
Copy link

lajune1 commented Jun 28, 2018

Hi there! I've been trying my best to integrate the animation code into my project. But it still does not work.

I added this.animate(); to the top of my code - under this.init - TBH I dont know if the 'this.' should be there? But I'm guessing it should... I read the article provided on async and promises, but I still don't understand how exactly it relates to integrating animation in my project.

Then under this.scene.add(this.model); I added -
async animate (); {
requestAnimationFrame( animate );
this.model.rotation.y+=1;
this.renderer.render(this.scene, thiscamera ); //But this already happens in 'if (pose)' and
//if I delete it from there, the app stops working.
}

Last question : I know that Aframe has a slack channel that specifically addresses these types of issues for noobs like myself. and also allows the community of outsiders to maybe work together.. Do you have one as well? Or - will you be implementing in the future?

Thanks so much!

@jsantell
Copy link
Contributor

Thanks for your patience -- it's difficult to debug your three.js code without seeing the context. Are you able to get this sample code running?

The WebVR slack is a good resource for all things WebVR/WebXR

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

No branches or pull requests

2 participants