hiukim / mind-ar-js

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

Is it possible to use CSS3D with mind-ar? #169

Closed Felpat0 closed 1 year ago

Felpat0 commented 2 years ago

I would like to render a CSS3DObject, but THREE.CSS3DObject does not exist in https://cdn.jsdelivr.net/npm/mind-ar@1.1.4/dist/mindar-image-three.prod.js . Is there any other way?

Thanks

positlabs commented 2 years ago

I think you'll need to load the CSS3DRenderer first. It's not included in the threejs build by default. You can find it in the examples folder. https://github.com/mrdoob/three.js/blob/master/examples/jsm/renderers/CSS3DRenderer.js