Changes between Version 4 and Version 5 of misc/processing/setup_ar


Ignore:
Timestamp:
08/07/14 18:07:26 (10 years ago)
Author:
obina
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • misc/processing/setup_ar

    v4 v5  
    119119void setup() { 
    120120  size(640, 480, P3D); 
     121 
     122  // setup camera 
    121123  String[] cameras = Capture.list(); 
    122  
    123124  cam = new Capture(this, cameras[0]); // select cam 0 
    124125 
     126  // load AR marker information 
    125127  nya = new MultiMarker(this,width,height,"camera_para.dat",NyAR4PsgConfig.CONFIG_PSG); 
    126128  nya.addARMarker("patt.hiro", 80); 
    127129  nya.addARMarker("patt.kanji", 80);   
    128130   
     131  // load 2D image file 
    129132  img_jin  = loadImage("data/jin01t.gif"); 
    130133  img_poni = loadImage("data/poni01t.gif"); 
    131134   
     135  // load 3D object model 
    132136  model = new OBJModel(this); 
    133137  model.load("data/cassini.obj"); 
     
    151155  if (nya.isExistMarker(0)) { 
    152156    nya.beginTransform(0); 
    153     model.draw(); 
     157    model.draw();            // show 3D Obj(Cassini) 
    154158    nya.endTransform(); 
    155159  }