Quantcast
Channel: AR/VR (XR) Discussion
Viewing all articles
Browse latest Browse all 12131

Reposition and rotation of canvas in Daydream

$
0
0
I am making a video player application for daydream and I want to reposition my content canvas in front of camera (wherever camera is looking), when user clicks (using daydream controller) while watching a 360 degree video. For this, I need to reposition and rotate canvas according to the rotation of camera.

To achieve this, I used following approach.

1. In the update method, I detected the click.
2. I determined the angle by which camera rotated (say alpha).
3. To rotate my canvas (which...

Reposition and rotation of canvas in Daydream

Viewing all articles
Browse latest Browse all 12131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>