From 7a0becfba5124c2620353512a20044b4ebb64fec Mon Sep 17 00:00:00 2001 From: interfisch Date: Fri, 4 Oct 2019 14:14:33 +0200 Subject: [PATCH] fix config loading --- kinectv1_wuerfel.pde | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) 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