Scripting AR is a new video series where we invite Meta Spark experts from all over the world to demonstrate and discuss how they’re using JavaScript in their AR projects. As part of this series, we’ve asked each expert to contribute a short post highlighting just a few of the tips shared during their interview. Be sure to watch the full-length video below to learn more. Today’s contributor is Denis Rossiev (@enuriru)
Hey everyone, I’m Denis, I’m an AR artist and engineer based in Israel, and I’m excited to share my interview today as part of the Scripting AR video series. In this episode, we’re talking about how to add more complexity to effects using scripts to customize elements like gesture controls, building dynamic structures, and building a physics engine.
To help demonstrate what’s possible, I’m sharing three different AR projects today, including Midnight Gate, The Blocks, and Meta Physics. Watch the full episode now, and see my three tips after to help you take your own AR projects further with scripting.
We covered a lot of ground in this video interview, but I wanted to highlight just a few of the tips and suggestions shared in this discussion that I thought were important, especially for those of you who may already have some scripting skills, but want to explore more advanced applications.
The power source of programming magic lies in how you think, not in the language you know. Learn what are constants, variables, conditions, functions, arrays, loops, asynchronous operations, objects, classes. Once you understand these concepts deeply, you'll be able to code on almost any language and in almost any environment, with the help of official documentation.
One of the most effective strategies for tackling a complicated programming task is to break it down into smaller, more manageable pieces or steps. This approach is often referred to as decomposition. Once decomposed, you can search for solutions to each small piece on the Internet, in the Meta Spark Community, or by asking experienced creators. With a specific question, the chances of getting a useful answer are much higher, than asking something like “how to make a physics engine?”.
2023 has changed everything: an AI chatbot is now your junior, or even middle-level, programmer advisor. It can't build an entire AR experience for you, nor does it know the specifics of Meta Spark's reactive code, but it can provide answers to beginner questions, such as, 'how to generate a random number from 10 to 45 in JavaScript?'. You can use it in scripts and patches.
I hope you find this interview helpful, it’s taken me years to develop my scripting skills, and even now, I’m still learning new things. Remember to be patient and always stay open to trying new ways to elevate your AR ideas.
You can follow more of my work on Instagram @enuriru. And if you haven’t already, I encourage you to join the Meta Spark Community where many other talented creators and developers regularly talk about their AR projects!
Subscribe to the Meta Spark Blog