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
224
questions
0
votes
0
answers
21
views
Spark AR Studio & Player ( Windows ) v140 Can't be opened after installation
I have update from v138 to v140 after installation can't open or fresh install v140 still won't open.
does anyone know about this issue?
0
votes
0
answers
20
views
SparkAR pinLastValue() returning 0;
I'm started a project in SparkAR and having some trouble with getting the correct value in my script in 2 places now. Using .pinLastValue() doesn't provided the number shown in the diagnostics.
...
0
votes
0
answers
14
views
How to pin a Rectangle to directly above the Effect Picker UI in Spark AR Studio?
We are designing an experience in Spark AR Studio and have run into a conundrum. Basically, our goal is to pin a Rectangle element containing an image texture so that it always lies just above the ...
1
vote
0
answers
12
views
Spark AR Native UI Picker disable options
I am developing a filter in Spark and i have one question. I am doing a game, and I have 4 diferent options, the player can choose 1 2 3 or 4. When the user clicks, for example, in option 1, the ...
1
vote
0
answers
23
views
Spark AR Script wont start functions
I have a script for a Spark AR Instagram Filter. I want it to be an which... are you filter.
My Problem is, that i can't start the filter by tapping on the screen. I think it only starts going through ...
0
votes
0
answers
27
views
Spark AR Patch question : pulse - wait xx and pulse again?
Having trouble tying to find a solution for such a seemingly simple operation in SparkAR.
I basically want a pulse to happen, then wait xx seconds and pulse again and keep repeating.
I have looked ...
0
votes
1
answer
25
views
Hiding picture of the camera in SparkAR
for our project we need to hide the picture of the camera in SparkAR Studio. The camera must be turned on, but we don't want to see what the camera is filming, only a black background.
Is there a ...
0
votes
1
answer
38
views
How to use filter made by Spark AR?
I have made many filters with Spark AR. How can I import it to Android Studio so I can use in my own app?
0
votes
0
answers
17
views
How to change transform.y of a Rectangle object with pinned to the bottom in Spark AR Studio?
I want to change the position of a Rectangle object (rectangle0) with pinning to the bottom and right. But I couldn't change the y-position of it when it is pinned to the bottom. It works fine with it ...
0
votes
0
answers
37
views
Is there a way of using Spark AR Studio's "NativeUI.enterTextEditMode" to enter text for multiple objects at once?
I'm trying to simultaneously set the text on multiple text objects within dynamically created blocks.
I thought I could do it using NativeUI.enterTextEditMode, but it doesn't seem to work as expected.
...
0
votes
1
answer
27
views
Is it possible to make user add a different filter to my filter from the filter gallery
I will create an Instagram filter on Spark Ar studio. This filter does not change anything on your face but gives some functionality. I want the user can select another filter (When he or she is using ...
1
vote
0
answers
46
views
Lab: Forum about AR (Spark AR, Lens Studio, 8thWall, Reality Composer, etc...)
Here's the Lab: https://lab.popul-ar.com/
It's a forum focusing specially on Augmented Reality with creators active in Spark AR, Lens Studio, 8thWall, Reality composer etc...
0
votes
1
answer
114
views
i want to reset the game in spark ar blinking game when it finishes
I have created a simple blinking game, after resetting the game, I'm unable to reset the "faster option" for the loop for background.
I want after the reset button is pressed the game to go ...
0
votes
0
answers
27
views
SPARK AR How can I apply face distortion in the skin-only layer
Please watch the video for the problem to become very clear.
I want to be able to apply the purple skin filter and face distortion at the same time, how can I do that? Is there a way to take the ...
0
votes
0
answers
71
views
Spark AR dynamic text
I want the script to extract the dynamic text (short date) from instagram and give text output of 36 when DDMMYY output is 050222 and 37 when DDMMYY output is 060222
The script can give me the output ...
1
vote
0
answers
99
views
Spark AR Studio and Visual Studio Code integration
I am trying to develop Spark AR scripts using Visual Studio Code and the integration provided by the official extension.
I have followed the steps from the official tutorial and autocomplete and other ...
0
votes
1
answer
301
views
Spark AR trigger animation reset pulse on looped: "Two or more patches have been connected multiple times, creating a loop"
I have a loop animation that has a random duration (generated by Random patch):
When the pulse is received, loop animation (and several other animations/random generators) is triggered, creating new ...
0
votes
1
answer
17
views
Is there a better/shorter/cleaner way to gather scene objects and materials
Is there a better/shorter way to gather these scene objects and materials all at once in the case where I might have 50+ objects and mats? Maybe a loop and array or something but I'm not sure how to ...
0
votes
1
answer
76
views
SPARK AR storing values
Guys I am creating a game where users collect various items in. I want to display the items collected on the side of my screen in the sequence it was collected. I can't figure out any way to create ...
0
votes
1
answer
67
views
Javascript/SparkAR — How to access a null object inside a plane tracker using script?
I am trying to access a null object inside a plane tracker located in the Scene without success. I believe the issue is the hierarchy of the scene but, I need the plane tracker to be outside the ...
0
votes
1
answer
57
views
Javascript/SparkAR — How to transform scale smoothly using Javascript in SparkAR?
I am trying to transform the scale of a plane smoothly without success. I am trying to avoid the pop from one random integer to another. The aim is to make this place scale to the new value in a ...
0
votes
1
answer
77
views
SPARK AR my pulse patch does not let me turn on and off on the checkbox
I added a Pulse patch but it doesn't allow me to click on or off in the checkbox, it's greyed out. please help?
0
votes
0
answers
22
views
Spark AR filter does not get Review
I have an issue with Spark AR filter. I have submitted but it does not get reviewed.
My this filter, I try on my test account, It get reviewed but on actual account where I need, it do not. Can anyone ...
0
votes
1
answer
86
views
Spark AR - Can't create an Scene Object with Scene.create() method
My code is below, I'm getting a warning in console
Possible unhandled promise rejection: Typeerror: undefined is not a function
The error trace will always point to Scene.create() method, even though ...
0
votes
0
answers
56
views
Spark AR object rotation
When I am rotating object around X axis for 10 degrees and around Z axis for -10 degrees it actually rotates around same axis. What can be the issue?
2
votes
1
answer
88
views
Shader looks completely different on Instagram than in SparkAR Studio
I'm trying to create an underwater filter by utilizing shaders in SparkAR.
My filter looks like intended in SparkAR, but not at all when tested in Instagram.
Here is a comparison, SparkAR on the left, ...
1
vote
0
answers
120
views
Can I use Spark AR export in Swift ? “.arexport”
Can I use the file I exported with Spark AR on my own application in Swift or is there an alternative application for this? I just want to know how to do this job? How was the popular GTA effect done? ...
0
votes
1
answer
260
views
Applying an image texture in shader patch in Spark AR
In my Spark AR project, I have a material that is set to a Shader Asset patch.
In the main patch I send a texture which I have loaded as an asset, and then inside the shader patch I try to use Vertex ...
1
vote
2
answers
70
views
Problem with multiple Audio Clips in Instagram
So I got a conditional statement to switch between two audio clips (.m4a, mono, 44.1kHz, acc) as inputs for the audio player.
In SparkAR everything works as intended, but in Instagram I can only hear ...
0
votes
1
answer
271
views
Spark AR Studio Camera Event and Count Down Timer
I'm having trouble finding documentation on how to implement a countdown timer on camera click for Facebook's Spark AR Studio.
My client wants an AR filter whereby a countdown timer appears when the ...
2
votes
1
answer
151
views
Parsing scalar number to text in Spark AR
I am trying to link a device motion value to a 2D Text element, so that the rotation Y value will appear as text in my scene.
I've been trying to implement a solution described in another thread, with ...
0
votes
1
answer
114
views
How can you format a number value to a string in Spark AR using patches?
I'm trying to take number values from patches and format them into 2D text. I've tried using the patches module and have followed the following code I've seen floating around:
const Scene = require('...
0
votes
1
answer
240
views
SparkAR: Published Instagram effect not appearing when doing a live stream
I am working on a Instagram face filter/effect with SparkAR. It is successfully uploaded, approved and works just fine when across many devices when I try the effect in the Instagram app. I can select ...
0
votes
1
answer
33
views
Transparency artifacts appearing on iOS
Does anyone know why I'm getting these weird artifacts when I overlap 3d planes with textures on top of each other even if they are on different layers?
The smaller shapes are supposed to be hiding ...
0
votes
0
answers
28
views
Old JS script in SparkAR stoped working with multiple errors
I created this JS script a long time ago for a face filter effect. After the new SparkAR update I needed to refresh the project to make it available for the users, but my old script now shows me a lot ...
0
votes
1
answer
287
views
Effects / Spark AR "ERROR: undefined is not a function"
I'm trying to make a JS effect on Spark AR with a code and Native UI and also face mesh.
The effect have bottons to choose the effect, one of them have a face mesh where the texture is not recognize ...
0
votes
2
answers
80
views
Spark AR script cannot merge Patches with Scene
I'm a beginner at Spark AR and I'm trying to build a blink counting game and I got the following error when I try to merge Scene and Patches.
Property 'text' does not exist on type 'Promise<...
0
votes
1
answer
26
views
How can I choose which frame I pick from camera texture using the delay frame patch (or any other)?
I am building an effect which needs to "freeze" the camera texture for a few seconds on certain occasions, triggered by a pulse (Just like a "snapshot" effect where you trigger it ...
0
votes
1
answer
72
views
SparkAR javascript toFixed(1) is not work
Here's the relevant code.
"counter.text = scorestring.toFixed(1).toString();"
I am not sure the code below is correct.
const Scene = require('Scene');
const Patches = require('Patches');
...
0
votes
1
answer
302
views
How to make a GET request in SparkAR studio
I am trying make a GET request in SparkAR studio. I am able to import the https module. However when the code runs I get the following error.
Possible Unhandled Promise Rejection: TypeError: Cannot ...
0
votes
1
answer
173
views
Spark ar studio i try t build a simple filter but i have this problem on my console:ERROR: undefined is not a function
when i try to run the console i have the following error on the spark ar studio console.
ERROR: undefined is not a function
{
"line": 13,
"column": 25,
"sourceURL": "...
0
votes
1
answer
219
views
Spark AR keep plane facing user/camera
Is there a way to keep plane nested inside a plante tracker & placer always facing to the camera / user?
I already tried setting the rotationY by combining the camera world rotation with the ...
0
votes
1
answer
603
views
Using Blendshapes as animationframes in Spark AR to animate Mesh Object
I am trying to animate a 3D object in spark AR. For you to understand what I'm trying to do, I'll explain exactly what I did in blender, how I imported it in spark and what I did there. It's my first ...
1
vote
1
answer
309
views
SparkAR Dynamic instantiation doesn't work at all
Even sample code @ https://sparkar.facebook.com/ar-studio/learn/scripting/dynamic-instantiation completely doesn't work. Can't open the example project either (tried copy pasting code to a new project ...
0
votes
0
answers
133
views
Get the alpha value of a pixel of a texture in SparkAR
I want to see if the alpha value of a given pixel of a given texture is 0.
I tried to get the color via the Texture Sampler patch. Then unpack it and read out the last value. If I do it like that the ...
4
votes
1
answer
412
views
How to use SparkAR's LookAt when parents of the object to rotate have a rotation
In SparkAR I want to have an element (called toRotate) that always looks at the camera, similarly to what already asked here (but the accepted solution is not satisfactory to me and I do not have ...
1
vote
1
answer
274
views
Width of dynamic rectangle in spark ar is not showing correctly
I've created a dynamic rectangle with a width and height of 100, and then changed its x position to 10. Spark AR shows its position as 10, but not the width/height, which appear as 0,03748
Here's a ...
0
votes
2
answers
460
views
How to solve javascript "Unhandled Promise Rejection" and "Property 'p' doesn't exist" errors?
I'm working on a game using spark ar, by following the tutorial from youtube (blinking game tutorial).
apparently when I was working there was an error in the script
const Scene = require('Scene');...
1
vote
1
answer
501
views
Spark AR studio, get position of object in v100+
I am super lost in the jungle that is the documentation of SparkAR. I am trying to get the coordinates of a plane inside of the script editor, to use in collider detection, but I can't seem to get the ...
1
vote
1
answer
377
views
Integrate Spark AR API into Node JS web app
I am building a Node JS webapp that recieves user's facial images, paints AR objects on the image, and send the edited image back to the user. Currently, I'm looking into Spark AR since it seems to be ...