Camelia, the Perl 6 bug

IRC log for #openframeworks, 2013-10-21

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

All times shown according to UTC.

Time Nick Message
00:37 somtd joined #openframeworks
00:44 robot left #openframeworks
02:41 veryphatic joined #openframeworks
03:41 jacres_ joined #openframeworks
08:57 roxlu joined #openframeworks
10:18 roxlu joined #openframeworks
10:59 Median_ joined #openframeworks
11:00 Median_ Hello
11:27 workergnome joined #openframeworks
11:37 roxlu joined #openframeworks
12:11 igorline joined #openframeworks
13:02 tgfrerer [5~/names
13:15 Median_ could anyone help me with a simple ofVideoGrabber application? I'm struggling to display webcam image using openframeworks
15:00 somtd joined #openframeworks
15:04 Hurtzy joined #openframeworks
15:12 vade joined #openframeworks
16:14 admsyn joined #openframeworks
16:56 GuidovanPossum joined #openframeworks
16:58 somtd joined #openframeworks
17:40 pizthewiz joined #openframeworks
17:47 laserpilot joined #openframeworks
17:49 laserpilot anyone here have any glReadPixels experience with fbo's?
17:49 laserpilot my fbo keep's re-allocating when i try to read a subsection of it's pixels
17:50 admsyn :/
17:51 admsyn are you tripping the copy constructor somewhere by chance? That might do it..
17:51 admsyn otherwise vOv
17:51 laserpilot ah yeah i think so
17:51 laserpilot in glReadPixels i was doing &pixels instead of pixels.getPixels()
17:51 laserpilot for the ref to pass them into
17:52 laserpilot doink
17:52 admsyn yeah but that wouldn't copy, unless you're passing it into a function that's not pass-by-reference
17:52 admsyn I think.. I don't know if ofFbo is doing anything particularly clever with ref counts or whatever
17:53 admsyn oh wait, pixels.getPixelsRef()
17:53 admsyn right
17:53 admsyn :)
17:54 laserpilot yeah because i was going like glReadPixels(0,0,width,height,GL_RGBA, GL_UNSIGNED_BYTE, &pixel) it decided i needed to re-allocate my fbo too
17:54 laserpilot but now everything works as expected
17:54 admsyn woop
17:54 laserpilot mostly love how i end up solving my issue as soon as i ask the question
17:55 admsyn I have solved many questions by typing them into the IRC box and realizing what's up as I'm doing it :)
17:55 admsyn http://en.wikipedia.org/wiki/Rubber_duck_debugging
17:57 admsyn so, fun story, I'm messing around with Xcode templates last night, trying to get a cool setup for starting new oF apps without the PG
17:57 admsyn so you just pick "Empty App" in the "openFrameworks" category when doing a new project in Xcode (Alongside Cocoa Application, Command-line app, etc)
17:57 admsyn and as I'm messing with that Xcode overwrites my whole openFrameworks/apps/
17:58 admsyn folder
17:59 admsyn apparently the default behaviour when you don't properly specify what your product name is is to take the folder you're trying to start a new project in, go one folder up in the heirarchy, and overwrite that folder as foldername.xcodeproj
17:59 admsyn so I ended up with openframeworks/apps/apps.xcodeproj
17:59 admsyn instead of… all of my sketches ever
17:59 pizthewiz Interesting, I'd love to see the console output from that
17:59 admsyn pizthewiz: it was nothing, actually
17:59 admsyn if you mean Console.app
17:59 pizthewiz + http://bugreporter.apple.com
18:00 pizthewiz Yeah, that sounds pretty nasty.
18:00 admsyn yeah probably not a bad idea..I don't know how much effort they give Xcode templates though, AFAICT it's undocumented
18:00 admsyn but actually pretty sensible if you know XML / plists
18:01 pizthewiz I was tasked with finding a similar bug once in an unnamed piece of software -> after some indeterminate amount of time running (hours/days/weeks…), the app would blow out /
18:01 admsyn :|
18:01 admsyn it had root priveledges for extra awesome, right ? :3
18:02 pizthewiz Strange that, I can't imagine it did, but I can't imagine any other situation where that would have been possible
18:03 pizthewiz Does Cinder's project generating tool use Xcode templates, I can't remember…
18:03 admsyn no they do their own thing with XML
18:03 admsyn it's pretty neat too
18:03 pizthewiz I think you can find the system templates and then work backward from there
18:03 admsyn yeah that's what I did, I actually got pretty close. In terms of just making a thing that works I actually got it ~95% of the way
18:03 pizthewiz There is some sort of tokenizing syntax for the app prefix / file naming right?
18:04 pizthewiz Oh nice, are you considering those at all instead of PG?
18:04 admsyn but getting it to make exactly the same output as the openFrameworks PG is harder because Xcode seems to have hardcoded opinions about Where Things Aught To Be
18:04 pizthewiz Then you get a cute oF icon right in Xcode too right?
18:04 admsyn of course :3
18:04 admsyn that part's easy
18:04 pizthewiz Ahh, I wonder if you could use .xcconfig files as well?
18:05 admsyn I wanted to pre-load it with a few cool starter templates like "Empty App" "Minimal App" "Full screen frag shader app" etc
18:05 admsyn yeah you can, you basically just point it at files and it does the right thing (tm)
18:05 admsyn and then you can specify what "groups" they go in
18:05 pizthewiz Hmm, which part wasn't working?
18:05 admsyn i.e. folders in Xcode that aren't actually folders on disk
18:05 admsyn just getting the layout right
18:06 pizthewiz oF still builds as a project dependency right?
18:06 admsyn so Xcode wants to make a heirarchy like thing.xcodeproj/thing/all-your-code
18:06 admsyn but the oF default is thing.xcodeproj/all-your-code
18:06 admsyn yeah that's easy, you just include the openFrameworksLib.xcodeproj file as one of the "Nodes" and you're done
18:07 pizthewiz Right, but you can pull in stuff outside @(SRCROOT) no? I think by default it uses absolute paths but you can replace them with relative no?
18:07 admsyn yeah, it's relative by default in Xcode templates though
18:07 admsyn one sec I'll show you the gist
18:08 pizthewiz You could just create a project and then lay it out all how you want, then use the resulting .pbxproj as your base / reference
18:08 admsyn oh the other cool thing is you can specify what options you're presented with when you select the template, including dropdowns / checkboxes / etc
18:08 admsyn and then use the results of those to preprocess your template's files
18:09 pizthewiz Oh that is cool, so you could prompt the user for some creation-time changes
18:10 igorline joined #openframeworks
18:10 admsyn Yepp, and prompt for "Sketch name" instead of "Product name" and take out the organization identifier and other icky stuff like that
18:10 admsyn The system templates are in /Applications/Xcode.app/Contents/Deve​loper/Library/Xcode/Templates/Project Templates
18:10 admsyn there's a whole inheritence heirarchy that's pretty neat
18:11 admsyn so there's Base/Base.xctemplate that almost everything inherits
18:11 admsyn and Prefixable.xctemplate that everything inherits to automatically do the XYZAppDelegate thing
18:11 admsyn etc
18:12 pizthewiz Neat but probably a bit complex huh
18:12 admsyn yes :)
18:12 pizthewiz Though that might suggest you could create a base oF template, then others could dangle off of it
18:12 admsyn in that "large organization making XML to solve everyone's use-cases" kind of way
18:13 admsyn yeah exactly, so you could just throw in an extra option or two but have everything else Just Work
18:13 admsyn I was working on a thing that'd let you specify your OF_PATH in the menu, and have it persist between projects (for example)
18:14 admsyn it's surprisingly user-friendly though, except for the whole "nuke everything you've ever loved" thing
18:15 admsyn I'm surprised it's so modify-able and yet undocumented
18:15 admsyn seemingly
18:15 pizthewiz oF did have templates back in the day right?
18:15 pizthewiz (Xcode templates that is)
18:15 admsyn yeah but I think that was an Xcode 3 thing and more of a copy/paste style thing
18:15 admsyn IIRC
18:15 admsyn but yeah it did
18:32 igorline joined #openframeworks
19:38 robot joined #openframeworks
20:56 bilderbuchi joined #openframeworks
22:34 jedahan joined #openframeworks
22:56 GuidovanPossum joined #openframeworks
23:11 somtd joined #openframeworks
23:17 somtd joined #openframeworks
23:42 pizthewiz joined #openframeworks
23:57 workergnome joined #openframeworks

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