xamarin/urho

ARKitComponent wrong image on iPhone X

PCDK opened this issue · 0 comments

PCDK commented

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();