[vc_section]

I always have troubles documenting my MAGIC works, as I want to treasure the art of magic and not reveal the secrets. However, I would point some issues I have been struggling with during the process followed by demo. First of all, this was my first time I was building a Unity project on iOS device. The documentation says, a regular free account with AppleID is enough for tests and development. But turns out,¬†whenever I try to build an iOS app to my iPhone device I get the following error: Your development team has reached the maximum number of registered iPhone devices. I’ve previously had a Developer Program Membership that is now expired that I used to build apps on my old iPhone.Took me a while to figure out, but I had to ask Apple Developer Support to delete my old iPhone¬†from my list of devices.

Then, I had to import a new script to my Unity project in order to access the camera from the phone. The official documentation was a good reference: https://docs.unity3d.com/ScriptReference/Application.RequestUserAuthorization.html.

Also, make sure NSCameraUsageDescription and NSMicrophoneUsageDescription are in the Info.plist.

So, I created a magic trick using playing cards and Vuforia image targets

EFFECT: A randomly selected playing is magically revealed using the AR.

PLOT: A random playing card is being selected from the deck. Then the magician puts the JOKER on the table and asks the spectator to hold the phone on the joker. Three signs of SPADES magically appear on the playing card, indicating that it was the selected card. As soon as spectator notices that it is not actually the card he selected, the SPADES magically is transforming to HEARTS by leaving THREE OF HEARTS on the card. Then a prompt appears saying to turn the card over. Spectator turns the card and it happens to be the selected card.

abARcadabra!!

DEMO OF THE TRICK

[/vc_section]