Skip to content

Instantly share code, notes, and snippets.

@enjrolas
enjrolas / cubes
Created November 23, 2014 16:34
bouncy cubes
import L3D.*;
L3D cube;
int side=0;
int inc=1;
int mode=0;
color cubeCol;
void setup()
{
size(displayWidth, displayHeight, P3D);
cube=new L3D(this);
@enjrolas
enjrolas / blink
Created November 23, 2014 04:54
Blinking voxel
@enjrolas
enjrolas / listener.c
Created November 7, 2014 02:49
Listener firmware for the L3D cube -- the receiving end of streaming LED cube data from a computer, tablet or phone to a cube
#include "neopixel/neopixel.h"
UDP Udp;
unsigned count = 0;
char data[512];
#define PIXEL_PIN D0
#define PIXEL_COUNT 512
#define PIXEL_TYPE WS2812B
@enjrolas
enjrolas / L3D file format.md
Last active August 29, 2015 14:08
L3D file format specification

L3D format for color volumetric data

revision 1

The L3D format is a simple, bitmap-like format for representing volumetric color data. The color of each voxel is represented as an R,G,B triplet. This revision does not support compression, making it unfeasible for large volumes, but suitable for small volumes, like those seen in LED cubes.

File contents:

A sample file is shown below, and this document will go into detail on the different options for every line.

L3D format for color volumetric data revision 1

The L3D format is a simple, bitmap-like format for representing volumetric color data. The color of each voxel is represented as an R,G,B triplet. This revision does not support compression, making it unfeasible for large volumes, but suitable for small volumes, like those seen in LED cubes.

File contents:

A sample file is shown below, and this document will go into detail on the different options for every line.