cancel
Showing results for 
Search instead for 
Did you mean: 

Quest View Matrix

CogSimGuy
Protege
Been working with the PC SDK for some time and now experimenting with some native development for Quest in Android Studio using the Mobile SDK and vrApi. One thing that seems to have me baffled is that vrapi_GetPredictedTracking2 always seems to use the position of the headset at start up as the origin and I'm finding no what to alter that (re-center is depreciated). In the PC SDK is do a re-center at start up and get my view matrices relative to the floor height/position? Is the intent of the mobile SDK to always track via the initialized position and provide a "camera" matrix to multiply through the view matrix returned? Maybe there's something I haven't discovered in the vrApi callls yet but nothing I've tried seems to have any affect...?
1 REPLY 1

CogSimGuy
Protege
Okay, I had tried to use vrapi_SetTrackingSpace(appState.SessionObject, VRAPI_TRACKING_SPACE_STAGE) at the start of my rendering which didn't work, however if I make this call every pass before getting the tracking the problem is solved!