alanross / AlvaAR

World tracking for WebAR. A Javascript library for Augmented Reality to run SLAM in the browser.
GNU General Public License v3.0
349 stars 73 forks source link

Remove icosahedron from ARCamView and replace with user-defined object array #11

Open nickw1 opened 1 year ago

nickw1 commented 1 year ago

This small PR increases the reusability of the ARCamView class from the demo so that it now contains a user-defined array of objects, which can be added to. Each object can be added with a position and scale, and the whole array is made visible when tracking begins or invisible when tracking is lost.

The icosahedron is moved to the code inside camera.html.

Tested on desktop and on a mobile device and works as expected.

nicolocarpignoli commented 11 months ago

Looks good to me!