💥 Inspiration

I was watching the Konosuba anime this weekend. Megumin's (a magician character from the anime) hat intrigued me. Thus, built an AR filter which gives a Megumin feel !

⚙️ What it does

The AR filter sets a magician's hat (the hat used in the filter is Megumin's hat from the anime Konosuba) around the user's head in the camera frame.

🛠️ How I built it

  • made the initial setup by referencing to a cap filter by the Spark AR Studio
  • imported and created a block for the hat's 3D model (made in blender)
  • added the newly created block in the hierarchy above the face tracker

🧠 Challenges I ran into

  • Editing block of the hat's 3D model
  • Adjusting the 3D model's material (colour)

📖 What I learned

  • AR basics
  • building Instagram and Facebook camera filters

🚀 What's next for MagicHat

  • Detecting multiple faces and applying the filter

Built With

  • spark-ar-studio
Share this project:

Updates