google-ar / codelab-webxr

Building an augmented reality application with the WebXR Device API
https://codelabs.developers.google.com/codelabs/ar-with-webxr/
Apache License 2.0
171 stars 86 forks source link

Animation Questions #7

Open lajune1 opened 6 years ago

lajune1 commented 6 years ago

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 commented 6 years ago

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