Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

How to disable head tracking (gyroscope)? #325

Open
ghost opened this issue Aug 23, 2018 · 9 comments
Open

How to disable head tracking (gyroscope)? #325

ghost opened this issue Aug 23, 2018 · 9 comments

Comments

@ghost
Copy link

ghost commented Aug 23, 2018

Hi, is there a way to programmatically enable or disable head tracking (gyroscope) in the GVRKit?
Also in the issue #281 I've read that the GVRKit was open source but the reference in the issue was broken and I didn't found source code of GVRKit in the repository.

@Performador
Copy link

You should be able to use gvr->PauseTracking().

@Performador
Copy link

We distribute GVRKit as a compiled framework. You should be able to see the headers in XCode though.

@ghost
Copy link
Author

ghost commented Aug 27, 2018

Could I call this method if I use (GVRSceneRenderer + GVRVideoRenderer) or I have to write my own Renderer with my own gvr_context as shown in TreasureHuntNDK example?

@Performador
Copy link

This call is independent from the rendering logic and should work either way.

@ghost
Copy link
Author

ghost commented Aug 30, 2018

Could give me some tip? I don't understand how to get a reference or pointer to GvrApi instance.

@Performador
Copy link

Ah, I see, this is not exposed through GVRCardboardView yet.

Are you using a GVRCardboardView? If so, you should be able to use whatever head pose you'd like in the delegate functions instead of the tracked head pose.

@ghost
Copy link
Author

ghost commented Aug 31, 2018

No. I'm using (GVRRendererViewController + GVRRendererView + GVRSceneRenderer + GVRVideoRenderer).

@Performador
Copy link

OK, will add this on GVRRenderer so you can pause tracking.

@Performador
Copy link

Actually [GVRRenderer pause:NO] should disable tracking.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant