Merge: gamnit VR: steroscopic view and head tracking on Android
authorJean Privat <jean@pryen.org>
Thu, 21 Jan 2016 01:19:36 +0000 (20:19 -0500)
committerJean Privat <jean@pryen.org>
Thu, 21 Jan 2016 01:19:36 +0000 (20:19 -0500)
commit13a04fc311e2d8b6ac3d7771a2f9e9e46f268f97
treef477d767dcd2855863a9db72ef75a6b5cd38c510
parentd0aeb2bce9d26de6bec0f3098d9cec7b9e9cf8f4
parenta876d67297b7f1ac20175afc9526757cecde6e35
Merge: gamnit VR: steroscopic view and head tracking on Android

This PR adds support for VR to the _gamnit depth_ framework. By importing `gamnit::vr`, all drawings are duplicated for a stereoscopic view and the `world_camera` orientation is updated from head tracking data.

VR is applied to the `model_viewer` app for testing only. The UI should still be updated for a nicer VR experience.

This is done by simple refinement, which allows for easy (but dirty) conversion to VR using `nitc ... -m lib/gamnit/depth/vr.nit`. However this does not allow to easily switch between VR and a classic view. This could be improved as needed in the future by using a subclass of `EulerCamera` and a few conditions in `frame_core_draw`.

Pull-Request: #1923
Reviewed-by: Jean Privat <jean@pryen.org>