Inspiration

The reasons for my inspiration on writing this tutorial article are

  1. Desperate attempt to get my girlfriend to be less afraid of programming
  2. I have seen an significant amount of beginners AR creator struggling with understanding basic If Then Else logic
  3. Official documentation of Spark AR is great, but not many people has the patient like me to read through most of it
  4. Patch editor is a great visual programming tool to learn programming logic and I have always wanted to use Spark AR for this aspect
  5. Most creators are afraid of scripting despite tutorial available
  6. I learnt a lot through helpful tutorial when I first started, so I hope I can somewhat be of any help to any beginner creators!

What it does

This tutorial article is written for new beginners who are not familiar with programming logic. I have broken down the uses of Logic patches such as If Then Else, Equal Exactly and Math patches such as Round in details, together with example which beginners can follow step by step using the arproj file I have prepared. With clear indication of each steps in the arproj file that corresponds to the article, new beginners can understand how to use the patches introduced to easily set up random generator effect. Instead of simply providing a template which beginners can use blindly, I also explained in details on what each step of random generator actually does and how different patches come together to create the final logic they need.

Finally, I also extended the random generator effect by demonstrating how beginners creator can easily use programming logic to create result-based animation for each random generated result.

How I built it

I wrote this article and set up the arproj file concurrently, all using only Spark AR. The project is purposely made to be simple with the bare minimal objects in it so as to allow users to focus on the most important objective: learning programming logic.

Challenges I ran into

The biggest challenges for me are

  1. Time management to write this article while creating AR effects on daily basis
  2. Understanding what beginners are struggling with (which I manage to understand better when I go to Spark AR forum daily to answer questions of beginners)
  3. Writing and explaining the logics in a clear manner, while also not being too wordy and boring

Accomplishments that I'm proud of

I am definitely happy that I managed to finish writing the tutorial article nevertheless. I have always wanted to use Spark AR to teach non-programmers on the basic of programming logic. This article will serve as a first step of my journey in this aspect whether or not I win the Hackathon.

What I learned

I learned to be more prepared for the next Hackathon.

What's next for Learning Basic of Programming Logic with Spark AR

I hope I can write a part 2 of this article with more advanced progamming logic in the short run. In the long run, I hope that I can use Spark AR to not just create AR effects, but also use it as an educational tool for students or new programmers to learn visual programming in a fun and future proof way! (I mean c'mon, learning AR is future proof right? Please tell me I am right.)

Built With

  • sparkar
Share this project:

Updates