Questions tagged [spark-ar-studio]

a powerful tool designed to make stunning interactive experiences for the Facebook camera, create interactive augmented reality experiences with or without code, then share what you build with the world. https://sparkar.com/ar-studio

A powerful tool designed to make stunning interactive experiences for the Facebook camera, create interactive augmented reality experiences with or without code, then share what you build with the world. https://sparkar.com/ar-studio

246 questions
2
votes
1 answer

Cannon.js is there a way to check if an object is colliding with 2 other objects at the same time?

I'm using Cannon.js to make a game where a ball bounces of of your head and the sides of the screen have boxes as boundaries. when the ball collides with the head it adds one more to the score. I want to check if the the ball is colliding with the…
2
votes
1 answer

How to specify the initial position of a 2D object like rectangle in Spark AR?

I have a 2d object (rectangle0), for which I have created a Screen Pan patch, which is used to change the position of the object. But the problem I am facing is how to set the initial position for the 2d object, it is currently being set to (0,0) so…
2
votes
1 answer

Score Didnt show up (Spark AR)

i try write some code to view the score on Spark AR but it not show up on spark editor, and there`s no error on code whats wrong? can you help me? const Scene = require('Scene'); const P = require('Patches'); const R = require('Reactive'); var…
2
votes
5 answers

Audio works in Spark-ar but not in Instagram

I've designed a filter which displays some images and plays some audio. It works well in spark-ar studio, but once exported to Instagram (either directly or through a test link) the images appear, but the sounds don't! The sound files are .m4a mono…
Wightboy
  • 251
  • 1
  • 12
2
votes
1 answer

How to convert screen boundaries to local coordinates in Spark AR?

How can I convert Spark AR device's screen coordinates to local world coordinates? For example, I want to position an object at the left edge of the screen. My problem is that the objects are using local coordinates based on a central pivot point…
Liron Harel
  • 10,819
  • 26
  • 118
  • 217
2
votes
1 answer

Anybody having problem with TouchGestures in Spark AR?

Working on a filter that changes things on tap of an object. Was working minutes earlier then got the following: TypeError: TouchGestures.onTap is not a function. (In 'TouchGestures.onTap()', 'TouchGestures.onTap' is undefined) { "line": 47, …
Peter Lum
  • 143
  • 4
  • 13
2
votes
1 answer

How I can add username text to my Spark AR filter?

I would like to add the username text in my Spark AR filter. I created a 2dText object and I would like to change that text into the username of the person that are using the filter. How to do that?
2
votes
1 answer

How to do real-time human segmentation in my android app

I am new to AR and Android so I tried Human segmentation and background change with Spark AR but as we can not use Spark AR project in my android app except Facebook and Instagram and if I can integrate spark AR project in my android app then please…
2
votes
3 answers

changing material colours using script in Spark AR

There is no direct way to change colours using patch editor in Spark AR, using the script seems to not work too, even though I was able to affect the opacity of the material using in the last line, I get no error inside Spark it just does not work…
Kamel Labiad
  • 525
  • 1
  • 6
  • 26
2
votes
1 answer

How to fetch a JSON with SparkAR networking module

I want to fetch data from an URL with SparkAR's networking module and display it. I tried the example found in the Spark AR documentation but it doesn't do much:…
2
votes
1 answer

How do I monitor a pulse value in a Spark AR script?

As part of a Spark AR Studio project there is a script that is used in Patch. This script has two inputs (one bool, one trigger) and two outputs (both triggers). Monitoring the bool input works as expected but monitoring the trigger input has…
theMikeSwan
  • 4,739
  • 2
  • 31
  • 44
2
votes
0 answers

Crash when the video texture Spark AR runs on device

We are trying to build a Video Texture filter using Spark AR. When you point AR camera at a specific logo, the plane tracker will identify the object and starts a video on the screen. We referred this link to build it:…
Asif Sb
  • 785
  • 9
  • 38
2
votes
1 answer

Spark AR signal value

I am trying to save a scalar signal value for future use as a texture with the Spark AR software. Basically, using the camera texture on a material is scripted like this: const texture = Textures.get('CameraTexture').signal; const material =…
Ben Banks
  • 129
  • 2
  • 11
2
votes
1 answer

Submitting Spark AR effect to Instagram

I am new to spark AR studio. I have built an effect which I am successfully able to submit to facebook and test it. But I have trouble submitting my effect to instagram. I have linked my Instagram to Facebook as per the steps. Then while submitting…
Akki619
  • 2,386
  • 6
  • 26
  • 56
1
vote
1 answer

I have multiple animated creatures/objects in my filter, but only one is actually animating

Each creature/object is animated with its own keyframes in Blender and appears to be working in that software. But when we export over into Spark AR, only one creature/object appears to animate, the rest stay still. I tried to export the file…
Soma
  • 71
  • 5
1
2
3
16 17