xamarin / urho

Code to integrate with the Urho3D engine
Other
462 stars 122 forks source link

ARKitComponent wrong image on iPhone X #395

Open PCDK opened 4 years ago

PCDK commented 4 years ago

When I am using ARKitComponent I get a weird image. This only happens on iPhone X and only when I use Urho to display the image. Using ARSCNView to display ARKit works correctly. The incorrect image does however still happen when I try the Mutant demo from EgorBo. He is not using ARKitComponent, but is still using ARKit and urho.

Here is an image of the effect: UrhoARkit failure

There seems to be 2 problems. The bottom of the image is rendered at the top and there is a weird shadow effect on everything. (Ignore the green circle.)

Here is my code for the Urho AR setup:

ArKitComp = Scene.CreateComponent<ARKitComponent>();
ArKitComp.Orientation = UIKit.UIInterfaceOrientation.Portrait;
ArKitComp.ARConfiguration = new ARWorldTrackingConfiguration { PlaneDetection = ARPlaneDetection.Horizontal };
ArKitComp.Run();