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
1
vote
1 answer

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 right results. I need a 2d vector output with…
Ian Ronk
  • 55
  • 2
  • 16
1
vote
1 answer

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 performing very well in Facebook apps like…
CottonCandy
  • 444
  • 2
  • 5
  • 15
1
vote
1 answer

How do you subscribe a pulse value from the patches in Spark AR in versions after v101?

I want to know how this code can be done in the new scripting in spark ar. I want to know how you can subscribe to a pulse value from the patches. you used to be able to do it like this: Patches.getPulseValue('pulse1').subscribe(() => { }); how…
1
vote
1 answer

Change the texture every 5 seconds in SparkAR

I have a particle system, a material and I have 10 different textures to choose from. Is there a way to randomize the texture every 5 seconds for my emitter?
Saif
  • 178
  • 10
1
vote
1 answer

How does DeepLink communication work in Facebook sparkar?

So I look into this sample and can not get two things: How And when request you external app Is made? Where are the external app deep link addresses?
DuckQueen
  • 772
  • 10
  • 62
  • 134
1
vote
1 answer

Is there a way to access a function that is inside an async function from another script?

In spark AR I've got multiple scripts: a UIManager script and a GameManager script. I've got a game over function inside of an async function in my UI manager, but I want to access the function via GameManager. I've tried putting export before the…
1
vote
0 answers

How to use signal history in spark ar?

I'm trying to display the delayed image from the camera: material0.setTextureSlot(Shaders.DefaultMaterialTextures.DIFFUSE, cameraTexture0.signal.history(1)[0]); but it's not working :( There is only white color on material0. Can you please help me…
1
vote
1 answer

How can I get the screen position of an object (e.g. the eyes)

Is there a way to get the pixel positions of objects in the scene? SparkAR internally obviously knows where to draw an object, so do they offer an interface to use this information?
FooTheBar
  • 818
  • 1
  • 9
  • 20
1
vote
1 answer

Constrain facemesh to 3D object in SparkAR

I am trying to constrain a facemesh to a 3D object so that it will rotate around the surface of the 3D object in response to the face tracker instead of moving off to the side. Currently, the facemesh is a child of the cylinder, but is not attached…
WhooNo
  • 911
  • 2
  • 12
  • 28
1
vote
2 answers

Hit testing center bottom of screen on a plane tracker in Spark AR

In Spark AR I am trying to place an object at the point on a plane tracker that is equal to the center of the bottom of the screen. In pseudo code: tracker.hitTest(screenBottomCenter) Problem is as it states in the docs that the hitTest function…
Vibber
  • 127
  • 1
  • 7
1
vote
1 answer

Hide and show object depending on mouth open in Spark AR scripting

I'm using a script in Spark AR Studio to try to show and hide a lightbulb on top of a person's head. The bulb hides with bulb.hidden I have tried bulb.visible unsuccessfully. Any Ideas? Code below: (async function () { …
James
  • 1,355
  • 3
  • 14
  • 38
1
vote
1 answer

Spark AR: sending a vector from script

I want to send a vector value from script to the editor (in order to change the spray angle of an emitter). What is wrong with the line Patches.setVectorValue('sprayAngle', Reactive.pack3(0, 0, 0)); ? It marks an unknown runtime error at the first…
1
vote
0 answers

Producing a forward/directional vector from just the euler rotation components and position

I'm currently have quite a lot of trouble producing a forward vector based on my accessible transform components. I'm working within SparkAR, where objects are built around a transform class with position, rotation (euler) and scale, as expected,…
Joeb Rogers
  • 348
  • 1
  • 2
  • 14
1
vote
6 answers

Spark AR login failed

I am trying to install and login Spark AR with my existing fb account, but it keep saying my password is wrong ( of course I assure it is correct ) My mac OS is Catalina 10.15.4, and the Spark AR downloaded is the latest version. Does anyone know if…
Rik
  • 25
  • 1
  • 2
  • 5
1
vote
0 answers

Spark Ar headOccluder.obj loading not happening

When I am trying to load headOccluder.obj from my local, It keeps processing and doesn't load. I am stuck here from few days. Any help is appreciated. Thanks