Changes between Version 4 and Version 5 of misc/processing/setup_ar
- Timestamp:
- 08/07/14 18:07:26 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
misc/processing/setup_ar
v4 v5 119 119 void setup() { 120 120 size(640, 480, P3D); 121 122 // setup camera 121 123 String[] cameras = Capture.list(); 122 123 124 cam = new Capture(this, cameras[0]); // select cam 0 124 125 126 // load AR marker information 125 127 nya = new MultiMarker(this,width,height,"camera_para.dat",NyAR4PsgConfig.CONFIG_PSG); 126 128 nya.addARMarker("patt.hiro", 80); 127 129 nya.addARMarker("patt.kanji", 80); 128 130 131 // load 2D image file 129 132 img_jin = loadImage("data/jin01t.gif"); 130 133 img_poni = loadImage("data/poni01t.gif"); 131 134 135 // load 3D object model 132 136 model = new OBJModel(this); 133 137 model.load("data/cassini.obj"); … … 151 155 if (nya.isExistMarker(0)) { 152 156 nya.beginTransform(0); 153 model.draw(); 157 model.draw(); // show 3D Obj(Cassini) 154 158 nya.endTransform(); 155 159 }