So the issue appears to the the Stars-ready script. Something related to being triggered by .on(“ready”) code.
parent.on(“ready”, () => {
// Runs when ready occurs on the parent node
var stars = parent.children();
stars.forEach((obj:any) => {
var rndm = Math.floor(Math.random() * 5000);
obj.controllers.StarAnim.elements.anim.time(rndm);
obj.controllers.StarAnim.elements.anim.play();
});
});
[/quote]
Replaced it with the image target .one(“seen”); and it works.
TrainImage.one(“seen”, () => {
// Runs when ready occurs on the parent node
var stars = parent.children();
stars.forEach((obj:any) => {
var rndm = Math.floor(Math.random() * 5000);
obj.controllers.StarAnim.elements.anim.time(rndm);
obj.controllers.StarAnim.elements.anim.play();
});
});
EDIT: too much self conversation.
So the issue appears to be some of the parent.children not having the StarAnim controller or something related to that. Since there is no error reporting it not exactly sure the problem.
Tagging the Stars and using byTag to get them appears to resolve the issue.
Now, why does it lock up WebAR, but work fine in the Zappar App?