Camelia, the Perl 6 bug

IRC log for #openframeworks, 2013-10-07

| Channels | #openframeworks index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:03 s3b4st14n joined #openframeworks
01:51 DrCode joined #openframeworks
02:13 admsyn joined #openframeworks
02:38 vade joined #openframeworks
05:22 LCID_Fire joined #openframeworks
10:03 DrCode joined #openframeworks
10:07 DrCode joined #openframeworks
13:14 workergnome joined #openframeworks
13:44 jacres joined #openframeworks
13:56 admsyn joined #openframeworks
15:16 vade joined #openframeworks
15:16 underdoeg joined #openframeworks
15:25 jvcleave joined #openframeworks
15:27 superFluid joined #openframeworks
17:00 egradman joined #openframeworks
19:15 admsyn joined #openframeworks
19:18 workergnome joined #openframeworks
20:11 workergnome joined #openframeworks
20:11 timius_ joined #openframeworks
20:15 timius_ Hi Guys, I want to build a small application for Kinect using oF. I want to know the real world position (as per Kinect) of a point that I click from depth map/point cloud. How do I go about doing this?
20:19 admsyn sounds like you want "picking"
20:20 admsyn as in you want to click on a thing in a 3d world and tell what it is you clicked on?
20:20 timius_ @admsyn : Correct. That is what I am looking for.
20:20 admsyn cool. there's an example for that IIRC
20:20 * admsyn looks
20:21 admsyn yeah 3d/pointPickerExample
20:22 admsyn the gist, though, is you do a ray cast from the mouse location into the scene, and stop the first time you hit something
20:24 timius_ and in this case, worldToScreen is the rayCast that we are talking about?
20:25 admsyn yeah.. I guess the example is doing it "backwards" actually
20:25 admsyn I think there's a different example that does it from the screen into the world..though I'm trying to remember where that might be
20:25 admsyn I remember a rubber duck model :)
20:25 admsyn does the pointPickerExample work for what you want to do, though?
20:26 timius_ PointPicker is quite close but I should ask first about how to get such a 3d model/geometry in my case from Kinect? Should it be the point cloud or should it be the depth map?
20:27 admsyn if you have a point cloud then you're good to go
20:27 admsyn your point cloud would take the place of the mesh in the pointPickerExample
20:28 admsyn actually depending on what you're doing just reading the brightness of the clicked-on pixel in the depth image might do just fine for you
20:28 admsyn and it'd be quicker
20:32 robot joined #openframeworks
20:38 pizthewiz joined #openframeworks
20:42 workergnome joined #openframeworks
20:47 timius joined #openframeworks
20:49 timius @admsyn : Sorry for going off. Had lost the connection somehow. I was about to ask that how do I get the point cloud from the ofxKinect newly added add-on. Is there an example to that as well?
20:49 timius rayCast seems to be an advanced concept. How do I use that once I get the Kinect point cloud?
20:51 admsyn I'm pretty sure the point cloud thing is an example in ofxKinect
20:51 admsyn I haven't used it in a bit though..
20:51 timius_ joined #openframeworks
20:52 timius_ joined #openframeworks
20:52 timius_ left #openframeworks
20:53 admsyn yeah the kinectExample will show you how to get a point cloud
20:53 admsyn and depending on what you're trying to do, you can just read the brightness value of a pixel in the depth image
20:54 timius Cool. And is there an abstraction to the rayCast thingy you mentioned in openFrameworks or will I ahve to go the OpenGL route for this?
20:58 admsyn I don't think there's a function for it in openFrameworks
20:58 admsyn I'm sure there's one in an addon
20:58 admsyn it's not really a thing that'd be in OpenGL, it's more like a bit of math on the vertices in your scene
20:59 admsyn it might be easier for what you're doing to just do it the way the pointPickerExample is doing it
21:00 admsyn your point cloud won't be so big that it'll be a problem, I think
21:00 timius hmm.. I just noticed that kinectExample is also creating a mesh (as in the pointPicker example). I think I can use the same
21:01 admsyn yepp you should be able to just swap the rabbit thing for your point cloud mesh and go
21:01 admsyn there's also this: https://github.com/elliotwoods/ofxRay
21:01 admsyn if you need to do ray casting in the future
21:02 timius Awesome. Thanks a lot!
21:03 admsyn no problem, good luck :)
21:13 kikko_fr joined #openframeworks
21:35 tapout joined #openframeworks
22:35 superFluid joined #openframeworks
23:25 jvcleave joined #openframeworks
23:59 jacres joined #openframeworks

| Channels | #openframeworks index | Today | | Search | Google Search | Plain-Text | summary