Camelia, the Perl 6 bug

IRC log for #openframeworks, 2013-08-22

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

All times shown according to UTC.

Time Nick Message
00:18 dantheman joined #openframeworks
00:30 GuidovanPossum joined #openframeworks
01:39 bakercp joined #openframeworks
02:21 superFluid joined #openframeworks
07:19 luteberget joined #openframeworks
07:58 andreas_ joined #openframeworks
08:54 DrCode joined #openframeworks
08:56 DrCode joined #openframeworks
09:52 andreas_ joined #openframeworks
10:33 nongio joined #openframeworks
10:35 andreas_ joined #openframeworks
10:48 tgfrerer joined #openframeworks
10:53 DrCode joined #openframeworks
10:54 ssb0 joined #openframeworks
10:55 ssb0 hi's. i wan't a transparent background but i can't seem to succeed
10:57 ssb0 i used ofEnableAlphaBlending together with ofBackground(255,255,255,0)
10:58 ssb0 any deas what i could be doing wrong here?
11:02 starPause joined #openframeworks
11:22 kikko_fr ssb0 : by transparent background you mean you want a transparent window ?
11:23 seb_ly joined #openframeworks
11:24 ssb0 yes
11:24 ssb0 kikko_fr: i mean a transparent window indeed
11:24 kikko_fr ok then it requires a bit more work
11:25 kikko_fr if you're on mac, the ofxTransparentWindow works well : http://forum.openframeworks​.cc/index.php?topic=4811.0
11:26 ssb0 hm and otherwise?
11:26 kikko_fr hmm I know glut doesn't provide any simple way of doing this crossplatform
11:27 kikko_fr not sure about glfw but I fear it's the same
11:29 ssb0 I'm actually on osx, but i'd like to know how for learning purposes. the full story is i'm trying to draw generatvie shapes with a transparent background for later work in photoshop. so in the end i'd like to export it as a png with a tnasparent background
11:30 kikko_fr exporting a transparent png won't be a problem, since you can create a transparent FBO, draw inside this FBO and then save its pixel as PNG
11:31 kikko_fr what's problematic is to show a transparent OpenGL window that shows what's beneath the window (the OS windows..etc)
11:31 ssb0 ah ok
11:32 ssb0 well, i'll try drawing to transparent fbo first since that seems to solve my problem
11:38 CarlitosSagan joined #openframeworks
12:04 ssb0 hm
12:05 ssb0 now i just get a transparent background
12:07 ssb0 drew lines within an fbo, drew the fbo. and when a button is pressed, an ofPixels is created and allocated, fbo.readToPixels(ofPixels that was just allocated) and ofSaveImage
12:07 ssb0 what did i do wrong?
12:08 ssb0 http://pastebin.com/ZLAiLYjy
12:11 kikko_fr hmm
12:11 kikko_fr looks like you're not allocating the fbo
12:16 ssb0 i' not, but it does draw to screen?
12:17 ssb0 so it shouldn't be a problem not?
12:19 kikko_fr hmm indeed then it shouldn't
12:21 kikko_fr oh actually it does
12:21 ssb0 oh
12:21 kikko_fr first line of ofFbo::begin() :
12:21 kikko_fr if(!bIsAllocated) return;
12:21 kikko_fr so what you see is not your fob being drawn, just the normal gl buffer
12:21 kikko_fr fob -> fbo I mean
12:22 ssb0 ah ok. well allocating gives me glitchy results. what should i use for the channels argument?
12:23 ssb0 i used 100 now and i got the following "errors"
12:23 ssb0 [notice ] ofFbo: checkGLSupport(): maxColorAttachments: 8, maxDrawBuffers: 8, maxSamples: 8 [warning] ofFbo: allocate(): clamping numSamples 100 to maxSamples 8 for frame buffer object0
12:25 kikko_fr you graphic card support 8 samples max
12:25 kikko_fr == antialiasing 8x
12:26 ssb0 should i just leave the channels argumet 0?
12:26 kikko_fr what does your call look like ?
12:27 ssb0 fbo.allocate(ofGetWindowWidth(), ofGetWindowHeight(), GL_RGBA,100);
12:28 ssb0 and the result looks like this: http://picpaste.com/Screen_Shot_201​3-08-22_at_1.27.32_PM-WfL7AhpE.png
12:28 bakercp joined #openframeworks
12:29 kikko_fr that's what's being drawn to the screen or the saved image ? or both ?
12:30 ssb0 drawn to the screen
12:30 ssb0 no image seems to be saved at all
12:31 kikko_fr hmm
12:32 ssb0 http://picpaste.com/Screen_Shot_201​3-08-22_at_1.31.04_PM-4XIBhmS2.png
12:32 ssb0 another result from the same code
12:38 kikko_fr I think you need to clear the fbo first
12:38 ssb0 hm
12:38 kikko_fr otherwise it will be filled by whatever it finds in memory
12:38 ssb0 before fbo.begin or after?
12:39 kikko_fr try adding this after fbo.bebgin
12:39 kikko_fr ofClear(0, 0, 0);
12:39 kikko_fr ofClear(0, 0, 0, 0);
12:40 ssb0 you seem to be perfectly right thanks :)
12:40 ssb0 the saved png is still empty though
12:41 superFluid joined #openframeworks
12:42 ssb0 i think i got it!
12:47 ssb0 thanks for the help!
12:49 kikko_fr cool! you're welcome
13:36 andreas_ joined #openframeworks
13:59 jacres joined #openframeworks
14:05 neue joined #openframeworks
14:42 vade joined #openframeworks
14:45 admsyn joined #openframeworks
15:05 superFluid joined #openframeworks
15:26 pnitsch joined #openframeworks
15:53 pnitsch joined #openframeworks
16:04 admsyn joined #openframeworks
16:08 seb_ly left #openframeworks
16:43 superFluid joined #openframeworks
16:50 andreas joined #openframeworks
17:50 vade joined #openframeworks
18:29 andrea___ joined #openframeworks
18:53 kritzikratzi joined #openframeworks
19:21 underdoeg joined #openframeworks
19:21 underdoeg hey all
19:21 underdoeg anybody knows a little about the new programmable renderer thing?
19:22 underdoeg I am updating ofxFenster and need some basic introduction into some of the new graphic internals...
19:23 admsyn I'm not really that familiar with it..but what sort of trouble are you running into?
19:25 underdoeg well, I have multiple windows in different sizes
19:25 underdoeg so I need to set the viewport before every individual draw method
19:26 underdoeg ofViewport(0, 0, getWidth(), getHeight());
19:26 underdoeg but every window has the same vewport as the first one
19:27 admsyn huh
19:27 admsyn I recall something like a setMultiwindow(true) appearing in the API
19:27 admsyn but I'm not sure what the details of what it does are
19:29 underdoeg hmm can't find it...
19:30 underdoeg I wonder if it has something to do with the matrixStack
19:32 underdoeg although I feel like it shouldn't
19:32 underdoeg well, I guess I'll ask tim, I think he knows about that area
19:34 admsyn yeah I think a vine of tim's is what gave me the impression setMultiwindow existed :)
19:34 underdoeg haha ok
19:36 underdoeg remember the url?
19:38 admsyn pew https://vine.co/v/hZWWdnv1pnY
19:42 underdoeg ah yes, that is something else though
19:43 underdoeg cool stuff
19:46 underdoeg well... I'm going to use a simple glViewport for now
19:46 admsyn yeah I think ultimately any multiwindowing in oF is a bit of a hack and / or unsuported right now
19:47 admsyn unfortunately
19:47 underdoeg yes it is. but ofxFenster is now way more "native" than before
19:47 underdoeg no more external library dependencies etc
19:47 underdoeg but yes, the whole c style functions stuff is a little bit of a problem
19:49 admsyn ohhh I see, I didn't realize ofxFenster was a multiwindow manager ;)
19:50 admsyn yeah I think you're going to need to ping arturo or tim to get good details about the internals
19:55 underdoeg will do, thanks
20:03 andreas_ joined #openframeworks
21:27 readywater joined #openframeworks
21:28 readywater Yerg, quick question: Eliot's ofxGrabCam has a dependency of of3dMouseEventArgs.h which doesn't seem to exist anywhere...
21:31 admsyn does it? The only reference to of3dMouseEventArgs.h seems to be ofxDraggableNode..
21:32 readywater Yerp, sorry. It is in draggableNode
21:33 admsyn yeah that seems to be totally an invention of ofxDraggableNode vOv
21:33 admsyn only hit on github
21:34 readywater Ya
21:35 readywater Ah well, will roll me own
23:09 a1ex4nder joined #openframeworks
23:27 superFluid joined #openframeworks

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