google-ar / sceneform-android-sdk

Sceneform SDK for Android
https://developers.google.com/sceneform/develop/
Apache License 2.0
1.23k stars 604 forks source link

Sceneform anchor points sway as depth changes. #314

Open LyngLi opened 6 years ago

LyngLi commented 6 years ago

Sceneform locates a cylindrical model through the anchor point. The deeper the anchor point is, the greater the negative value is. Why can't the position of the cylinder be fixed, but it wobbles?

               Pose pose = Pose.makeTranslation(0, 0, -1.26f);
                Anchor anchor = arSceneView.getSession().createAnchor(pose);
                final AnchorNode anchorNode = new AnchorNode(anchor);
                anchorNode.setParent(arSceneView.getScene());
gstanlo commented 6 years ago

Are you trying to make an anchor at a fixed distance in front of the camera?

LyngLi commented 6 years ago

@gstanlo I want to fix an anchor on the bottle in the texture, and build a virtual bottle model through this anchor to cover the bottle in the texture. How do you do this?

malik-at-work commented 6 years ago

Hi, Im unsure how exactly Sceneform is being used here. Can you clarify "I want to fix an anchor on the bottle in the texture, and build a virtual bottle model through this anchor to cover the bottle in the texture"

LyngLi commented 6 years ago

@malik-at-work I want to add cards around the cylinder of the camera. How do we achieve this special effect? 20180914135211