We are about to switch to a new forum software. Until then we have removed the registration on this forum.
hi everybody, someone know how to activate the same marker in a sketch of processing. I'm trying to make active more than single one marker in the same scene, because I need to create content on the same phisical object taken by the camera.
below the script that I'm trying to modify.
import processing.video.*;
import jp.nyatla.nyar4psg.*;
Capture cam;
MultiMarker nya;
void setup() {
size(640,480,P3D);
colorMode(RGB, 100);
println(MultiMarker.VERSION);
cam=new Capture(this,640,480);
nya=new MultiMarker(this,width,height,"camera_para.dat",NyAR4PsgConfig.CONFIG_PSG);
nya.addARMarker("patt.hiro",80);//id=0
nya.addARMarker("patt.kanji",80);//id=1
cam.start();
}
void draw()
{
if (cam.available() !=true) {
return;
}
cam.read();
nya.detect(cam);
background(0);
nya.drawBackground(cam);
for(int i=0;i