Marker w/ Snapcode, can you use an animated gif instead of 3d models?
In the Marker w/ Snapcode tutorial it goes over how to import 3d objects/animations into your tracked image. I want to animate the image so when the user aligns to the tracker, the animation plays instead of the 3d animation.
https://youtu.be/-jhtZFvIzSs?t=157 is where in the tutorial he imports 3d objects, so this is where I belive the animated gif would go.
Any help on how I can achieve this?
Thanks!!
Hi Colin,
You're right, you can play a gif instead of a 3D model.
First we can add your gif to the project by dragging and dropping it into the resources panel from your computer.
Then we can delete the 3D assets from the template in the Objects panel by right clicking on it, and pressing Delete.
To display your gif, in the Objects panel, select MarkerWithSnapcodeController. Then in the top left of the panel, press Add new > Sprite.
Select your new sprite in the Objects panel, then in the Inspector panel, press the Texture field. In the popup window, select your newly added sprite.
Finally, in the Scene panel, you can resize and move your gif in relation to the marker!
Let me know if you need any clarification.
Cheers,
Jon