Perl 6 - the future is here, just unevenly distributed

IRC log for #openframeworks, 2014-07-17

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

All times shown according to UTC.

Time Nick Message
00:49 booltox joined #openframeworks
01:45 workergnome joined #openframeworks
01:46 pizthewiz joined #openframeworks
03:18 pizthewiz joined #openframeworks
03:32 lukaszw joined #openframeworks
03:35 pizthewiz joined #openframeworks
03:37 jedahan joined #openframeworks
04:22 mihi_tr joined #openframeworks
04:34 oneironaut joined #openframeworks
04:38 pizthewiz joined #openframeworks
06:03 GuidovanPossum joined #openframeworks
06:29 Pisuke joined #openframeworks
06:33 roxlu_ joined #openframeworks
06:34 IDCrisis joined #openframeworks
06:36 igorline joined #openframeworks
06:49 joek joined #openframeworks
07:31 igorline joined #openframeworks
07:46 ncls joined #openframeworks
08:06 mhashmi joined #openframeworks
08:22 mhashmi joined #openframeworks
08:45 mhashmi_ joined #openframeworks
08:46 neue joined #openframeworks
09:14 igorline joined #openframeworks
09:21 asper http://www.intel.com/content/www/us/en/do-it-yourself/galileo-maker-quark-board.html
09:25 mrzl joined #openframeworks
09:25 mrzl sup
09:27 underdoeg joined #openframeworks
09:27 underdoeg left #openframeworks
09:58 nylki joined #openframeworks
11:09 mhashmi joined #openframeworks
11:13 mhashmi joined #openframeworks
11:48 sebllll_ joined #openframeworks
12:02 oneironaut joined #openframeworks
12:32 underdoeg joined #openframeworks
13:03 vade joined #openframeworks
13:13 DrCode joined #openframeworks
13:17 derekkinsman joined #openframeworks
13:18 nylki joined #openframeworks
14:22 DrCode joined #openframeworks
14:24 nylki joined #openframeworks
14:34 vade joined #openframeworks
14:54 nylki_ joined #openframeworks
14:56 sebllll joined #openframeworks
14:58 ncls1 joined #openframeworks
15:07 jekyllRo joined #openframeworks
15:24 AlexAbraham joined #openframeworks
15:25 AlexAbraham hey
15:25 AlexAbraham anyone know how to get the color of a pixel from a videograbber>
15:25 AlexAbraham ?
15:25 AlexAbraham I tried doing grabber.getPixelsRef().getColor(600,600)
15:25 AlexAbraham but that returned the color in grayscale for some reason
15:33 tubes4branes joined #openframeworks
15:34 tubes4branes what is the best way to do cross development, where one developer is on a Linux box, the other on OS X with openframeworks?
15:42 martincatchoom joined #openframeworks
15:51 jedahan joined #openframeworks
15:57 AlexAbraham hey
15:58 tubes4branes hi
15:58 AlexAbraham anyone know why ofSetColor(ofColor) would make the color grayscale?
15:58 martincatchoom left #openframeworks
15:58 AlexAbraham i did grabber.getPixelsRef().getColor(600,600); to get the color
16:00 tubes4branes Alex, I'm pretty new to open frameworks, so I'm sorry I don't know.
16:01 jedahan AlexAbraham, mind gist'ing your code?
16:01 AlexAbraham sure
16:02 AlexAbraham https://gist.github.com/AlexAbraham1/b4fa5739593e9f173351
16:03 AlexAbraham here is the entire ofApp.cpp file if you need
16:03 AlexAbraham https://gist.github.com/AlexAbraham1/47437c86cd286ace26d7
16:06 jedahan AlexAbraham next time i'd recommend giving gist.github.com the .cpp extension, so it will syntax highlight, https://gist.github.com/jedahan/1f73d5274f857b4b50a1
16:08 AlexAbraham ok :-)
16:08 jedahan hmm, so are you sure the color at 600,600 isn't gray?
16:09 jedahan what would be neat, is to change the x & y for getColor, to be the mouse position x & y
16:09 AlexAbraham well i moved a purple piece of paper in front of the camera and the whole screen was purple
16:09 jedahan so it might be working
16:09 AlexAbraham no but the circle was gray
16:09 jedahan ahh i see
16:09 AlexAbraham I logged the color as i moved the camera around and although the values were changing rgb always stayed the same number
16:10 jedahan ok, lemme recreate the ofApp.h and see what I can debug
16:11 AlexAbraham https://gist.github.com/AlexAbraham1/24315d90ae9d4d6c1277
16:11 AlexAbraham that should help :-)
16:13 jedahan ahh this is android, ok i've never tried android
16:13 jedahan gonna see if it runs fine on osx
16:15 jedahan ok cool, so i'm getting the same issue
16:16 AlexAbraham nice
16:17 jedahan AlexAbraham grabber.setPixelFormat(OF_PIXELS_MONO); // // this makes the camera directly return grayscale image, faster!
16:17 jedahan hmmm
16:19 AlexAbraham you think thats it?
16:21 jedahan Well let's look at the docs for setPixelFormat
16:22 jedahan I mean, the comment pretty clearly says grayscale image
16:22 jedahan and you are grabbing the color from the grabber pixels
16:22 AlexAbraham but when i convert the grabber to a texture and display it its not in grayscale
16:22 AlexAbraham but for some reason the pixels are
16:22 AlexAbraham weird
16:23 jedahan yeah, that is definitely weird
16:23 jedahan but an interesting place to look at the code
16:23 jedahan how come the getPixels and texture are different? and should they be?
16:23 jedahan I have no idea
16:23 jedahan https://gist.github.com/c06b014af68e7c408d87
16:26 jedahan wait, wtf ? https://github.com/openframeworks/openFrameworks/blob/cce8c9e5b5150a6465901b6681a2719f4b026d6b/libs/openFrameworks/video/ofVideoGrabber.cpp#L89
16:27 AlexAbraham well switching it to OF_PIXELS_RGB from OF_PIXELS_MONO did the trick :-)
16:27 jedahan yeah
16:28 jedahan honestly commenting out that line worked for me too
16:28 jedahan buut im super confused
16:28 jedahan as to how that changes anything because according to the code, it doesn't even matter, as qt doesn't support other formats
16:28 jedahan besides rgb
16:31 jedahan ahh ok
16:31 jedahan so the comments may be incorrect
16:31 jedahan hooray for templates
16:31 AlexAbraham :D
16:32 jedahan getPixels returns a pointer of PixelType, which can be grayscale, rgb, or rgba
16:32 jedahan and all those functions work on PixelType, and do the right thing(TM)
16:33 jedahan cool
17:02 igorline joined #openframeworks
17:07 GuidovanPossum joined #openframeworks
17:21 jedahan joined #openframeworks
17:29 mhashmi joined #openframeworks
17:46 vade joined #openframeworks
17:59 jekyllRo joined #openframeworks
18:15 mhashmi joined #openframeworks
18:21 pizthewiz joined #openframeworks
18:32 mihi_tr joined #openframeworks
18:55 AlexAbraham joined #openframeworks
18:55 AlexAbraham hey
18:55 AlexAbraham which function comes first draw() or update()?
18:59 pizthewiz AlexAbraham: "By default the update() and draw() methods are synced, meaning that update() gets called first and then draw()." https://github.com/openframeworks/ofBook/blob/master/03_setup_and_project_structure/chapter.md
19:01 mhashmi joined #openframeworks
19:09 jedahan joined #openframeworks
19:11 nylki_ joined #openframeworks
19:24 pizthewiz joined #openframeworks
19:29 admsyn joined #openframeworks
19:53 vade joined #openframeworks
20:23 vade joined #openframeworks
20:28 pizthewiz joined #openframeworks
21:04 jekyllRo joined #openframeworks
21:24 jekyllRo joined #openframeworks
21:51 jekyllRo1 joined #openframeworks
21:54 booltox joined #openframeworks
21:55 jekyllRo joined #openframeworks
22:50 sh1v joined #openframeworks
22:53 jekyllRo joined #openframeworks
22:53 starPause joined #openframeworks
22:53 Pando joined #openframeworks
22:53 DrCode joined #openframeworks
22:53 cuba joined #openframeworks
22:53 The_Fly joined #openframeworks
22:54 jchillerup joined #openframeworks
22:55 Pisuke joined #openframeworks
22:57 DrCode joined #openframeworks
22:57 jchillerup joined #openframeworks
22:57 The_Fly joined #openframeworks
22:57 cuba joined #openframeworks
22:57 Pando joined #openframeworks
22:57 starPause joined #openframeworks
22:57 jekyllRo joined #openframeworks
22:57 sh1v joined #openframeworks
22:57 booltox joined #openframeworks
22:57 pizthewiz joined #openframeworks
22:57 vade joined #openframeworks
22:57 admsyn joined #openframeworks
22:57 sebllll joined #openframeworks
22:57 oneironaut joined #openframeworks
22:57 roxlu_ joined #openframeworks
22:57 asper joined #openframeworks
22:57 jacres joined #openframeworks
22:57 Hurtzy joined #openframeworks
22:57 keeran joined #openframeworks
22:57 qDot_ joined #openframeworks
22:57 loop_ joined #openframeworks
22:57 evhan55 joined #openframeworks
22:57 davidnunez joined #openframeworks
22:57 peejay joined #openframeworks
22:57 ChanServ joined #openframeworks
22:57 boltR joined #openframeworks
22:57 Joel_re joined #openframeworks
22:57 simensen joined #openframeworks
22:57 _rm joined #openframeworks
22:57 Pisuke joined #openframeworks
22:58 oneirona1t joined #openframeworks
23:11 tapout joined #openframeworks
23:19 pizthewiz joined #openframeworks
23:30 pizthewiz joined #openframeworks
23:48 GuidovanPossum joined #openframeworks

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