-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FLARSingleMarkerDetector Error #11
Comments
Do you already found a solution for creating custom markers? Thanks a lot! |
No I haven't find a solution. But there a Flash (as3) version that works using SingleMarkerDetector. |
I got it working. I just looked at the AS file and adapted it to JS. http://www.libspark.org/svn/js/JSARToolKit/trunk/src/JSAR.as |
Hello Phil23 |
Hey, yes, i finally got it to work. I found an example from the original java library and adapted it to javascript. But i had to fix some bugs in the JSARToolKit to make it work, which was hard to figure out. I did not find the time to commit my changes yet. |
Hi all, The problem was in 1st. On line 12098
should be:
2nd. On line 9841
should be:
Custom markers now work for me! Cheers! |
Awesome, thanks! On 2 July 2015 at 11:41, Dušan Ranđelović [email protected] wrote:
Ilmari Heikkinen web http://fhtr.net | mail [email protected] | skype ilmarihe FHTR Ltd |
Hi @duxan, Thanks for it, I have try but didn't get any success can you please share a demo project which have custom marker please share or suggestion |
Hi,
I got an error when I use custom marker. What I did is this:
var encoder = new FLARIdMarkerDataEncoder_RawBit();
var oReq = new XMLHttpRequest();
oReq.onload = function(e) {
var markerCode = new FLARCode(16,16);
markerCode.loadARPatt(oReq.response);
}
oReq.open("get", "pattern/custom_marker.pat", true);
oReq.send();
And on my render() function:
function render() {
var isDetected = detector.detectMarkerLite(raster,90); // error triggers here
...
}
Uncaught TypeError: Cannot read property 'length' of undefined JSARToolKit.js:137
c JSARToolKit.js:137
ASKlass.detectMarkerLite JSARToolKit.js:12100
I hope someone can help me with this. And thanks in advance.
The text was updated successfully, but these errors were encountered: