Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
3.03k stars 1.13k forks source link

Android Instant app with AR Foundation #655

Closed devhims closed 3 years ago

devhims commented 3 years ago

ARCore doesn't support OpenGLES2 graphics API and Instant App works with OpenGLES2 only. How can we develop instant apps with ARF? Any tips?

devhims commented 3 years ago

@tdmowrer Have you come across any AR instant apps? I've found some material on how to develop them natively with ARCore, but couldn't find anything pertaining to ARF in Unity.

tdmowrer commented 3 years ago

I'm not aware of any Android Instant Apps that use ARFoundation specifically, but OpenGLES2 is not a requirement for Instant Apps, and ARCore in general can be used with Instant Apps.

Google has some information for setting up Unity for Instant App development here.

devhims commented 3 years ago

Yeah, I've checked out the link and tried implementing the steps. As you can see, OpenGLES2 is a must.

opengl

tdmowrer commented 3 years ago

The advice in that dialog appears to be outdated. You should be able to build OpenGLES3-based Instant Apps. The use of GLES2 is more of a general recommendation to reach more devices since more devices support GLES2 (but those are less likely to support AR).

devhims commented 3 years ago

I tried OpenGLES3 - even before creating the issue. It just didn't work.

tdmowrer commented 3 years ago

What didn't work exactly?

The issue you are reporting seems to be unrelated to AR. It might be rephrased as "OpenGLES3 is not supported with Android Instant Apps", which it should be. If that is not the case, please provide more details.

devhims commented 3 years ago

Yes, you got that right. "OpenGLES3 is unsupported with instant apps" or "OpenGLES2 support is not available with ARCore". If I remember correctly, OpenGLES2 was supported in earlier versions of ARCore.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.