Perl 6 - the future is here, just unevenly distributed

IRC log for #openframeworks, 2014-01-24

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

All times shown according to UTC.

Time Nick Message
23:00 robot joined #openframeworks
23:41 admsyn joined #openframeworks
23:42 oneironaut joined #openframeworks
00:02 lukaszw joined #openframeworks
01:35 oneironaut <3
01:50 nylki joined #openframeworks
01:52 robot joined #openframeworks
03:58 vade joined #openframeworks
04:00 entarro joined #openframeworks
05:26 entarro joined #openframeworks
05:42 oneirona1t joined #openframeworks
05:59 entarro joined #openframeworks
08:00 ofarturo joined #openframeworks
08:02 ncls joined #openframeworks
08:03 ofarturo1 joined #openframeworks
08:34 ofarturo joined #openframeworks
09:44 neue joined #openframeworks
09:55 nylki joined #openframeworks
09:57 Razorien joined #openframeworks
10:55 DrCode joined #openframeworks
11:14 DrCode joined #openframeworks
11:54 rogerm joined #openframeworks
11:55 rogerm Hi guys, anyone uses ofxPostProcess?
11:55 rogerm how do i manipulate shader params in there?
12:13 johanSebastian joined #openframeworks
12:24 rogerm ??
12:39 ncls rogerm sorry, I have no idea .. I noticed that you often ask questions and nobody can help you !
13:33 lukaszw joined #openframeworks
13:35 nylki joined #openframeworks
13:44 Hurtzy joined #openframeworks
13:50 The_Fly joined #openframeworks
13:57 OliverUv joined #openframeworks
14:16 DrCode joined #openframeworks
15:44 ncls joined #openframeworks
16:43 nicedice joined #openframeworks
16:55 GuidovanPossum joined #openframeworks
16:58 tgfrerer i wonder if there's a windows pro present at the moment - i'm working on windows with VS2012 at the moment, which is pretty sweet, but i'd like to output my ofLogNotice etc. to my Visual Studio Console. is there a standard method to do this?
16:58 admsyn joined #openframeworks
17:31 pizthewiz joined #openframeworks
17:38 entarro joined #openframeworks
17:53 entarro joined #openframeworks
18:10 vade joined #openframeworks
18:45 wuu joined #openframeworks
18:51 _JP_ joined #openframeworks
18:55 admsyn hi _JP_
18:57 admsyn no you should be fine, do you actually need to do a begin() / end() for the shader between the two draws though?
18:57 admsyn as in, does it work if you just do it once?
18:59 admsyn well it could be quite a few things, like if the begin() / end() pairs aren't balanced for the shaders and FBOs
19:00 admsyn the effect you're seeing is that the shader isn't doing anything on the second draw, but everything else is fine?
19:01 admsyn I'd guess that it's something relatively straightforward, like unbalanced begin()/end() pairs or something similar..
19:01 admsyn can you post your draw code to pastebin?
19:06 admsyn np
19:08 admsyn ok, so what you want to see is fboPass1 and fboPass2 drawn?
19:08 admsyn it looks like your second block is supposed to be fboPass2.begin() etc, but it's fboPass1
19:09 admsyn as in fboPass1.draw() ?
19:09 admsyn ok
19:09 admsyn and if you do that it still doesn't work?
19:10 admsyn and if you take out the second block, then you get a blurred fboPass1?
19:11 admsyn also fyi you can throw { } wherever you want, I usually use them to go around begin()/end() pairs that need to be balanced, since it's a little easier to trace what's going on
19:11 admsyn but it looks like you're fine in that respect
19:11 nylki joined #openframeworks
19:12 admsyn yeah but most IDEs will "fix" that for you, if you add some { } in there you'll probably get the "right" indentation, and it won't look weird (IMO)
19:12 admsyn I'm not sure if it's a bug
19:12 admsyn anyway the  { } isn't important
19:13 tgfrerer _JP_ if you want to do a two-pass blur, you might want to bind fbopass1 in line 30, and not fboInit
19:13 tgfrerer otherwise you might just doing the same pass twice
19:13 pizthewiz Didn't someone on the forum post about using a shader twice or was that a GitHub issue?
19:14 tgfrerer oops, line 29 i meant
19:14 tgfrerer it says: shaderBlur.setUniformTexture("SRC",fboInit.getTextureReference(),0);
19:14 tgfrerer and it might want to be: shaderBlur.setUniformTexture("SRC",fboPass1.getTextureReference(),0);
19:15 tgfrerer aaaah, i see
19:16 tgfrerer hmmm. which renderer are you using? the programmableGL one or the standard one?
19:16 tgfrerer yep
19:17 tgfrerer cool. there was an issue lately, with similar gist on github, one moment ...
19:17 tgfrerer https://github.com/openframeworks/openFrameworks/issues/2761
19:18 tgfrerer does the fix suggested in there solve your issue?
19:24 tgfrerer yep
19:24 tgfrerer right
19:25 tgfrerer oh, strange. are you using openframeworks from master or from git?
19:26 fossterer joined #openframeworks
19:27 tgfrerer i see. this might be a bug that has already been fixed in the latest git version of openframwworks
19:28 tgfrerer yes, that would be great!
19:29 tgfrerer that way you can help me to find out if the bug report on git is already fixed in latest of !! =)
19:29 tgfrerer my hunch is that the ! fixes it.
19:29 admsyn _JP_: which OS / IDE are you on?
19:29 tgfrerer yes, that shoul work
19:30 admsyn basically yes, though
19:30 tgfrerer admsyn: a make clean + make all should do it, right?
19:31 admsyn yepp, but was just going to suggest "clean and build" if it was Xcode :)
19:31 admsyn words for things
19:32 admsyn \o/
19:36 tgfrerer fantstic! i can add this to the github issue... thanks for finding that bug, _JP_ !!
19:36 fossterer This statement inside ofApp::setup() doesn't get called - ofLogWarning("Hello") << "a warning print";
19:36 fossterer I don't get the reason..
19:38 admsyn fossterer: as in you don't see stuff showing up in the console? or did you throw a breakpoint on it and execution seems to skip over it somehow?
19:39 fossterer Yeah, it doesn't show anything in LogCat
19:40 tgfrerer _JP_ =) thanks, dude !
19:41 admsyn fossterer: what if you try ofLogError() or ofLog()?
19:41 admsyn I'm going to guess it's just a log level thing
19:42 admsyn or try ofSetLogLevel(OF_LOG_VERBOSE) and see if that makes it show up
19:44 fossterer Even this doesn't work! - void ofApp::setup(){ ofLog( OF_LOG_VERBOSE, " already included" );
19:49 admsyn going to guess that's an android thing then? ofarturo?
19:49 admsyn fossterer: which openFrameworks version are you using again?
19:57 ofarturo joined #openframeworks
20:01 fossterer I downloaded it from GitHub... 3 weeks ago
20:02 fossterer ofArturo: An issue with Android OF. Are you available?
20:06 admsyn there's not really a limit I believe, and setting an FBO to null should do it
20:09 admsyn oh derp, I got my C++ crossed with Obj-C
20:09 admsyn if you have an ofPtr<ofFbo> you could set *that* to NULL
20:09 admsyn if you just have an ofFbo you could either do something like an fbo.allocate(0, 0)
20:09 admsyn or fbo = ofFbo()
20:10 admsyn but usually if you're concerned about managing memory like that you'd use an ofPtr (or shared_ptr, they're the same thing but it'll be easier to google shared_ptr)
20:11 admsyn if you're using a "smart" pointer, like ofPtr or shared_ptr
20:12 admsyn fbo = ofFbo() is kind of a roundabout way of doing the same thing without introducing a pointer
20:12 admsyn usually you would just use a pointer and set it to NULL
20:12 admsyn *a smart pointer
20:12 admsyn using a regular pointer (like ofFbo * fbo) will "leak" it
20:12 admsyn which is bad
20:13 admsyn yeah..you're setting fbo to be a copy of a blank fbo (i.e. one which hasn't been allocated yet)
20:13 admsyn again, that's a weird way of doing it, usually you would just use a shared_ptr :)
20:15 admsyn yeah to find out more about what's going on there look up "copy constructor" and "copy assignment operator"
20:15 admsyn np
20:16 admsyn :D
20:26 fossterer I second that! _JP_:
21:03 peter joined #openframeworks
21:04 fossterer I am trying to debug some "listener" but I am not able to "log" anything at all!!
21:04 fossterer Anything, even in a regular ofApp::setup()
21:04 Guest46850 been trying to obtain source for laser tag. Tried http://openframeworks.cc/lasertag/LaserTag2002Xcode.zip and http://openframeworks.cc/lasertag/download/ but both point to the same page with videos but no source
21:08 admsyn Guest46850: http://www.muonics.net/blog/index.php?postid=26#download
21:08 admsyn oh I see
21:08 admsyn yeah vOv
21:09 Guest46850 So there is something wrong and I am not being terribly dense?
21:09 admsyn yeah the links aren't working for me either
21:13 admsyn if it's any consolation, there's a pretty good chance it would take a lot of modification to get it to work now :)
21:17 pizthewiz joined #openframeworks
21:22 Guest46850 I went to the hackaday gathering in los angeles on Tuesday and saw laser tag running on a macbook. I don't know what version of OS X.
21:26 admsyn yeah I'm not saying it's not possible, just that it probably won't work out of the box
21:39 pizthewiz joined #openframeworks
22:44 pizthewiz joined #openframeworks

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