Giter Club home page Giter Club logo

Comments (6)

JanNilsScheele avatar JanNilsScheele commented on June 26, 2024 1

I am now adding the scene dynamically. That worked. Thanks!

from mind-ar-js.

BostonLeeK avatar BostonLeeK commented on June 26, 2024

Problem is that you try to apply attribute after page initialisation and lib already check this attribute.

from mind-ar-js.

JanNilsScheele avatar JanNilsScheele commented on June 26, 2024

Ok, is there a chance to re-trigger the detection, or should I add the attribute and later add the script to the page?

from mind-ar-js.

BostonLeeK avatar BostonLeeK commented on June 26, 2024

can u describe case why u need to async set of the mindar-image attribute? Do u use some framework for web project such like react?

from mind-ar-js.

JanNilsScheele avatar JanNilsScheele commented on June 26, 2024

I have an angular app that gets a query / route parameter which marker to detect and which scene to render.

from mind-ar-js.

BostonLeeK avatar BostonLeeK commented on June 26, 2024

you have two options. Render user content only after setup url for bundle or reset and restart mindar. Last time I seen example with reset here https://github.com/hiukim/mind-ar-js/pull/338/files#diff-12f9942ebe9e0a3cefbfe0602981fdcebf38c4e9148ddefd75dd8731bf0edcbc

for myself for debug tools I update source code of mindar lib and add tracking of parameters change. After changing parameters I reset ar session and restart it.

from mind-ar-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.