diff --git a/kinectv1_wuerfel.pde b/kinectv1_wuerfel.pde index 8ec1477..648924e 100644 --- a/kinectv1_wuerfel.pde +++ b/kinectv1_wuerfel.pde @@ -26,13 +26,14 @@ boolean enable_IRImage=false; boolean enable_colordepth=false; // Which pixels do we care about? -int minDepth = 200; -int maxDepth = 1000; +int minDepth = 0; +int maxDepth = 910; // What is the kinect's angle float angle; -static int boxnum=19; +static int boxnum=50; //maximum boxes +int boxnumloaded=boxnum; //can be changes if less boxes are loaded from config color box[] = new color[boxnum]; int boxid[] = new int[boxnum]; PVector boxpos[] = new PVector[boxnum]; //center position of box @@ -73,18 +74,21 @@ void setup() { for (int i=0;i