augmentmy-world / arStudio

A innovative Web editor for Augmented Reality
https://webarstudio.tripod-digital.co.nz
MIT License
53 stars 34 forks source link

Add an option to load a custom Pattern in the artrackable2d.component #10

Closed kalwalt closed 4 years ago

kalwalt commented 4 years ago

At the moment we can use only the Hiro, Kanj and other two Pattern markers. We should add an option in the inspector to load a custom pattern instead.

kalwalt commented 4 years ago

We are working on this topic on this branch https://github.com/augmentmy-world/arStudio/tree/patt-upload Useful informations on how to add a file format into litescene.js at this page https://github.com/jagenjo/litescene.js/blob/master/guides/fileformats.md#how-the-resources-loading-works Specs on litescene.js for LS.Formats.addSupportedFormat here:

https://github.com/jagenjo/litescene.js/blob/574a92656c632d520424d9741ed42a8d69865221/src/formats.js#L17-L23

Example code on this last aspect in the litescene.js source code:

https://github.com/jagenjo/litescene.js/blob/574a92656c632d520424d9741ed42a8d69865221/src/formats.js#L181-L187