Библиотека дополненной реальности для processing
Augment Reality, Processing December 4th, 2009Finally i put online MultiARToolKit Processing library for working with multiple AR markers in one scene. Based on SimpleARToolKit library from Brian Chung
How it work (demo video)
Sample sketch (also included in zip file)
import ru.cleoag.MultiARToolKit.*;
import net.sourceforge.jartoolkit.core.*;
import JMyron.*;
import processing.opengl.*;
JMyron m;
PImage img;
MultiARToolKit ar;
int capWidth, capHeight;
void setup() {
size(800, 600, OPENGL);
capWidth = 640;
capHeight = 480;
m = new JMyron();
m.start(capWidth, capHeight);
m.findGlobs(0);
img = createImage(capWidth, capHeight, ARGB);
ar = new MultiARToolKit(this, capWidth, capHeight);
ar.addPattern("patt.hiro", 80, 0.0f, 0.0f,"displayCube");
ar.addPattern("patt.kanji", 80, 0.0f, 0.0f,"displaySphere");
lights();
stroke(0);
}
void draw() {
background(0);
m.update();
System.arraycopy(m.image(),0,img.pixels,0,capWidth*capHeight);
img.updatePixels();
hint(DISABLE_DEPTH_TEST);
image(img,0,0,width,height);
hint(ENABLE_DEPTH_TEST);
ar.showObjects(img,100);
}
void displayCube(MultiARToolKit _a) {
fill(0,255,0);
translate(0,0,40);
box(80,80,80);
}
void displaySphere(MultiARToolKit _a) {
fill(0,0,255);
translate(0,0,40);
sphere(40);
}
Ready to receive fresh news from my site? Subscribe to my RSS.
Хотите быть в курсе последних обновлений сайта? Подпишитесь на мой RSS.









December 24th, 2009 at %I:%M %p
а где можно увидеть подобную библиотеку но для as3 ?
December 24th, 2009 at %I:%M %p
О, круто. Гляну обязательно. Интересна реализация.
January 12th, 2010 at %I:%M %p
[...] 如果搞定了上一节的设置,这节就简单了,这里有现成的几个实现artoolkit功能的库,下载解压放到文档-Processing-libraries文件夹里运行其中的例子就是了。可以用SimpleArtoolkit,或者 NyARToolkit,还有基于SimpleArtoolkit但是可以支持多个ar成像的MultiARToolKit。 [...]
February 27th, 2010 at %I:%M %p
Nice work
Are you willing to share the source code, too?
Kind regards,
Justis
March 1st, 2010 at %I:%M %p
Is it supposed to work on osx ? I’ve already found an intel compiled version of JMyron ( that didn’t work before ).
I get this error :
java(17970,0xb1636000) malloc: *** error for object 0×5: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Exception in thread “Animation Thread” java.lang.UnsatisfiedLinkError: no JARToolKit in java.library.path
Do I need to download something else next to it ?
March 9th, 2010 at %I:%M %p
Hi guys, it will be great if you can throw some idea. Thank you:
How can we get the coordinates of one marker with respect to the main coordinate system?
For example how can we get the draw a line in processing between the two markers.
April 15th, 2010 at %I:%M %p
Hi, I wonder why it does not execute properly. Only empty white window pops up and disappears quickly. That’s all and nothing’s drawn.
I inserted some printing code for test, and I found the problem occurs at the statement “ar = new MultiARToolKit(..)”.
Anyone can tell me what version of processing and JMyron make this runs properly. Will the version be a problem?
April 19th, 2010 at %I:%M %p
Hello, thanks for the demo. I’m doing a presentation next Wednesday called “beyond markers” to get people ready for our Global AR Hackathon Open Trials this weekend 4/24. I want to include your library in the list of admissible libraries. Is this kit released under an open source license? Can I teach people how to use it? If they do, what kind of attribution does your library require?
June 18th, 2010 at %I:%M %p
I have the same question!
modelX and screenX dont work…
Otherwise the library work fine, thank you!
June 27th, 2010 at %I:%M %p
Hi,
This is what I do with your library, thank a lot!
Its a pedagogical application to describe the story of solar systeme comprehension.
http://www.vimeo.com/12851640
July 14th, 2010 at %I:%M %p
how can import files WML for viewing on the marker?
August 3rd, 2010 at %I:%M %p
HI,
I have still problem with
Exception in thread “Animation Thread” java.lang.UnsatisfiedLinkError: no JARToolKit in java.library.path
anynone found solution? Please!
October 18th, 2010 at %I:%M %p
Hi,
Thx a lot for your great job here!
However, is there a way to export the skecth as an application?
December 1st, 2010 at %I:%M %p
[...] (Bonus) MultiARToolKit. The SimpleARToolKit can only handle one maker at a time. In Russia, Den Ivanov make multi-marker library – http://www.cleoag.ru/2009/12/04/multiple-ar-markers-library-for-processing/ [...]
December 22nd, 2010 at %I:%M %p
HI eveyone, Well i need to know if there is a way to know if the pattern is selected, for example in simpleArtoolKit i used to write something like
if (ar.findMatch(img,100)) {
ar.showObject();
}
But with multi im a little bit lost, thx for your help
March 19th, 2011 at %I:%M %p
Nice Post, Do you have the API of library SimpleARToolKit library from Brian Chung?
Could you please send me the API?
Regards.
May 25th, 2011 at %I:%M %p
Congratulations !
Dani from Argetina
June 28th, 2011 at %I:%M %p
Great library! However I’ve noticed that there is a lot more jittering/movement than when I use the single marker SimpleARToolkit. Is there a good way to fix this?
Thanks!
Dan
October 26th, 2011 at %I:%M %p
[...] MultiARToolkit – realidade aumentada [...]