* //\\ //\\ //\\ //\\
* ///\\\ ///\\\ ///\\\ ///\\\
* \\\/// \\\/// \\\/// \\\///
- * \\// \\// \\// \\//
+ * \\// \\// \\// \\//H
*
* EXPERTS ONLY!! EXPERTS ONLY!!
*
final float TRAILER_DEPTH = 97;
final float TRAILER_HEIGHT = 33;
-final int MaxCubeHeight = 5;
-final int NumBackTowers = 11;
+final int MaxCubeHeight = 7;
+final int NumBackTowers = 18;
int targetFramerate = 60;
int startMillis, lastMillis;
// Core engine variables
GLucose glucose;
-HeronLX lx;
+LX lx;
LXPattern[] patterns;
Effects effects;
MappingTool mappingTool;
boolean debugMode = false;
DebugUI debugUI;
boolean uiOn = true;
+boolean simulationOn = true;
LXPattern restoreToPattern = null;
PImage logo;
float[] hsb = new float[3];
debugUI.maskColors(sendColors);
}
- camera(
+ if (simulationOn) {
+ drawSimulation(simulationColors);
+ }
+
+ // 2D Overlay UI
+ drawUI();
+
+ // Gamma correction here. Apply a cubic to the brightness
+ // for better representation of dynamic range
+ for (int i = 0; i < sendColors.length; ++i) {
+ lx.RGBtoHSB(sendColors[i], hsb);
+ float b = hsb[2];
+ sendColors[i] = lx.hsb(360.*hsb[0], 100.*hsb[1], 100.*(b*b*b));
+ }
+
+ // TODO(mcslee): move into GLucose engine
+ for (PandaDriver p : pandaBoards) {
+ p.send(sendColors);
+ }
+}
+
+void drawSimulation(color[] simulationColors) {
+ camera(
eyeX, eyeY, eyeZ,
midX, midY, midZ,
0, -1, 0
vertex(p.x, p.y, p.z);
}
endShape();
-
- // 2D Overlay UI
- drawUI();
-
- // Gamma correction here. Apply a cubic to the brightness
- // for better representation of dynamic range
- for (int i = 0; i < sendColors.length; ++i) {
- lx.RGBtoHSB(sendColors[i], hsb);
- float b = hsb[2];
- sendColors[i] = lx.hsb(360.*hsb[0], 100.*hsb[1], 100.*(b*b*b));
- }
-
- // TODO(mcslee): move into GLucose engine
- for (PandaDriver p : pandaBoards) {
- p.send(sendColors);
- }
}
void drawBassBox(BassBox b, boolean hasSub) {
p.toggle();
}
break;
+ case 's':
+ if (!midiEngine.isQwertyEnabled()) {
+ simulationOn = !simulationOn;
+ }
+ break;
case 'u':
if (!midiEngine.isQwertyEnabled()) {
uiOn = !uiOn;