Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AR Sessionの初期化に失敗する #4

Open
ryuryu0226 opened this issue Jun 25, 2022 · 2 comments
Open

AR Sessionの初期化に失敗する #4

ryuryu0226 opened this issue Jun 25, 2022 · 2 comments

Comments

@ryuryu0226
Copy link
Owner

ryuryu0226 commented Jun 25, 2022

下記のInitializer.IsReadyがfalseとなりAR Sessionの初期化に失敗する.

if ( ! Initializer.IsReady || EarthManager.EarthTrackingState != TrackingState.Tracking)
{
bool flag1 = ! Initializer.IsReady;
bool flag2 = EarthManager.EarthTrackingState != TrackingState.Tracking;
bool flag3 = ARSession.state == ARSessionState.SessionTracking;
OutputText.text = string.Format(
" \n\n" +
" ! Initializer.IsReady: {0}\n" +
" EarthManager.EarthTrackingState != TrackingState.Tracking: {1}\n" +
" ARSession.state == ARSessionState.SessionTracking: {2}\n",
flag1.ToString(),
flag2.ToString(),
flag3.ToString()
);
return;
}

ARSession.state == ARSessionState.SessionTrackingはtrueになることを確認.
別環境では,Initializer.IsReadyがtrueとなり初期化に成功する.

参考:
ARCore Geospatial APIハンズオン by AR Fukuoka | ドクセル

@ryuryu0226
Copy link
Owner Author

ryuryu0226 commented Jun 25, 2022

初期化失敗:

初期化成功:

@hzuika
Copy link
Collaborator

hzuika commented Jun 25, 2022

❌iOSでも初期化失敗

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

No branches or pull requests

2 participants