hiukim / mind-ar-js

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

Clicking objects stopped working reliably starting with mind-ar v1.2.2 #501

Open iuvivo opened 4 months ago

iuvivo commented 4 months ago

Thanks for the great work around MindAR!

I recognized a problem starting with v1.2.2: Some 3D models are still clickable, some aren't at all, some seem to have raycasting intersections only for certain elements.

The problem is reproducable using the MindAR doc example regarding event handling (https://hiukim.github.io/mind-ar-js-doc/examples/events-handling) by replacing the default model with e.g. the raccoon (some elements clickable, https://cdn.jsdelivr.net/gh/hiukim/mind-ar-js@1.2.5/examples/image-tracking/assets/band-example/raccoon/scene.gltf) or bear (not clickable, https://cdn.jsdelivr.net/gh/hiukim/mind-ar-js@1.2.5/examples/image-tracking/assets/band-example/bear/scene.gltf).

I guess the problem is related to these changes (https://github.com/hiukim/mind-ar-js/commit/8cc78940526e6cdca6bac96af9418f204537e33e)?