How to make an iOS app for seeing a AR movie tracking on a card

·

2 min read

Today, I'm going to introduce a second iOS app with AR technology. Wherever you hold a card, we can see a short movie which is playing on this card.

Let's dig in now ...

Step 1: Open up Xcode and choose the Augmented Reality App template -

UXXa45FnE.jpeg

Step 2: Import or drag a downloaded short movie video from local folder to the folder Tracker 0

Screen Shot 2021-03-07 at 10.05.40 PM.png

Step 3: To instantiate card.scn in the view controller

Screen Shot 2021-03-07 at 10.08.48 PM.png

Made a new scene here which called card where in the folder art.scnassets. This is the virtual card we can see it by the camera.

Screen Shot 2021-03-07 at 10.16.46 PM.png

Click "+" button to create more nodes in the scene graph of card.scn in order to see

Screen Shot 2021-03-07 at 10.18.04 PM.png

You also can create more objects over there. For example, create a pyramid. We can manipulate it in any directions.

Step 4: To create a new configuration for card tracking

Screen Shot 2021-03-07 at 10.50.04 PM.png

Screen Shot 2021-03-07 at 10.51.16 PM.png

Step 5: Core codes about performing when the card that we're tracking, where appears a short video playing on the card

Screen Shot 2021-03-07 at 10.53.01 PM.png

Git Link from Prof Vladimir Cezar

Thank you Vladimir Cezar !!!