google-ar / arcore-unity-sdk

ARCore SDK for Unity
https://developers.google.com/ar
Other
1.4k stars 400 forks source link

Instant preview showing Green Screen #643

Open knightcube opened 5 years ago

knightcube commented 5 years ago

SPECIFIC ISSUE ENCOUNTERED I get this green screen when I try to run instant preview in my Mac. Works fine in Windows though. Screenshot_20190918-140843

VERSIONS USED

anyuser commented 5 years ago

Screenshot 2019-09-19 at 17 19 29

I'm experiencing the exact same issues. Tracking seems to work, but the camera image is just green, with some image artifacts.

Versions:

MarcelStockerKNN commented 5 years ago

Check mobile build settings, i had a similar issue one time when using ARCore scene, after some researches i discovered that when you build apps for mobile you should disable GPU Skinning* (Project Settings > Player > (Android Settings, expected you change on build settings to android), Other Settings > Rendering). Also check other options, Graphics API should cause error sometimes, so check it out, and try to build again and run the ARCore Scene. Search for Unity mobile guide.

anyuser commented 5 years ago

This issue doesn't appear in a build, it's the instant preview that doesn't work. Deactivating GPU Skinning doesn't change anything here.

MarcelStockerKNN commented 5 years ago

Check Graphics API, i'm building with OpenGLES3 and OpenGLES2.

anyuser commented 5 years ago

I'm also using OpenGLES3 and OpenGLES2.

nnonimus commented 5 years ago

Same here guys I am using

MarcelStockerKNN commented 5 years ago

This error happens when you build an APK and test on a compatible mobile phone?

anyuser commented 5 years ago

No, as mentioned in the original post and my comment, it happens when running instant preview. If I understand right, the point of instant preview is to make it possible to test something without building. In a build there are no problems, everything works as expected.

MarcelStockerKNN commented 5 years ago

Sorry if can't help you, me and my buddy decide to test everything building to mobile every time that we want to see the changes. It's a time consuming, but we lost too much more trying to use instant preview and nothing we searched/tried solved the problem. We got no answers on Arcore sdk for unity page on Github, StackOverflow, Unity forum, Reddit. Good luck in find the solution, any progress you achiev share with us

anyuser commented 5 years ago

Sure, no problem. It's a pity we have to build every time we change something, it really slows down development. If I find a workaround, I'll mention it here.