D
D
dendead2021-04-09 16:36:37
Android
dendead, 2021-04-09 16:36:37

Is it possible to load an object divided into several into Sceneform 3d?

I'm building an augmented reality app. I import a model from a blender, which contains several parts (head, torso, legs, arms). Sceneform creates an sfb file and in the code I manage the model like this:

ModelRenderable.builder()
                .setSource(this, R.raw.robot)
                .build()
                .thenAccept(modelRenderable ->
                {
                     AnchorNode anchorNode = new AnchorNode(anchor);
                     transformableNode.setParent(anchorNode);
                     transformableNode.setRenderable(modelRenderable);
                     arFragment.getArSceneView().getScene().addChild(anchorNode);
                });

If I need to do some transformations with the model, I use the transformableNode.
Tell me, is it possible to somehow manage different objects inside the model, and not the whole model at once? For example, track a tap on the head, change the color of the torso, etc.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question