rajawalivr

Move camera around using touch event in CardBoard and Rajawali VR Android

爱⌒轻易说出口 提交于 2019-12-09 13:58:34
问题 Currently, I am working on VR application for android that using google CardBoard and Rajawali to play the 360 video. The sensor is working well, but I cannot use touch to drag the scene or camera around correctly. Is there any way to enable touch mode in this app? Any help is greatly appreciated! Thank you. 回答1: I've worked on the same thing, and this is what I used: First, take a look at Rajawali's ArcballCamera class. You can see there how touch events are handled to rotate the camera with

Move camera around using touch event in CardBoard and Rajawali VR Android

。_饼干妹妹 提交于 2019-12-03 20:59:59
Currently, I am working on VR application for android that using google CardBoard and Rajawali to play the 360 video. The sensor is working well, but I cannot use touch to drag the scene or camera around correctly. Is there any way to enable touch mode in this app? Any help is greatly appreciated! Thank you. I've worked on the same thing, and this is what I used: First, take a look at Rajawali's ArcballCamera class. You can see there how touch events are handled to rotate the camera with touch events. The problem is I didn't liked the default behaviour of the rotation when the user moved

How to use RajawaliVR or Rajawali to play a 360 Video

余生颓废 提交于 2019-12-03 15:03:19
问题 I am having a hard time to figure out how to use the Rajawali to play a 360 video. In order to achieve this, I tried every solution I could find in the Internet, but I failed. Firstly, I used the RajawaliCardboard, and let the MainActivity extend from CardboardActivity . At the same time, in MyRenderer class, I let this class extend from the RajawaliCardboardRenderer class. In MyRenderer class, I overrided the initScene() function: protected void initScene() { StreamingTexture mTexture = null

How to use RajawaliVR or Rajawali to play a 360 Video

南楼画角 提交于 2019-12-03 04:51:16
I am having a hard time to figure out how to use the Rajawali to play a 360 video. In order to achieve this, I tried every solution I could find in the Internet, but I failed. Firstly, I used the RajawaliCardboard, and let the MainActivity extend from CardboardActivity . At the same time, in MyRenderer class, I let this class extend from the RajawaliCardboardRenderer class. In MyRenderer class, I overrided the initScene() function: protected void initScene() { StreamingTexture mTexture = null; if (externalMemoryAvailable()) { mVideoPath = Environment.getExternalStorageDirectory()