Perl 6 - the future is here, just unevenly distributed

IRC log for #openframeworks, 2014-04-15

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

All times shown according to UTC.

Time Nick Message
00:09 admsyn joined #openframeworks
00:24 dantheman joined #openframeworks
00:42 vade joined #openframeworks
00:46 kdh-1334_ joined #openframeworks
00:51 bbogart joined #openframeworks
00:52 bbogart jvcleave, hello. I never ended up getting a reset email. Did you have a chance to ask Arturo?
00:55 vade joined #openframeworks
01:06 decultured joined #openframeworks
01:16 booltox joined #openframeworks
01:53 tgfrerer_ joined #openframeworks
02:23 tgfrerer joined #openframeworks
02:40 decultur_ joined #openframeworks
02:40 decultur_ joined #openframeworks
02:43 vade joined #openframeworks
02:45 decultured joined #openframeworks
02:50 kdh-1334_ joined #openframeworks
03:26 pizthewiz joined #openframeworks
03:36 Joel_re joined #openframeworks
03:40 kdh-1334_ joined #openframeworks
04:08 booltox joined #openframeworks
04:41 pizthewiz joined #openframeworks
05:52 kdh-1334_ joined #openframeworks
06:00 edasian joined #openframeworks
06:01 edasian hello
06:03 dantheman joined #openframeworks
06:04 edasian anybody know why sample project not load in my Xcode 4.2 (1.6.8)? thanks
06:20 oneironaut joined #openframeworks
06:29 evhan55 joined #openframeworks
07:03 underdoeg joined #openframeworks
07:05 underdoeg left #openframeworks
07:16 ncls joined #openframeworks
07:57 underdoeg joined #openframeworks
08:11 underdoeg joined #openframeworks
08:12 kdh-1334_ joined #openframeworks
08:22 underdoeg left #openframeworks
08:24 nylki joined #openframeworks
08:53 kikko_fr joined #openframeworks
09:14 neue joined #openframeworks
09:32 Joel_re joined #openframeworks
09:45 kdh-1334_ joined #openframeworks
10:33 tomasgf joined #openframeworks
10:34 tomasgf hello everyone. I am a newbie in oF, doing an experiment with objets and I am finding very difficult a particular thing
10:35 tomasgf (maybe I am doing it completely wrong)
10:36 tomasgf which would be the proper way to call a method from the main class from another class?
10:39 tomasgf I am generating a particle system and I want that each particle send an OSC message at certain point (e.g. when reaching the screen border)
10:40 tomasgf the method to send OSC messages is on the main app class
10:40 tomasgf I thought about calling ofApp::sendOSC but somehow I can't…
10:58 tomasgf I found a way using dynamic_cast
12:38 kdh-1334_ joined #openframeworks
13:07 vade joined #openframeworks
13:33 nylki joined #openframeworks
14:14 kdh-1334_ joined #openframeworks
14:42 kdh-1334_ joined #openframeworks
14:49 dantheman joined #openframeworks
15:00 kikko_fr joined #openframeworks
15:15 ofarturo joined #openframeworks
16:06 vade joined #openframeworks
16:21 pizthewiz joined #openframeworks
16:42 ncls joined #openframeworks
16:51 admsyn joined #openframeworks
16:53 jedahan joined #openframeworks
17:03 uberdan joined #openframeworks
17:14 vade is there any plan to make OpenFrameworks an actual, I dont know, framework or library, because this folder heirarchy shit is really the most horrible thing to work with :
17:16 admsyn vade: you mean the heirarchy in libs?
17:16 vade no I mean the heirarchy in the entire project for all apps, examples
17:16 vade the paths, the requirements for nesting
17:16 vade etc etc
17:16 vade OpenFrameworks should be a compiled library and headers that I import into my project
17:16 vade not a project / folder structure I put all my work within
17:17 ludkiller joined #openframeworks
17:17 admsyn zach was just making strides to fix that I think a couple days ago (RE: apps heirarchy), but that's per project and not the libs you're talking about
17:17 admsyn yeah I agree, I've cobbled together an openFrameworks.framework for projects in the past
17:18 vade it just makes wrangling shit feel like im working in Unix circa 1983
17:18 vade paths paths nesting blah project paths includes blah blah
17:18 admsyn yeah no argument from me there :)
17:18 vade of course not all platforms have the niceties of .frameworks
17:19 admsyn part of the roadmap for 1.0 is to figure out a way of having some of the bigger components like the media-handling stuff be sort of addon-like, which would cut down a lot on the giant blob-o-stuff that you need in OF core
17:19 admsyn so it's on the radar
17:21 vade Well, that doesnt really mean anything in terms of how oF is integrated into your project
17:21 vade id like to just drag a .a or a .dylib or a .framework and point to a single logical set of headers and be done
17:21 vade of course, id also like a pony
17:21 vade and a lot more time in the day.
17:21 admsyn I remember trying to make an openframeworks.framework target for the OF osx project that comes with OF..don't remember why I stopped actually
17:21 vade Because its a pain in the ass.
17:21 admsyn sounds feasible enough right? Maybe there was some gotcha
17:21 admsyn yeah
17:22 vade install_name_tool for loader
17:22 vade then you have class name issues
17:22 vade then you have linker problems
17:22 vade its not fun, ill tell you that, but, yea
17:24 vade Ive done custom frameworks for Syphon and that was kind of annoying even though I was just using standard shit
17:25 vade a lot of small gotchas
17:25 admsyn I think the FMOD dylib would also be a pain
17:26 admsyn I don't know, maybe I'll take a stab at it again this weekend.. I had kind of made peace with it :) I think last time I tried was like 2 years ago
17:40 vade haha, yea, im sure there are tons of gotchas
17:41 decultured joined #openframeworks
17:50 nylki joined #openframeworks
17:53 pizthewiz openFrameworks as an actual .framework would be a little weird though, just bundling it wouldn't make it feel framework'ish, it would probably need a bunch of umbrella and wrapper headers no?
17:54 pizthewiz But yeah, the include tree feels a bit like you are bootstraping a kernel build or something
17:56 GuidovanPossum joined #openframeworks
17:57 pizthewiz I don't really dig the oF-as-Xcode-subproject thing either, think about all the extra electricity squandered rebuilding oF needlessly :0)
17:57 admsyn mine only rebuilds if I actually change something in OF core?
17:57 admsyn like even between projects
17:58 pizthewiz Ahh, you don't clean your app project at all eh?
17:58 pizthewiz By default the clean ripples :0\
17:58 admsyn ah yeah that's true
17:59 pizthewiz I wonder if you change any of the arch/target/sdk settings if that also forces a rebuild
17:59 vade it does.
17:59 vade why would openFrameworks as a .framework feel weird?
17:59 pizthewiz I don't get the point though, most people download a binary build of oF, why do they want oF as a subproject?
18:00 pizthewiz OF_PATH should cover the header search path / ability to option click an oF symbol to load the relevant header right?
18:01 vade well, you would not need OF_PATH at all
18:01 vade the framework includes the headers
18:01 vade and adding the framework adds the header paths
18:01 pizthewiz Sure, I meant as things currently stand
18:01 vade a .framework has all that + versioning too
18:01 vade ok bbiab, lunchtime
18:01 pizthewiz Guessing that an actual .framework would be more objectionable, maybe we can at least clean up the static lib / header / subproject stuff
18:06 pizthewiz At present, the oF library just doesn't feel very NSBundle-framework-ey. What header would you import in your app? The entry points kinda dictate that it owns the app / runloop - I guess it wouldn't be any different from Qt.framework
18:28 kikko_fr joined #openframeworks
18:38 jedahan joined #openframeworks
18:58 GuidovanPossum joined #openframeworks
19:03 uberdan joined #openframeworks
19:07 vade Well, Cocoa is a framework
19:07 vade and it owns NSApplicationMain
19:14 vade and youd import either ofApp.h or ofMain.h
19:14 vade and that should be it.
19:14 vade unless you use addons, then you import those separately just like additional frameworks etc
19:14 vade and really those addons should be .a’s anyway
19:25 kikko_fr joined #openframeworks
19:28 nylki joined #openframeworks
19:41 vade hey admsyn
19:41 vade what was the tr1/memory fix?
19:41 vade I pulled latest and copied emptyExample
19:41 vade and im getting that error
19:48 admsyn vade: it's to set the stdlib to stdlibc++
19:48 admsyn from "compiler default"
19:48 vade yea, thats not working for me
19:48 admsyn since that's libc++ on 10.9
19:48 vade im reading https://github.com/openframeworks/openFrameworks/pull/2764
19:49 admsyn :/
19:49 vade im using emptyExample, and moving code into it from my olf ofxQCPlugins to update it for 0.8.1
19:49 vade right now, im base SDK 10.9
19:49 vade C++ standard library is
19:49 admsyn yeah that should just be it, I can build w/ 10.9 SDK by doing that fix
19:49 vade libstdc++
19:50 admsyn yeah
19:50 admsyn huh
19:50 vade yea, nanda, I get
19:50 vade did you mean std::tr1::shared_ptr
19:51 admsyn I guess try a clean, make sure there's not something overriding it etc..
19:51 vade yea, ive done a few cleans
19:51 vade no joy
19:51 admsyn you know xcode as well if not better than I do so I'm not too sure I can say anything that'll really help you out
19:51 admsyn as far as I know that's it
19:52 admsyn there's a .xcconfig that sets it too I think
19:52 admsyn that pizthewiz introduced a little while ago
19:52 admsyn I guess check if the OF project is overriding it for some reason?
19:52 admsyn all I got :)
19:52 vade openFrameworks seems to be compiling fine
19:52 vade the emptyExample isnt. im confused
19:53 vade I waste so much time due to OF’s weirdness with this shit
19:53 admsyn did you pull over your project as-is from a few years ago or generate a new one?
19:53 vade I used the emptyExample, duplicated it
19:53 vade and am adding my code in
19:55 admsyn oh actually you might be looking at a different error?
19:55 vade jesus christ this is annoying.
19:55 admsyn I don't think it's a "did you mean std::tr1::shared_ptr", I think it was an error trying to find the <tr1/memory> file
19:55 vade how many problems do I get to fix before I get to fix actual code problems
19:55 vade :D
19:55 admsyn sounds like 1 :p
19:55 * admsyn jokes
19:56 admsyn what line is it erroring on when it gives you the "did you mean.." ?
19:56 vade ofTypes 139
19:57 vade hm, there must be some paths messed up somewhere by accident
19:58 admsyn yeah I don't know, just tried copying the empty example into an addon and it worked for me
19:58 admsyn w/ OF master
19:59 vade yea, issue is I need ot change the build target
19:59 admsyn I can try and reproduce if there's anything more specific?
19:59 vade to a bundle / QCPlugin
19:59 admsyn oh I see
19:59 vade something must have gotten fucked there
19:59 vade im cross compiling OF into a bundle for QC and using my ofWindow / base app runloop shit
19:59 vade trying to update it for 0.8.1 because why not
20:02 admsyn so I just tried to add a bundle target and it automatically gave me a CLANG_CXX_LIBRARY of libc++
20:02 admsyn which might be relevant?
20:02 vade well
20:02 vade one sec
20:02 vade (thanks btw)
20:05 vade ok, yea
20:05 vade I must have messed something up somewhere when changing the target type
20:05 vade I just re-did my steps, and it seems uh, ‘better'
20:05 vade or at least, different
20:06 vade mad deprecated warnings
20:06 vade need to get video playback as a totally isolated set of addons
20:06 vade :D
20:06 admsyn ha
20:06 admsyn yeah :)
20:06 admsyn I /just/ got rid of all the OF warnings for 10.8 right before 10.9 SDK came out and deprecated all the things
20:07 vade yea
20:07 vade No more gworlds and old quicktime calls for anyone
20:07 vade thank god
20:07 vade now we have async key value loading and all sorts of other bullshit
20:07 admsyn are you saying you have opinions about AVFoundation?
20:07 * admsyn i kid
20:07 vade :P
20:07 vade I have opinions full stop
20:08 vade I hate all the tools, really
20:08 vade its insane
20:08 * vade sighs
20:09 vade oh ffs
20:10 vade oh, ok
20:11 vade maybe this is compiling
20:11 vade wholy shite
20:11 admsyn 🎉
20:11 vade wow maye im spelling
20:11 vade ;lsjdf;alksdjf
20:11 vade coffeee
20:11 vade yup ok
20:11 vade fuck me
20:11 vade this compiles now
20:11 vade I had one error in my texture wrapping code
20:18 Joel_re joined #openframeworks
20:20 vade ok folks lets see if this works
20:21 vade ah yes
20:21 vade fun
20:21 vade Library not loaded: @executable_path/libfmodex.dylib
20:22 vade cant use @executable
20:22 vade should be using @rpath
20:22 vade more of the ‘build a framework’ vs building an app fun
20:34 qDot_ Hahaha god this is even better than twitter.
20:37 vade :P
20:40 qDot_ DANCE THE MACH DYLIB DANCE FOR ME MONKEY
20:40 vade :P
20:40 vade Yea, seriously
20:40 vade for some reason fucking @loader_path isnt fucking working
20:40 qDot_ A dance I do not miss. At all.
20:40 vade Yea
20:41 vade Everything is horrible
20:41 vade I hate. Fucking. Everything.
20:41 qDot_ I used to have some seriously fucked up shell scripts working install_name_path magic.
20:41 vade ive actually been pondering going back to max MSP
20:41 vade thats how annoyed at everything I am
20:41 vade can you fathom that level of contempt
20:41 vade CANYOU!?
20:41 qDot_ Wow.
20:41 qDot_ Just. Wow.
20:41 vade I am so tired of typing fucking code
20:41 vade and hitting compile
20:41 vade and waiting for some bullshit error
20:42 vade ITS ALL A WASTE OF FUCKING TIME
20:42 vade my productivity has sunk to like, almost zero because of that shit, ha
20:42 qDot_ I highly advise you never to embark on the adventure of writing a web browser, then.
20:42 vade Oh, no
20:42 vade Yea, fuck that
20:42 qDot_ Especially a web browser that's also a phone OS
20:42 vade I actually am amazed at how good most web browsers are at dealing with syntax errors and understanding intent
20:42 vade ie, parsing HTMl/CSS etc
20:42 vade and outputting viable pages for broken code
20:43 vade if only compilers could get that good
20:43 vade imagine?
20:43 qDot_ Yeah, the sausage factory under that...
20:43 vade (thats scary as fuck)
20:43 vade (that actually is the worst idea ever)
20:43 vade (the security implications are terrifying but in terms of getting people up and running, amazing)
20:44 vade But I digress from my bitch-fest
20:44 vade how are you qDot_
20:44 qDot_ Eh, it's all buttplugs and javascript here lately.
20:46 vade nice.
20:47 nylki joined #openframeworks
20:49 vade oh hey, look at that
20:49 qDot_ 2.5 hours of media interviews on buttplugs today. Dunno why but it's like, a thing this week.
20:49 vade WEEE
20:49 vade -[QCImagePixelBuffer initWithFormat:baseAddress:releaseCallback:releaseInfo:bytesPerRow:pixelsWide:pixelsHigh:flipped:colorSpace:options:]: Argument "callback" does not verify "(address != NULL) || (callback == NULL)"
20:50 vade at least the plugin is loading now.
20:50 vade oh, ha
20:50 vade [ error ] ofTexture: getTextureData(): texture has not been allocated
20:50 vade 2014-04-15 16:49:44.436 Quartz Composer[33812:303] *** OpenGL error 0x0501 (invalid value) in function "-[QCOpenGLContext willPushRenderState:]"
20:51 LCID_Fire joined #openframeworks
20:53 admsyn so uh it's going well? :3
20:54 vade yea, basically
20:55 vade manageable problems now
21:02 vade weee
21:02 vade pic.twitter.com/dsqo9KQsj4
21:02 vade state machines are hard!
21:06 vade fuck GLEW
21:07 Joel_re joined #openframeworks
21:16 decultured joined #openframeworks
21:21 vade PFNGLGENFRAMEBUFFERSPROC SERIOUSLY NO
21:28 nylki joined #openframeworks
21:33 vade hey qDot_
21:33 qDot_ Yo
21:33 vade any reason why a GLEW function pointer would be 0x0 ?
21:33 vade this is so weird
21:33 vade im just attempting to bind glGenFrameBuffers
21:33 vade and I get exe bad access
21:35 qDot_ Hmm. Weird. Is it pastebin'able?
21:35 vade error: memory read failed for 0x0
21:35 vade ha
21:35 vade thats it
21:36 admsyn would it be a wrong thread / invalid context thing?
21:36 * admsyn shot in the dark
21:36 vade main thread
21:36 vade context is valid
21:36 vade already checked
21:36 vade :)
21:36 qDot_ Yeah it would seem like it couldn't figure out whether the context allows that call?
21:36 admsyn :(
21:36 vade other gl calls are valid
21:36 vade like, I can glGen the texture attachment
21:36 vade but the fucking fbo, no
21:39 vade im so fucking confused
21:39 qDot_ Tried glGenFrameBuffersEXT?
21:39 * qDot_ totally acts like he's programming OpenGL sometime in the last 3 years yup. >.>
21:40 vade yea, that was the original call
21:40 qDot_ So it can't find either of them?
21:40 vade but, GLEW prefers non EXT
21:40 vade nope
21:40 vade which tells me glew is fucked
21:40 qDot_ WTF weird
21:40 vade or not being linked?
21:40 qDot_ Oh, is this the only glew resolve you're doing?
21:40 vade well I mean, im just calling direct to GL
21:40 vade I never needed to deal with this before
21:41 qDot_ Did you call glewInit()? :D
21:41 vade haha
21:41 vade ofSetupOpenGL whatever does that
21:41 vade or, it should
21:41 vade maybe that changed?
21:41 vade other gl calls succeed though
21:43 * qDot_ has zero clue how that works in of.
21:43 vade OpenFrameworks has a bunch of custom function overrides it looks like
21:43 vade for gl vs glES
21:43 vade so they can have the same code paths
21:43 vade :\
21:43 vade typedef void (* glGenFramebuffersType) (GLsizei n, GLuint* framebuffers);
21:43 vade glGenFramebuffersType glGenFramebuffersFunc;
21:43 vade #define glGenFramebuffersglGenFramebuffersFunc
21:44 * qDot_ eyetwitch
21:44 vade yea
21:44 vade exactly.
21:44 * vade opens up maxMSP
21:44 * vade slams head on keyboard
21:45 qDot_ So I was asking earlier if the code was pastebin'able, not the error message. :)
21:45 vade sure
21:45 vade one sec
21:45 kikko_fr joined #openframeworks
21:47 vade https://gist.github.com/vade/10779708
21:47 vade dies on line 36
21:47 vade its… very basic GL
21:47 vade im tempted to just remove that code from openFrameworks core
21:47 vade that function redefine
21:48 qDot_ Wow. Yeah. That looks completely innocuous.
21:48 vade yup
21:48 vade thus my confusion
21:48 vade I dont write fancy code because im smart enough to know im not smart enough to debug it
21:48 vade I keep shit simple
21:48 vade grah
21:49 vade like
21:49 vade the texture is glGen’ed and has a value
21:49 vade wtf
21:49 qDot_ But the function pointer doesn't exist.
21:50 qDot_ Even though whatever symbol that define is representing does because otehrwise it wouldn't even compile.
21:50 qDot_ Good times.
21:51 vade yea
21:51 vade im super confused
22:03 vade oh wow this is fucked
22:03 vade if i include ofIMage
22:03 vade my defines get fucked
22:03 vade for the functions
22:05 pizthewiz joined #openframeworks
22:11 vade this is pissing me off to no end
22:22 pizthewiz vade: addons or just the oF bootstrap structure? :0)
22:22 vade everything
22:25 pizthewiz Anything more specific? :0)
22:25 pizthewiz I ran into a GL state leak on the Raspberry Pi, just layering ofRect/ofTrueTypeFont, that is good fun
22:26 vade oh, yea
22:26 vade thats the winding thing right?
22:26 vade I saw weird issues with that too
22:26 pizthewiz I thought winding was for shape filling?
22:26 * pizthewiz looks up winding
22:26 vade its all over the place,
22:26 vade it sets the normal front facing
22:27 vade so
22:27 vade GL_CCW is normals one way
22:27 vade but if you build your shit and dont have lighting on
22:27 vade it looks the same
22:27 vade turn lightingon
22:27 Joel_re joined #openframeworks
22:27 vade and turn culling on
22:27 vade shit vanishes or draws wrong
22:27 vade because winding in OF is all over the place
22:27 vade ofMesh does it one way
22:27 vade rect and primitives another
22:27 vade its all over the place
22:27 pizthewiz landmines to trip over
22:27 vade everything is horrible™
22:28 vade I want a cane
22:28 vade so I can shake it at the internet
22:28 * pizthewiz ports his application to PostScript
22:28 vade im trying to port some old BS to of 8.1
22:28 pizthewiz Wasn't CoreGraphics originally PostScript based? Maybe pre-OS X…
22:28 vade and its like
22:28 vade NO
22:28 vade yea
22:29 vade most of Quartz is Postscript
22:29 vade afaik
22:29 pizthewiz The QC wrapper?
22:29 vade yea
22:29 vade the qc wrapper
22:29 pizthewiz Ahh nice, the runloop/event pumping integration for stuff like that always confused me
22:29 vade it would be nice if of didnt use glew
22:29 vade :P
22:30 pizthewiz I thought for some reason it was GFLW everywhere?
22:30 pizthewiz Previously GLEW now GFLW?
22:30 vade oh god I have no idea anymore its all confusing bullshit
22:31 vade jesus ea a lots changed with the interchangeable render pipeline
22:31 vade im deep in ofAppWindow and my proxy is woefully out of date
22:32 pizthewiz Sounds gnarly, if you find the switch to flip that gives us a retina savvy NSWindow titlebar, be sure to flip that too :0)
22:34 pizthewiz The event pumping occurs in the window?
22:34 vade looks like it
22:35 pizthewiz Somehow I imagined an NSTimer at its core
22:35 vade void ofAppGLFWWindow::runAppViaInfiniteLoop(ofBaseApp * appPtr){
22:35 vade ofAppPtr = appPtr;
22:35 vade glfwMakeContextCurrent(windowP);
22:35 vade ofNotifySetup();
22:35 vade while(true){
22:35 vade ofNotifyUpdate();
22:35 vade display();
22:35 vade }
22:35 vade }
22:35 vade ofNotifyUpdate seems to have a timer/sleep thing
22:35 pizthewiz Ahh, I was gonna say that would otherwise get spammy
22:35 vade yea
22:36 loop_ joined #openframeworks
22:36 pizthewiz And I guess that is why AppNap can sleep it too
22:36 vade this annoys me
22:36 vade all of it
22:36 vade :D
22:36 pizthewiz 🍴it!
22:37 pizthewiz This one is cooler ⋔
22:39 decultured joined #openframeworks
22:59 decultured joined #openframeworks
23:01 decultured joined #openframeworks
23:02 johan__ joined #openframeworks
23:07 decultured joined #openframeworks
23:25 pizthewiz joined #openframeworks
23:46 admsyn joined #openframeworks
23:54 admsyn pizthewiz: the retina titlebar works now actually
23:54 admsyn in 0.8.1
23:54 pizthewiz Oh, is there some change I need to make to enable it?
23:54 admsyn if you set NSHighResolutionCapable or whatever it is in the info plist
23:55 admsyn yeah one sec I can find it if you like
23:55 pizthewiz Ahh, won't that make my GL context go Retina too though?
23:55 admsyn and then basically you get a 1 / 4 size window but everything's retina, and ofGetHeight() etc give you retina pixel values
23:55 admsyn yes
23:56 admsyn NSHighResolutionCapable in openFrameworks-Info.plist
23:56 pizthewiz Gotcha, trying it out now
23:57 admsyn and I'm 99% sure you need to be using a GLFW (default) window
23:57 Joel_re joined #openframeworks
23:57 pizthewiz Very interesting…
23:58 pizthewiz So then ofSetupOpenGL(640, 480, OF_WINDOW); actually creates a 320x240 retina window, but the context must still be 640x480
23:58 admsyn yes
23:58 pizthewiz Everything looks nice :0)
23:58 admsyn I know right :3
23:59 pizthewiz So ofSetupOpenGL is in pixels not points
23:59 pizthewiz Is that true of pretty much everything, pixels not points?
23:59 admsyn I have a thing where i've embedded webkit in front of OF, and turned the background rendering off on the webkit thing..so I get sexy text in front of my OF-ness
23:59 admsyn all retina css text-shadow-like
23:59 pizthewiz Ahhh, nice text must be soooooo pleasing
23:59 admsyn :3
23:59 admsyn and live reload natch
23:59 pizthewiz ofTrueTypeFont 💀💀

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