arcore

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);

SceneForm sceneview always black in fragment

我怕爱的太早我们不能终老 提交于 2021-01-05 11:28:12
问题 I am trying to render a 3d model on sceneview but i am getting black screen no matter what i do . what i am trying to do is to load a 3d model like in ARFragment but with more sceneview like features. here is the code for my layout <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout

SceneForm sceneview always black in fragment

£可爱£侵袭症+ 提交于 2021-01-05 11:26:07
问题 I am trying to render a 3d model on sceneview but i am getting black screen no matter what i do . what i am trying to do is to load a 3d model like in ARFragment but with more sceneview like features. here is the code for my layout <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout