i am developing an augmented reality application with my team. we decided to choose phonegap as framework for developing it as a webapp. We use the Three.js framework to draw the augmented reality into the canvas.
My problem is to get the camera rotation working based on the phone movement. i searched through the internet for a few days but can t get it. the actual idea was to use the getRotationMatrix() method out of the android SDK and rewrite it to javascript. but the problem is to get the x, y, z data from the compass. phonegap only provides heading relative to the geographic north pole in degrees (0 .. 360) but the getRotationMatrix() method uses the x, y, z values.
能否将轴心价值从标题价值中删除或直接取走?
是否有其他想法来计算所有三个轴心的照相轮换?
感谢你们的心灵。