NyARToolkit Activate the same marker twice

edited February 2016 in Library Questions

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
Sign In or Register to comment.