3

Sup guys, I develop one simple app with ARCore, and trying to set in front camera 3D objects, and move it (resize). I know that anchors don't work in frontcam mode, but them don't need me. I want to move my models only on screen (for doing selfie with any 3D stuff). Moving and change size.

I am trying to do with TransformableNode - but it did not work and crush if I try to change location. Then I make it with static Node (on screen), but it's not enough. Please help, I really stacked!

ModelRenderable.builder()
        .setSource(App.getAppContext(), Uri.parse(arModel.getArModelModifications().get(0).getUrlSfb()))
        .build()
        .thenAccept(modelRenderable -> {
            Node node = new Node();
            node.setParent(getArSceneView().getScene().getCamera());
            node.setRenderable(modelRenderable);
            node.setLocalScale(new Vector3(0.3f, 0.3f, 0.3f));     /*size*/
            node.setLocalPosition(new Vector3(0, -0.69f, -1.0f));  /*1)0-centre for horizontally, 2) 1 - bottom, 3) long-deep*/
        })
        .exceptionally(
            throwable -> {
                Log.d(TAG, " err: " + throwable.toString());
                return null;
             });
Andy Jazz
  • 49,178
  • 17
  • 136
  • 220
ArchkWay
  • 119
  • 1
  • 6
  • May be somehow possibly to imitate anchors only for camera screen? – ArchkWay May 08 '19 at 10:55
  • you can move models by adding any value in current position i,e, x,y or z axis. position would in Vector3 in this way model can be moved. – Bilz Nov 01 '19 at 12:12

0 Answers0