I have two files
- A tree that grows. (branches grow organically from the root) This example is based on the 3D Fractal Tree Example by The Coding Train aka Daniel Shiffman.
- A movement trigger. That activates i++ each time someone moves in front of the screen.
I’m trying to combine the two files so the movement trigger is what grows a new branch each time someone moves in front of the webcam. But the camera ‘this’ and the peasy cam ‘this’ i think are getting mixed up in the code.
I tried replacing the camera ‘this’ with the name of my webcam. but the platform just got super confused. see below.
video = new Capture(this, width, height, 30);
with video = new Capture(this, “name=Integrated Webcam,size=320x240,fps=30”);
Not quite sure what to do here. Can anyone help? This is a link to the two files