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
6
votes
1 answer

How to make a model rotatable and scalable via gestures (SparkAR, planar image tracking)?

I have a simple SparkAR app, there is a 3D model, attached to the planar tracker, which tracks an image target. How can I make this 3D model rotatable and scalable via gestures? What I tried: I tried code from this tutorial, it works in case of…
Rumata
  • 1,027
  • 3
  • 16
  • 47
5
votes
2 answers

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 enough reputation to answer with a comment to…
5
votes
0 answers

Is there a way to access geo-location data in Facebook's Spark AR?

We want to make some geolocation-based Instagram filters and can't figure out if there's a Geo API or not. Can I access, maybe at least partially, the geolocation data? I'm interested in both position and compass data.
Valentin Golev
  • 9,965
  • 10
  • 60
  • 84
5
votes
2 answers

how to use mp4 videos as an external textures in Facebook AR studio?

I'm working on Facebook Spark Studio for the first time. I wanted to do a marker based AR, like I usually do with Vuforia. I wanted to play a mp4 video by scanning the a marker. I read the Facebook AR studio docs, where they are supporting png and…
Subbu
  • 663
  • 1
  • 9
  • 20
4
votes
1 answer

Spark AR v98 | JavaScript error: Unexpeted SceneObject reference

I am trying to access a 2D text object with the findfirst function and it was working in the previous update (Version: 97), but in the new update (Version: 98.0.0.17.243 (248298637)) it throws the following error: JavaScript error: Unexpeted…
Grisstusss
  • 76
  • 6
4
votes
0 answers

Is there any way to convert a ShaderSignal value to a normalized ScalarValue on Spark AR?

I've simulated a perlin noise generator on patches using a noise texture, loop animation and texture transform. I've converted the resulting texture from RGB to HSL and catch the Luminance value to use it as a positionModifier for a Particle System,…
OtaodoFino
  • 41
  • 3
3
votes
1 answer

Sending a vector3 to script from patches is not working

So I'm making a ball bounce in spark AR with cannon.js. Everything was working fine until I wanted to get the position of the forehead from the facetracker via the patch editor to a script. Error: Error:Exception in HostFunction: valueOf()…
3
votes
2 answers

Spark AR Studio: Is it possible to get the color of a screen pixel from script?

For the effect I want to create, I need to get pixel color information from the screen texture. The texture sampler patch doesn't do it for me because I want to sample many points and I also didn't find a way to send its output to the script (Output…
vzrd
  • 31
  • 2
3
votes
0 answers

Does anyone know how to make a custom face distortion pack for Spark AR?

I have been toying around with the Spark AR platform for making augmented reality filters and it's been going quite well. The only thing I would like to know, however, is if it is possible to create your own Face Distortion pack. I have been using…
3
votes
3 answers

Spark Ar Code Autocomplete don't works in Visual Studio Code

I followed de official documentation https://developers.facebook.com/docs/ar-studio/scripting/basics/#code-autocomplete . When I edit the script.js in *VScode* into *Mac* or *Windows*, the autocomplite like discribed on docs dont't works. Search a…
2
votes
1 answer

Spark AR filter keeps getting rejected for having a QR code present

To simplify the steps between scanning the QR code to open the filter, and then using the filter, we opted to use the QR code as the initializing image, which meant we needed to use the picture of the QR code for the on-screen instructions. But this…
Soma
  • 71
  • 5
2
votes
0 answers

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 features such as getting the Spark console,…
2
votes
1 answer

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, Instagram on the right: I thought it had…
etlaM
  • 131
  • 1
  • 1
  • 9
2
votes
1 answer

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 no luck. Apparently since v85 was released in…
janwys
  • 21
  • 1
2
votes
2 answers

How can I orient an object on a tracked plane towards the camera in SparkAR Studio 98?

I am looking for a way to orient a sceneobject on a tracked plane towards the camera via scripting in SparkAR Studio 98. This sounds trivial, but I am having a very hard time finding the world position of the camera, and then from that generating a…
1
2 3
16 17