You could get the depth back inverting the computations. You can recover the color like this : float depth = (red(px) / 255f) * 3000f + 300 So the depth (in millimeters) is packed between 0 and 255 (a color amount in processing) and the same on the 3 channels. This way, you can for instance get jiggy with your funky Processing sketches, but apply effects and map them to a surface with Resolume Arena. The output of one application can be picked up by another. Syphon and Spout work on the same computer. ![]() The depth values in the PImage is like this: byte dValue = (byte) ((d - 300.0F) / 3000.0F * 255.0F) Syphon (Mac), Spout (PC) are great tools to route the visual output of one program to another. I just put it so we can see something interesting. You can follow the quickstart guide on the forum, install the library, your camera have fun ! I just created a simple demo with both color and depth streams here. You can use it by downloading the PapARt library, set it to use the OpenNI2 drivers and you could get the RGB, IR and depth streams. I suppose it would be better to stream down from the library to spout, but you can work with what I did already. I plan to work on video stream but it is not really implemented yet… Yes it is now ready and working and tested on Linux - Windows and OSX just a week ago. If all else fails - there’s C++ library + JNA.option. Will use the most stable libraries (must not crash on random cable disconnects, remain stable without restarting application 24/7). Once I’ll have the camera - I’ll check both your suggestion and official SDK libraries, samples. That’s what I meant by “would be an awesome shortcut”. ![]() ![]() Full support for OS X 10.7, including native fullscreen mode. Support for Twitter, Facebook, Flickr, Google Reader and even your own custom text View fullscreen or in a resizable window. Already adapting code to be compatible as we wait for the camera delivery Having a processing library to access raw data would just mean I won’t need to worry about camera initialization, reconnecting and data acquisition part as processing libraries are usually prepared for easy setup in “setup()” and instant access to data in “draw()”. Clean, crisp, and fresh, Spout will satisfy anyone with a thirst for the best in passive social reading experiences. Was using “ j4k2” to gather data from Kinect 2.Īnd now… RIP kinect 2 by Microsoft. Haven’t upgraded to v3 yet, as initial tests (right after v3 release) were a bit… unstable and there wasn’t any urgent need for it. Insta exiting windowClosing listener in PApplet removed and replaced by my own one during initialization, so I can create as many PApplets as I want on as many threads as I want. About Processing part - I use it as a library for drawing and dependencies in my Java applications. This is a result of the way Spout pushes screen data into Resolume- it copies the pixels from the Processing sketch into the Spout plug-in using video.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |