You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.
/**
* Check if user is looking at the target object by calculating where the object is in eye-space.
*
* @return true if the user is looking at the target object.
*/
private boolean isLookingAtTarget() {
// Convert object space to camera space. Use the headView from onNewFrame.
Matrix.multiplyMM(viewProjectionMatrix, 0, headView, 0, modelTarget, 0);
Matrix.multiplyMV(tempPosition, 0, viewProjectionMatrix, 0, POS_MATRIX_MULTIPLY_VEC, 0);
Unable to gaze views like play, seek bar and etc inside VideoUiView class.
https://github.com/googlevr/gvr-android-sdk/blob/master/samples/sdk-video360/src/main/java/com/google/vr/sdk/samples/video360/VideoUiView.java#L157
Hi trying to get the gaze when any of custom Ui in front of eyes. like the play button, but nothing happens.
@OverRide
public void onDrawEye(Eye eye) {
/**
* Check if user is looking at the target object by calculating where the object is in eye-space.
*
* @return true if the user is looking at the target object.
*/
private boolean isLookingAtTarget() {
// Convert object space to camera space. Use the headView from onNewFrame.
Matrix.multiplyMM(viewProjectionMatrix, 0, headView, 0, modelTarget, 0);
Matrix.multiplyMV(tempPosition, 0, viewProjectionMatrix, 0, POS_MATRIX_MULTIPLY_VEC, 0);
The text was updated successfully, but these errors were encountered: