augmented-reality

ARKit – Pivot Point of 3D model is wrong

时间秒杀一切 提交于 2021-01-29 00:44:44
问题 I´m using Blender to export my models to dae and Xcode to import it to scn . But my problem is that the pivot point is totally wrong placed when I use it in my scene. The strange thing is that the pivot point is positioned right in the model viewer from SceneKit (even as scn ). The World Coordinates are all zeroed. 回答1: Group all the elements of your 3D model in Blender and move your pivot point for that group at a desired place. SceneKit always reads in a position of pivot point in 99.99%

ARKit – Pivot Point of 3D model is wrong

两盒软妹~` 提交于 2021-01-29 00:41:36
问题 I´m using Blender to export my models to dae and Xcode to import it to scn . But my problem is that the pivot point is totally wrong placed when I use it in my scene. The strange thing is that the pivot point is positioned right in the model viewer from SceneKit (even as scn ). The World Coordinates are all zeroed. 回答1: Group all the elements of your 3D model in Blender and move your pivot point for that group at a desired place. SceneKit always reads in a position of pivot point in 99.99%

Click event on a-entity in ar.js

一世执手 提交于 2021-01-28 12:24:08
问题 I have a simple code where there is a plane over barcode marker, when I click on this plane this action toggle visibility to another entity. <!doctype HTML> <html> <head> <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> </head> <script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script> <script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js"></script> <script src="https://rawgit.com/donmccurdy

Click event on a-entity in ar.js

a 夏天 提交于 2021-01-28 12:20:46
问题 I have a simple code where there is a plane over barcode marker, when I click on this plane this action toggle visibility to another entity. <!doctype HTML> <html> <head> <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> </head> <script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script> <script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js"></script> <script src="https://rawgit.com/donmccurdy

Black screen after loading SceneView, using Scenform, into a fragment

北战南征 提交于 2021-01-28 08:01:33
问题 I am working on a project that will have a 3D model viewer in one fragment. In order to do so, I decided to use sceneform. I have encountered a problem with SceneView, after trying to display it, in my tab fragment. Everything is done according to examples and sceneform documentation, but sceneView display black screen, regardless of the colour I am assigning. Here is scene loader @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { //

Calculate the difference in azimuth angles between 2 Poses

两盒软妹~` 提交于 2021-01-27 14:58:47
问题 I have 2 Pose representing 2 positions of the camera and I want to get the difference between their azimuth angles. The older pose is retrieved from an anchor set with the older camera pose, so that I shouldn't get errors from updates of ARCore's world understanding. The newer pose is retrieved from the current frame. I tried to use this formula from wikipedia: psi = atan2( 2*(qw*qz + qx*qy), 1-2*(qy*qy + qz*qz) ) Then I substract the older angle from the newer, with no success: when I move

How to play multiple Animations using AnimatorSet?

笑着哭i 提交于 2021-01-27 12:22:31
问题 I'm using Sceneform to create an android app that plays animation. I'm trying to start multiple Animators sequentially using AnimatorSet . The code works perfectly when trying to play two animations, but whenever I add a 3rd animation, the first two animations play then the app crashes. Here's a piece of the code: List<Animator> animatorList = new ArrayList<Animator>(); AnimationData ad1 = JimRenderable.getAnimationData("Abm_09|A"); Animator a = new ModelAnimator(ad1, JimRenderable);

How to play multiple Animations using AnimatorSet?

[亡魂溺海] 提交于 2021-01-27 12:22:24
问题 I'm using Sceneform to create an android app that plays animation. I'm trying to start multiple Animators sequentially using AnimatorSet . The code works perfectly when trying to play two animations, but whenever I add a 3rd animation, the first two animations play then the app crashes. Here's a piece of the code: List<Animator> animatorList = new ArrayList<Animator>(); AnimationData ad1 = JimRenderable.getAnimationData("Abm_09|A"); Animator a = new ModelAnimator(ad1, JimRenderable);

Event listeners in ar.js

China☆狼群 提交于 2021-01-19 10:33:18
问题 I am developing a project which involves ar.js that is displaying 3d objects and text to teach children the alphabet on both mobile devices and laptops. I was trying to add an event listener as an extra to make the children interact more. My target is to click/touch on the model displayed and it will enlarge or change color or rotation. Attached find my code. Hopefully you could solve my issue. HTML Code <!DOCTYPE html> <html> <head> <script src = "https://aframe.io/releases/1.0.3/aframe.min

Event listeners in ar.js

可紊 提交于 2021-01-19 10:30:08
问题 I am developing a project which involves ar.js that is displaying 3d objects and text to teach children the alphabet on both mobile devices and laptops. I was trying to add an event listener as an extra to make the children interact more. My target is to click/touch on the model displayed and it will enlarge or change color or rotation. Attached find my code. Hopefully you could solve my issue. HTML Code <!DOCTYPE html> <html> <head> <script src = "https://aframe.io/releases/1.0.3/aframe.min