File tree Expand file tree Collapse file tree 3 files changed +7
-17
lines changed Expand file tree Collapse file tree 3 files changed +7
-17
lines changed Original file line number Diff line number Diff line change 1
1
import processing.vr.* ;
2
2
3
3
void setup () {
4
- fullScreen(PVR . STEREO );
4
+ fullScreen(STEREO );
5
5
}
6
6
7
7
void draw () {
8
- // PGraphicsVR pvr = (PGraphicsVR)g;
9
- // if (pvr.eyeType == PVR.LEFT) {
10
- // background(200, 50, 50);
11
- // } else if (pvr.eyeType == PVR.RIGHT) {
12
- // background(50, 50, 200);
13
- // } else if (pvr.eyeType == PVR.MONOCULAR) {
14
- // background(50, 200, 50);
15
- // }
16
-
17
8
background (157 );
18
9
lights ();
19
- // translate(width/2, height/2);
10
+ translate (width / 2 , height / 2 );
20
11
rotateX (frameCount * 0.01f );
21
12
rotateY (frameCount * 0.01f );
22
13
box (500 );
Original file line number Diff line number Diff line change 1
1
import processing.vr.* ;
2
2
3
3
void setup () {
4
- fullScreen(PVR . MONO );
4
+ fullScreen(MONO );
5
5
}
6
6
7
7
void draw () {
8
8
background (157 );
9
9
lights ();
10
- // translate(width/2, height/2);
10
+ translate (width / 2 , height / 2 );
11
11
rotateX (frameCount * 0.01f );
12
12
rotateY (frameCount * 0.01f );
13
13
box (500 );
Original file line number Diff line number Diff line change 1
1
import processing.vr.* ;
2
2
3
3
void setup () {
4
- fullScreen(PVR . STEREO );
4
+ fullScreen(STEREO );
5
5
}
6
6
7
7
void calculate () {
@@ -56,9 +56,8 @@ void draw() {
56
56
box (100 );
57
57
popMatrix ();
58
58
59
- // Use eye coordinates at 100 units from the camera position:
60
- PGraphicsVR gvr = (PGraphicsVR )g;
61
- gvr. eye();
59
+ // Use eye coordinates at 100 units from the camera position:;
60
+ eye();
62
61
stroke (255 , 200 );
63
62
strokeWeight (50 );
64
63
point (0 , 0 , 100 );
You can’t perform that action at this time.
0 commit comments