I’m having trouble with an AR.js NFT project on my GitHub Pages site. I made new image descriptors and put them in a folder called public/assets/. The camera shows up and I see a loading message, but the console says “Error in loading marker on Worker 404”.
Here’s how I’m trying to link the image descriptors:
url="public/assets/MyMarker"
Does anyone know what I’m doing wrong? I thought this was the right way to set it up, but maybe I’m missing something obvious. Any help would be great!
hey there LeapingFox! i’m kinda new to AR.js myself but i had a similar issue recently. have you tried changing the url to just ‘/assets/MyMarker’ instead? i think github pages might be looking at the root of your repo, not the ‘public’ folder.
also, stupid question maybe, but did you double check that the file names match exactly? i spent hours debugging once cuz i had a capital letter in my filename that i forgot about
yo LeapingFox, i had similar probs. try ‘/assets/MyMarker’ instead. GH Pages uses repo root, not ‘public’. double-check filenames (caps matter!) & see if u can access files directly in browser at yourusername.github.io/your-repo-name/assets/MyMarker. that’ll help pinpoint if its a path issue. lmk how it goes!