Image tracking and cameras


#1

Hello

I have a requirement to show only the front side of a 3d model when the camera captures an image of the target, for example a cube where no matter what angle I rotate, I only see the front side and not the other sides.

Hope to get a reply

Thanks


#2

You can take a look at this repo: https://github.com/zappar-xr/aframe-example-image-tracking-animation-from-gaze.git
and create a logic to move the cube based on the raycaster gaze.


#3

Hi @mihir, thanks for your reply

But I’m not quite sure how to move the cube to achieve the effect I’ve described above, can you provide a little code snippet?