X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=_Internals.pde;h=e5a77552e73cc646e7beb09aee27da48e5285830;hb=f584b5ebb67c480024af86674c53fe2d8d73aad2;hp=7dcf1757e8e9b138969df17d62dfe44fe5e5123f;hpb=e0cea6008a7bdfb19012ed8f7ef1213cb553783d;p=SugarCubes.git diff --git a/_Internals.pde b/_Internals.pde index 7dcf175..e5a7755 100644 --- a/_Internals.pde +++ b/_Internals.pde @@ -95,10 +95,9 @@ void setup() { // Build output driver int[][] frontChannels = glucose.mapping.buildFrontChannelList(); int[][] rearChannels = glucose.mapping.buildRearChannelList(); - int[][] flippedRGB = glucose.mapping.buildFlippedRGBList(); mappingTool = new MappingTool(glucose, frontChannels, rearChannels); - pandaFront = new PandaDriver(new NetAddress("192.168.1.28", 9001), glucose.model, frontChannels, flippedRGB); - pandaRear = new PandaDriver(new NetAddress("192.168.1.29", 9001), glucose.model, rearChannels, flippedRGB); + pandaFront = new PandaDriver(new NetAddress("192.168.1.28", 9001), glucose.model, frontChannels); + pandaRear = new PandaDriver(new NetAddress("192.168.1.29", 9001), glucose.model, rearChannels); logTime("Build PandaDriver"); // Build overlay UI @@ -215,12 +214,13 @@ void draw() { // TODO(mcslee): move into GLucose engine if (pandaBoardsEnabled) { pandaFront.send(colors); - pandaRear.send(colors); + // pandaRear.send(colors); } } void drawCube(Cube c) { - drawBox(c.x, c.y, c.z, c.rx, c.ry, c.rz, Cube.EDGE_WIDTH, Cube.EDGE_HEIGHT, Cube.EDGE_WIDTH, Cube.CHANNEL_WIDTH); + float in = .15; + drawBox(c.x+in, c.y+in, c.z+in, c.rx, c.ry, c.rz, Cube.EDGE_WIDTH-in*2, Cube.EDGE_HEIGHT-in*2, Cube.EDGE_WIDTH-in*2, Cube.CHANNEL_WIDTH-in); } void drawBox(float x, float y, float z, float rx, float ry, float rz, float xd, float yd, float zd, float sw) {