質問編集履歴

1

修正

2020/07/04 12:41

投稿

bump_of_pool
bump_of_pool

スコア7

test CHANGED
File without changes
test CHANGED
@@ -34,19 +34,19 @@
34
34
 
35
35
  nya=new MultiMarker(this,width,height,"./data/camera_para.dat",NyAR4PsgConfig.CONFIG_PSG);
36
36
 
37
- nya.addARMarker("./data/patt.hiro",80);//id=0
37
+ nya.addARMarker("./data/patt.1",80);//id=0
38
38
 
39
- nya.addARMarker("./data/patt.kanji",80);//id=1
39
+ nya.addARMarker("./data/patt.2",80);//id=1
40
40
 
41
- nya.addARMarker("./data/patt.STRAY_SHEEP",80);//id=2
41
+ nya.addARMarker("./data/patt.3",80);//id=2
42
42
 
43
- nya.addARMarker("./data/patt.BOOTLEG",80);//id=3
43
+ nya.addARMarker("./data/patt.4",80);//id=3
44
44
 
45
45
  obj1=loadShape("./data/a.obj");//load 3D obj data
46
46
 
47
- obj2=loadShape("./data/catring.obj");
47
+ obj2=loadShape("./data/5.obj");
48
48
 
49
- obj3=loadShape("./data/teapod.obj");
49
+ obj3=loadShape("./data/6.obj");
50
50
 
51
51
  cam.start();
52
52
 
@@ -92,33 +92,7 @@
92
92
 
93
93
  shape(obj1);//show 3D model
94
94
 
95
- }
95
+
96
-
97
- if (i==1) sphere(40);
98
-
99
-
100
-
101
- translate(width/4,height/2,0);
102
-
103
- if (i==2){
104
-
105
- shape(obj2);//show 3D model
106
-
107
- }
108
-
109
-
110
-
111
- translate(width/2,0,0);
112
-
113
- if (i==3){
114
-
115
- rotateX(PI);
116
-
117
- scale(30,30,30);
118
-
119
- shape(obj3);//show 3D model
120
-
121
- }
122
96
 
123
97
  nya.endTransform();
124
98