Home > front end >  Three. Js panoramic video gyroscope and gestures to control the camera rotation is not compatible
Three. Js panoramic video gyroscope and gestures to control the camera rotation is not compatible

Time:09-27

Three. Js panoramic video gyroscope and gestures to control the camera rotation incompatible
Want to achieve the effect of the panorama is a mobile phone to watch the panoramic video/, can be done using gyroscope control camera rotate 360, fingers can drag the scene at the same time, the finger leave the screen, the scene is changeless, rotating the phone may continue to spin from the scene,
Gyroscope part use DeviceOrientationControls js, touch gesture call API for rotation Angle, and use the camera. The position (also tried to use camera. Rotation) rotating camera, the question now is function of gyroscope and gestures drag available respectively, the two together, gestures to drag the scene doesn't save, after finishing his fingers once away from the screen, the scene is returned to the corresponding gyroscope control camera scene,
Do you have a similar problem? How to solve?
  • Related