Multiple AR Markers library for processing

Posted by Den Ivanov on December 4th, 2009

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)

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

More Augmented Reality forWinston XS

Posted by Den Ivanov on November 19th, 2009

First test video for AR Winston XS project. Still need some improvements on speed and background removal.

Few old AR projects video

Posted by Den Ivanov on November 18th, 2009

Read the rest of this entry »

Multi-touch project for VW

Posted by Den Ivanov on July 14th, 2009

Multi-touch table game for Volkswagen Scirocco presentation & Vertical 100' multi-touch wall. Created by multitouch.ru

Processing ARToolkit library test video

Posted by Den Ivanov on April 14th, 2009


ARToolkit for processing tests from den ivanov on Vimeo.

Testing video of my ARToolkit library with multiple patterns handling. I used here rewritten version of SimpleARToolkit library from Bryan Chung and OBJLoader for handling OBJ 3D Models. Sorry for loud audio. Just mute it.

источники бесперебойного питания

Wordpress Theme by Tech Replies
Copyright © 2007 Den Ivanov blog.. All rights reserved.