Categories
Augment Reality Processing

Библиотека дополненной реальности для processing

Finally 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)

Наконец то дошли руки выложить MultiARToolKit Processing library для работы с несколькими маркерами.

Как оно работает (демо видео)

Пример использования (также присутствует в zip файле)

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);
}

19 replies on “Библиотека дополненной реальности для processing”

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 0x5: 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 ?

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.

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?

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?

HI,
I have still problem with
Exception in thread “Animation Thread” java.lang.UnsatisfiedLinkError: no JARToolKit in java.library.path
anynone found solution? Please!

Hi,
Thx a lot for your great job here!
However, is there a way to export the skecth as an application?

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

Nice Post, Do you have the API of library SimpleARToolKit library from Brian Chung?

Could you please send me the API?

Regards.

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.