Skip to content
Browse files

Workaround for broken sphere() function.

  • Loading branch information...
1 parent 7b5af17 commit f29e432eee3fe142f80d4cc686206beb4748b164 @cibomahto cibomahto committed Mar 18, 2012
Showing with 12 additions and 2 deletions.
  1. +9 −1 BlinkeyDomeSimulator.pde
  2. +0 −1 README
  3. +3 −0 README.markdown
View
10 BlinkeyDomeSimulator.pde
@@ -17,7 +17,15 @@ void draw() {
fill(200,50,50);
lights();
translate(width/2, height/2, 0);
- sphere(PIXELS_PER_FOOT * 16);
+
+ // Sphere is messed up. This is a workaround See:
+ // http://forum.processing.org/topic/3d-sphere-issue
+ pushMatrix();
+ scale(PIXELS_PER_FOOT * 16);
+ sphere(1);
+ popMatrix();
+
+
stroke(100,255,100);
fill(50,200,50);
box(PIXELS_PER_FOOT * 32, 1, PIXELS_PER_FOOT * 32);
View
1 README
@@ -1 +0,0 @@
-Simulates our blinkey dome
View
3 README.markdown
@@ -0,0 +1,3 @@
+Simulates our blinkey dome
+
+Requires the [Obsessive Camera Direction library](http://gdsstudios.com/processing/libraries/ocd/)

0 comments on commit f29e432

Please sign in to comment.
Something went wrong with that request. Please try again.