Skip to content

Commit 7ec73b3

Browse files
committed
remove unneded code from test app
1 parent c5754f4 commit 7ec73b3

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

studio/apps/arscene/src/main/java/arscene/Sketch.java

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,13 @@
66
import processing.core.PShape;
77

88
public class Sketch extends PApplet {
9-
PShape sphere;
10-
PObject arObj;
11-
129
public void settings() {
1310
fullScreen(ARCORE);
1411
}
1512

1613
public void setup() {
17-
// I think this should go here but not 100% sure
18-
// if (!hasPermission("android.permission.CAMERA")) {
19-
// requestPermission("android.permission.CAMERA");
20-
// }
21-
// sphere = createShape(SPHERE, 400);
22-
23-
//Initialisation of AR Object
24-
arObj = new PObject();
25-
//Setting Color of the detected plane - BLUE in this case
2614
PPlane.setPlaneColor(0x00BCD4FF);
27-
//Applying custom textures to the detected plane
2815
PPlane.setPlaneTexture("triangle.png");
29-
//Loading .obj file of the AR object
30-
arObj.load("model.obj","grey.png");
3116
}
3217

3318
public void draw() {
@@ -36,11 +21,14 @@ public void draw() {
3621
// PPlane.setPlaneColor(0x00BCD4FF);
3722
// shape(sphere);
3823

39-
fill(2555, 0, 0);
24+
fill(0x769FE0);
4025
// Pulsating box to test scale...
4126
// box(map(sin(frameCount/100.0f), -1, 1, 0, 500));
42-
box(0.25f);
27+
//box(0.25f);
4328

44-
// arObj.place();
29+
sphere(0.10f);
30+
rotateZ(frameCount * 0.1f);
31+
translate(0, 0.3f,0);
32+
sphere(0.05f);
4533
}
4634
}

0 commit comments

Comments
 (0)