Closed trusktr closed 5 years ago
I had to change patternUrl
to just url
, then it worked.
Suggestion: the docs could be a more organized. For example I didn't know there were docs inside the a-frame folder. The main README could contain a "menu" of sorts and link to there. The first search result for "ar.js custom marker" on Google is the outdated article which uses patternUrl
.
Do you want to request a feature or report a bug?
Bug (I think?)
What is the current behavior?
Custom marker doesn't work. I see it in the video, but nothing renders on top.
If the current behavior is a bug, please provide the steps to reproduce.
The following code works perfectly:
But if I try to use my own marker it doesn't work. I am changing the line
to
as described in the article How To Create your Own Marker? on Medium, where
./ar.js.patt
is the default marker created from the generator:I have placed it correctly next to my HTML file, and I'm serving the folder that contains both the HTML file and the
.patt
file withhttp-server
, just normal stuff.There's no errors in the console.
Nothing renders on top of the
AR.js
marker.What is the expected behavior?
A black cube should render on top of the AR.js marker.
This is what I see:
I'd like to make multiple different custom markers and render different things in the scene.