hiukim / mind-ar-js

Web Augmented Reality. Image Tracking, Face Tracking. Tensorflow.js
MIT License
2.24k stars 417 forks source link

3D model rotation #194

Closed mr339 closed 2 years ago

mr339 commented 2 years ago

I have a question. Is there a way to rotate the models once they have appeared on the images? like gesture-detector and gesture-handler does in Ar.js or something equivalent to that? https://github.com/fcor/arjs-gestures

demisquare commented 2 years ago

Since the clickable event is an a-frame builtin, I guess this extension can do something. @wmurphyrd/aframe-super-hands-component.

mr339 commented 2 years ago

Since the clickable event is an a-frame builtin, I guess this extension can do something. @wmurphyrd/aframe-super-hands-component.

Thanks, i'll try it out

mr339 commented 2 years ago

Since the clickable event is an a-frame builtin, I guess this extension can do something. @wmurphyrd/aframe-super-hands-component.

sadly , it seems it doesn't work on models in AR

hiukim commented 2 years ago

A lot of these gesture libraries won't work. The reason is that they are trying to manipulate the pose of the camera (They change the rotation,position or the camera instead of the model to simulate the same effect of rotating the model) MindAR also require direct control over the pose of the camera, so there are conflicts.

If you want to rotate model, you have to actually rotate the model.

demisquare commented 2 years ago

This porting of MindAR supports gesture actions from AR.js Gestures.