Closed andynorton closed 6 months ago
I can confirm that there appears to be something wrong with this sample. Tapping did nothing for me, despite the fact that we are hitting HandleTap
The initial positioning of the photo node should be just in front of the camera, but with this sample it's probably putting it just behind the camera when you tried it but nothing happened.
I think we're missing some sort of position settings after
planeNode.Transform = SCNMatrix4.Mult(cameraTranslation, translation);
I can kind-of get a solution with
planeNode.Transform = SCNMatrix4.Mult(cameraTranslation, translation);
planeNode.Position = cameraTranslation.Column3.Xyz;
But it needs some additional work to rotate the node into the same position as the ARCamera.
Microsoft support for Xamarin will end on May 1, 2024 for all Xamarin SDKs. In preparation for this, all issues and PRs in this repository are being closed.
In ios11/ARKitSample/ARKitSample/GameViewController.cs
After running the code, it works as expected until I tap on the screen, the gesture recognize event is called and it works fine the first time - I get a plane node with a snapshot of the screen. But when this is called the second time, instead of creating a new node at the location of the second tap, it overlaps the initial child node.
The behaviour is different from the original version demoed here - https://youtu.be/LLRweyZ1KpA?t=1380
Example behaviour after a few screen taps: