spark-ar-studio

Adding local assets keeps loading forever in spark ar tool

人走茶凉 提交于 2021-02-11 07:02:36
问题 Whenever I try to load any local asset to my project, it just keeps loading forever and neither loads nor the uploading stops and if I try to do anything else on top of it, the application hangs. This is happening everytime and I have to manually close application and try again yet for the same result. Can anyone help me fix this? 回答1: I found the issue. I was doing dragging and dropping of the headOccluder.obj directly onto the face tracker. So It was taking so much time. I followed that

Adding local assets keeps loading forever in spark ar tool

强颜欢笑 提交于 2021-02-11 07:01:41
问题 Whenever I try to load any local asset to my project, it just keeps loading forever and neither loads nor the uploading stops and if I try to do anything else on top of it, the application hangs. This is happening everytime and I have to manually close application and try again yet for the same result. Can anyone help me fix this? 回答1: I found the issue. I was doing dragging and dropping of the headOccluder.obj directly onto the face tracker. So It was taking so much time. I followed that

How to use signal history in spark ar?

99封情书 提交于 2021-01-29 07:21:18
问题 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 with that? 来源: https://stackoverflow.com/questions/63989984/how-to-use-signal-history-in-spark-ar

SparkAR - can't change texture of material in code?

一世执手 提交于 2020-07-23 06:41:43
问题 I've here made sure to find all objects, Materials and Textures in the Promise.all of my script given that they take time to load in. I then set my textures to my materials, and no errors are drawn. However, the materials do not change. I can't find anything wrong with my code: Promise.all([ //These take time to acquire.. Scene.root.findFirst('ipad-perfect'), Scene.root.findFirst('iphone-perfect'), Scene.root.findFirst('computer-perfect'), Materials.findFirst('bg'), Materials.findFirst(

SparkAR - can't change texture of material in code?

三世轮回 提交于 2020-07-23 06:40:40
问题 I've here made sure to find all objects, Materials and Textures in the Promise.all of my script given that they take time to load in. I then set my textures to my materials, and no errors are drawn. However, the materials do not change. I can't find anything wrong with my code: Promise.all([ //These take time to acquire.. Scene.root.findFirst('ipad-perfect'), Scene.root.findFirst('iphone-perfect'), Scene.root.findFirst('computer-perfect'), Materials.findFirst('bg'), Materials.findFirst(

How to fetch a JSON with SparkAR networking module

荒凉一梦 提交于 2020-06-27 16:37:11
问题 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: https://developers.facebook.com/docs/ar-studio/reference/classes/networkingmodule/ Don't forget to add "jsonplaceholder.typicode.com" to Spark AR's whitelisted domains first. :) // Load in the required modules const Diagnostics = require('Diagnostics'); const Networking = require('Networking'); //=====================================

Tweening Colors on Spark AR via Script

夙愿已清 提交于 2020-01-25 10:14:53
问题 what would be the equivalent of a transition Patch in Reactive script? I would like to tween a color from say 0,0,0,1 to 1,1,1,1 in RGBA. I know ho to animate a single value as alpha, like this: const timeDriver = Animation.timeDriver(timeDriverParameters); const alphaSampler = Animation.samplers.linear(1, 0); const alphaAnimation = Animation.animate(timeDriver, alphaSampler); mymaterial.opacity = alphaAnimation; Using visual patches you can use a Transform Patch to link a Vector3 to an

Tweening Colors on Spark AR via Script

我是研究僧i 提交于 2020-01-25 10:14:03
问题 what would be the equivalent of a transition Patch in Reactive script? I would like to tween a color from say 0,0,0,1 to 1,1,1,1 in RGBA. I know ho to animate a single value as alpha, like this: const timeDriver = Animation.timeDriver(timeDriverParameters); const alphaSampler = Animation.samplers.linear(1, 0); const alphaAnimation = Animation.animate(timeDriver, alphaSampler); mymaterial.opacity = alphaAnimation; Using visual patches you can use a Transform Patch to link a Vector3 to an