mind-ar-js icon indicating copy to clipboard operation
mind-ar-js copied to clipboard

About the scale position such as canonical-face-model?

Open LiZhenzhuBlog opened this issue 1 year ago • 3 comments

How can I adjust the size and position of the model? I have added the reference model to the scene and anchored it to the tip of the nose. How can I make adjustments? Alternatively, can I align the global and facial features without setting an anchor? Thank you.

<a-assets>    
      <a-asset-item id="headModel" src="canonical-face-model.glb" ></a-asset-item>
      </a-assets>
      <a-camera active="false" position="0 0 0"></a-camera>
      <a-entity mindar-face-target="anchorIndex: 1">
        <a-gltf-model  rotation="0 0 0" position="0 0 0" scale="1 1 1" " src="#headModel"></a-gltf-model>
        </a-entity>

the model appears too large and its position is incorrect.....

LiZhenzhuBlog avatar Jan 23 '24 05:01 LiZhenzhuBlog

update rotation="0 0 0" position="0 0 0" scale="1 1 1"

hiukim avatar Jan 26 '24 05:01 hiukim

update rotation="0 0 0" position="0 0 0" scale="1 1 1"

I have already set the position,

<a-gltf-model rotation="0 0 0" position="0 0 0" scale="1 1 1" " src="#headModel"></a-gltf-model> do you mean I need to create a script to update the model's position?

LiZhenzhuBlog avatar Jan 27 '24 00:01 LiZhenzhuBlog

adjust the values if you want to move/rescale.

hiukim avatar Jan 27 '24 03:01 hiukim