You are not logged in.

1

Wednesday, May 25th 2016, 11:13am

How to use vr_cursor without entering vr mode

Hi all,

I would like to make use of the gyroscope feature without entering vr mode and use vr cursor as it is used in VR mode.

I have already entered stereo mode and enabled gyroscope as Klaus suggested but am unable to use the vr cursor.
Could anyone direct me.

Thanks Darmaniac

2

Wednesday, May 25th 2016, 11:16am

Hi,

the VR cursor is a part of the WebVR plugin.

What you could do is using the WebVR plugin and then after entering the VR mode disable the stereo rendering via - set(display.stereo, false); - but this would only work on non real WebVR capable browsers.

Or re-implement the VR cursor behavior manually by constantly checking the distance to all other hotspots...

Best regards,
Klaus

3

Wednesday, May 25th 2016, 11:21am

Hi Klaus,

Yes that would work but the platform I am trying to use it on does not support webvr, so I cannot enter vr mode. I am trying to convert the html project into apk format for locally using as an app and have not been able to enter vr mode in the app. Probably because there is no webgl support in ask as required for VR. *tongue*

could you please elaborate on your second suggestion like where to write the code and how to go about it.

Could there be any other doable workarounds.

Thanks,
Dar maniac

This post has been edited 1 times, last edit by "DarManiac" (May 26th 2016, 9:29am)


4

Thursday, May 26th 2016, 7:07am

Hi,
To implement the vr cursor manually where do I have to implement the code vtourskin.xml or some other script and what event function would I have to use to continuously measure the distance as Klaus suggested. Also how do I go about this. *blink*

I am not sure how to begin. Any help would be great.

Thanks,

Darmaniac