Fixed it! Simply need to declare OPENGL before instantiating the Kinect, so moved the size statement to first within setup.
However, the frameRate associated with the image command (image(kinect.depthMap()) suddenly becomes about 4x slower in OPENGL mode, and quickly throws this error. Are you not supposed to use image function in OPENGL?
I've seen this same problem, for me I see that invalid memory error sometimes, and other times is just runs out of memory (both scenarios happen soon after the sketch starts). If I watch the activity monitor when I start the sketch the memory usage climbs at almost 500 MB per second! Looks like there's some kind of serious memory leak when using opengl...
Leave a comment on Ben Purdy's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic