Perl 6 - the future is here, just unevenly distributed

IRC log for #openframeworks, 2013-11-20

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

All times shown according to UTC.

Time Nick Message
00:29 igorline joined #openframeworks
01:18 vade joined #openframeworks
01:35 admsyn joined #openframeworks
02:02 nikistyxx joined #openframeworks
02:26 admsyn joined #openframeworks
02:29 suin069 joined #openframeworks
03:04 admsyn joined #openframeworks
03:20 modality joined #openframeworks
04:09 vade joined #openframeworks
04:22 LadyK joined #openframeworks
04:25 modality joined #openframeworks
04:35 vade joined #openframeworks
04:46 modality joined #openframeworks
04:48 modality joined #openframeworks
05:43 pizthewiz joined #openframeworks
05:51 modality joined #openframeworks
06:28 pizthewiz joined #openframeworks
06:49 pizthewiz joined #openframeworks
07:02 modality joined #openframeworks
09:34 igorline joined #openframeworks
09:50 jvcleave joined #openframeworks
09:59 neue joined #openframeworks
11:19 jonbro joined #openframeworks
11:20 jonbro boink boink
13:28 LCID_Fire joined #openframeworks
13:43 jvcleave_ joined #openframeworks
13:49 superFluid joined #openframeworks
14:53 LadyK joined #openframeworks
15:09 modality joined #openframeworks
15:09 modality joined #openframeworks
15:20 vade joined #openframeworks
15:22 jvcleave joined #openframeworks
16:49 pizthewiz joined #openframeworks
16:51 vade joined #openframeworks
17:06 GuidovanPossum joined #openframeworks
17:51 admsyn joined #openframeworks
17:59 gracegotlost joined #openframeworks
18:09 admsyn joined #openframeworks
18:13 pizthewiz admsyn: Do you know offhand if a tool generates 'addon_config.mk' files for addons, where do those come from?
18:13 admsyn nope, I think they're more-or-less add hoc
18:13 admsyn *ad hoc
18:14 pizthewiz Ahh, I created an addon yesterday and was poking around to make sure it was a good citizen.
18:15 admsyn yeah I think using the one in ofxKinect / ofxMidi is a good start
18:15 admsyn I have a minimal one in ofxAudioUnit
18:15 pizthewiz Great, I'll give that a look, thanks!
18:15 admsyn np
18:15 admsyn btw jacres: wicked lighting!
18:16 pizthewiz For the examples, PG only generates projects for the platforms that are locally built right?
18:16 admsyn -> https://vimeo.com/79830965
18:16 admsyn pizthewiz: I think that's the default yeah
18:17 admsyn IIRC there's a command line way to get it to do more stuff
18:17 admsyn I'm not too familiar with the PG's capabilities
18:17 pizthewiz In theory is 'addon_config.mk' for the Makefile based building, which is incomplete?
18:18 admsyn I think basically it's a way to encode some helpful data in makefile-friendly format
18:19 admsyn I don't know too much about things implementing it because my head's down in Xcode land :)
18:19 admsyn though the Xcode plugin uses it, natch :3
18:19 admsyn I think in theory ofxaddons.com will make use of the data too (IIRC it does something with the ADDON_TAGS metadata(
18:20 pizthewiz Gotcha, so more forward-looking than required now
18:20 admsyn yeah
18:20 admsyn though more things using addon_config will encourage more cool applications of it, ofc
18:21 pizthewiz All the more reason to start adding them now then
18:27 GuidovanPossum wow that video's cool admsyn!
18:28 admsyn not my doing :) it's jacres' work
18:31 GuidovanPossum sure just watched his other ones too, neat work
18:46 jvcleave joined #openframeworks
19:24 jedahan joined #openframeworks
19:36 GuidovanPossum joined #openframeworks
19:43 fossterer joined #openframeworks
19:47 fossterer IS forum.openframeworks.cc working for anyone?
19:48 modality joined #openframeworks
19:49 modality joined #openframeworks
19:51 GuidovanPossum joined #openframeworks
19:52 fossterer HELO
19:52 pizthewiz fossterer: works for me
19:52 fossterer can you gove me the exact url?
19:52 fossterer give*
19:52 pizthewiz http://www.downforeveryoneorjus​tme.com/forum.openframeworks.cc
19:53 fossterer lol... that doesn't help.. 'forum.openframeworks.cc' is never showing up any page for the last 2 weeks
19:53 * pizthewiz has no idea what you are talking about
19:55 fossterer still.. the link to the forum from that 'downforeveryone...' page isn't showing up any page..
19:56 pizthewiz I don't know what to tell you, I can browse the forum without issue.
20:10 fossterer alright... I need some help with 'androidcameraexample'... Can I change the default camera to back camera?
20:13 kritzikratzi joined #openframeworks
20:18 admsyn joined #openframeworks
20:24 admsyn joined #openframeworks
20:39 pizthewiz admsyn: should ADDON_SOURCES_EXCLUDE allow me to have stuff in my addon that is ignored by pG / OFPlugin? I have… Boost which I only need in the header search path, I don't need it added to the project and both PG and OFPlugin seem to blow up trying to add my addon
20:40 modality joined #openframeworks
20:40 admsyn my parsing implementation in the plugin is pretty cowboy, I wouldn't be surprised at all if it didn't work
20:41 admsyn that said, what's the syntax you're using in the file?
20:41 modality joined #openframeworks
20:41 admsyn ADDON_SOURCES_EXCLUDE should just be, say, windows-only stuff you want to exclude when building on osx etc
20:46 admsyn pizthewiz: are you doing the /% thing at the end of your paths?\
20:46 pizthewiz Ahh, crap, I was just using "libs/boost"
20:47 pizthewiz % is considered a wildcard of the contents?
20:47 admsyn yeah it's supposed to be "recursively everything in this folder"
20:47 pizthewiz That'll do it
20:48 admsyn my plugin definitely shouldn't be the judge of whether or not the makefile is syntactically correct :) I need a day to legitimize the implementation a bit
20:48 admsyn it's made of regex and prayers right now
20:50 pizthewiz Hmm, that still seems to hang PG
20:50 admsyn vOv
20:50 admsyn can you pastebin what you're working with?
20:51 pizthewiz https://gist.github.com/piz​thewiz/88db05e09eb7b1488e0a
20:52 admsyn yeah looks legit
20:53 admsyn though maybe the PG doesn't like the trailing slash on your first ADDON_INCLUDES
20:53 admsyn or the lack of trailing slash on the appending line
20:54 pizthewiz Hmm, lemme compare to ofxMidi and see if there are any hints
20:56 pizthewiz No dice, thanks for giving that a look though, I'll add a note in the README
20:57 admsyn does the plugin do what you want? I could use a little corpus of makefiles that should be legit but the plugin fails on
21:05 pizthewiz The plugin still beachballs, I suspect it (along with PG) is still trying to do something with the 8,654 header files in libs/Boost that I'm trying to get it to ignore
21:05 admsyn ahh yeah
21:05 admsyn the plugin needs to add everything and then subtract stuff you don't want, since I can't find an API for adding stuff ad hoc
21:05 admsyn and it needs to happen on the main thread as far as I can tell
21:05 admsyn so = beachball
21:06 admsyn it should pull through eventually though :) (not that that's really acceptable)
21:08 fossterer Hi! I am not able to run 'androidcameraexample' on my nexus (API 17) but it runs on emulator (API 17).... Why does it happen so?
21:09 admsyn fossterer: what happens when you try and run it?
21:10 fossterer Just a blank black rectangle
21:10 admsyn do you know if you're still getting frames, and those frames are just black?
21:10 admsyn i.e. is cam.isFrameNew() firing ~30 times a second?
21:11 admsyn alternatively, are the black frames you get of a sane size? or are they 0,0?
21:11 fossterer you want me to put a log statement inside isframenew()?
21:12 admsyn sure, just see if it's actually happening
21:12 admsyn and also check the size of the frames you get
21:12 fossterer what is this size of frames?
21:14 admsyn you can do something like cam.getTextureReference().getWidth()
21:24 kritzikratzi joined #openframeworks
21:26 dvncan joined #openframeworks
21:31 fossterer @admsyn.. I have an observation: As you can see here - http://pastebin.com/3qs1fsAz frames_one_sec is updated and printed. Right?
21:32 admsyn sure
21:32 fossterer well.. It returns 0 on my device where as 12 or 13 on emulator!
21:33 fossterer I mean the output from-- ofDrawBitmapString("fps: " + ofToString(ofGetFrameRate()),20,350);
21:33 admsyn is 0?
21:33 admsyn the actual frame rate of your app is 0?
21:34 fossterer oops.. sorry I intended to paste the second line -         ofDrawBitmapString("camera fps: " + ofToString(camera_fps),20,370);
21:35 admsyn ok but what if you skip all that and just log something every time you get past the grabber.isFrameNew() check?
21:36 admsyn do you get one message? zero? a few? etc
21:41 fossterer Well, as you pointed out - if(grabber.isFrameNew()) is not firing.. I put a 'testVar++' inside it which is not getting incremented
21:42 fossterer Move that testVar++ above the 'if', it is incrementing as expected
21:42 admsyn alright, so the camera isn't opening at all then? no error message in the console?
21:42 admsyn first thing I'd be thinking is maybe permissions, in that you have to give your app permission to access the camera
21:43 admsyn second would be to see if there's anything odd about your particular model and camera access in general
21:43 admsyn e.g. on android dev forums
21:44 fossterer permissions part - It is the example shipped with the package... also it is fine with emulator ""API 17"". so I think we can rule this out?
21:44 admsyn well, no
21:44 admsyn you have to give permission on an app by app basis
21:44 admsyn I'm too familiar with android dev though
21:45 superFluid joined #openframeworks
21:45 fossterer ok.. here's the error I see - BufferQueue [unnamed-19132-0] query: SurfaceTexture has been abandoned!
21:47 fossterer (and in the next line) error start preview java.lang.RunTimeException:startpreview failed at android.hardware.camera.startPreview(Native Method)
21:47 admsyn so googling that makes it seem like it's an issue with an older version of openCV
21:47 admsyn and the workaround is here : http://stackoverflow.com/a/14006736/704596
21:47 admsyn fwiw in the future it'd be easier for me to give you a quick answer if you let me know errors that are showing up in the console
21:48 admsyn are you familiar enough with java to look around in the oF source for the camera?
21:50 fossterer sure... let me run through it..
21:51 admsyn I'd guess the part you're looking for is in here somewhere https://github.com/openframeworks/openFramework​s/blob/master/addons/ofxAndroid/ofAndroidLib/sr​c/cc/openframeworks/OFAndroidVideoGrabber.java
21:54 admsyn are those the only two error messages you get?
21:54 admsyn it looks like there's a bunch of OF-specific error messages that are possible to be logged that might help narrow it down
21:57 admsyn anyway I've got to head out right now, but I'd be double-checking that you've got the right SDK / NDK combo
21:57 admsyn if you do, this sounds like a legit bug and you should open an issue
21:57 admsyn good luck
22:23 jvcleave joined #openframeworks
22:42 vade joined #openframeworks
23:03 admsyn joined #openframeworks
23:08 GuidovanPossum joined #openframeworks
23:26 quad0 joined #openframeworks
23:39 admsyn joined #openframeworks
23:42 robot joined #openframeworks

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