sceneform

Draw Renderable Shape on 3D Model using Sceneform Android

萝らか妹 提交于 2021-02-05 08:24:36
问题 I am using SceneForm Android SDK to render 3D Model in Android APP. To display the 3D Model I am using this code below which also supports Rotating and Zooming feature in 3D Model private fun renderLocalObject(position: Int) { ModelRenderable.builder() .setSource(appCompatActivity, Uri.parse(models.get(position))) .setRegistryId(models.get(position)) .build() .thenAccept { modelRenderable: ModelRenderable -> addNodeToScene(modelRenderable) } .exceptionally { throwable: Throwable? -> var

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) { //

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