Perl 6 - the future is here, just unevenly distributed

IRC log for #openframeworks, 2013-12-04

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

All times shown according to UTC.

Time Nick Message
23:15 spudeater joined #openframeworks
23:15 Lar joined #openframeworks
23:50 robot joined #openframeworks
00:32 Graff_ joined #openframeworks
01:06 ofTheo joined #openframeworks
02:46 jvcleave joined #openframeworks
03:02 admsyn joined #openframeworks
03:17 pizthewiz jvcleave: ES2 on the Raspberry Pi doesn't support sampler2DRect right? I'm trying to just write a simple passthrough following your omxPlayerShaders and failing :0\
03:18 jvcleave not sure - you have a gist?
03:22 pizthewiz jvcleave: bit messy since I was going to post this to the forum and wanted it as compact as possible: https://gist.github.com/pizthewiz/7781829
03:22 jvcleave might be  just sampler2D
03:24 pizthewiz Yeah I think so too, but I can't quite grok how my shader is different from your simple passthrough in omxPlayerShader - I'm getting all black output with the ES2 shader
03:25 jvcleave i would try just uniform sampler2D
03:26 jvcleave also try instead of
03:26 jvcleave ofRect(0, 0, fbo.getWidth(), fbo.getHeight());
03:26 jvcleave image.draw(0, 0);
03:26 pizthewiz Yep that is what I have, let me try with an all red image to if it is just sampling from the wrong point
03:28 pizthewiz Drawing just flushes drawing into the shader though no, I thought for some reason it didn't matter what was being drawn?
03:29 jvcleave working with fbo/shaders is in a bizarre state
03:30 jvcleave see this issue
03:30 jvcleave https://github.com/openframeworks/openFra​meworks/issues/2593#issuecomment-26657402
03:30 jvcleave your combo should work though as you are using fbo/shader in update
03:31 pizthewiz Lemme try drawing the image instead of a rect -- I keep going back to your omxPlayerShaders example trying to figure out what is different and drawing a blank
03:32 jvcleave that may not be the best source as the omxPlayer uses weirdo EGLImages
03:33 pizthewiz Ahh ok
03:33 jvcleave the are ofTextures in the end but have non-default shit
03:33 pizthewiz Maybe I'll try just drawing the shader directly in draw and skipping the FBO to see if that yields different results
03:33 pizthewiz WHOA!
03:33 jvcleave yeah - weirdness?
03:33 jvcleave https://github.com/jvcleave/rendererT​estApps/tree/master/fboShader-update
03:34 jvcleave maybe try that one
03:34 pizthewiz replacing ofRect(0, 0, fbo.getWidth(), fbo.getHeight()); with image.draw(0.0f, 0.0f) did it!
03:34 pizthewiz I have no idea why!
03:34 pizthewiz But cool, I'm super happy to have gotten it to work
03:34 jvcleave btw you aren't clearing your fbo in update - that may break it tho
03:35 pizthewiz Good point, though in theory I should just be overwriting it in full each time
03:36 jvcleave yeah - just depends on your app
03:37 pizthewiz The whole point of getting shaders working was so I could try and compare performance of normal enableAlpha/draw/draw/disableAlpha to some simple shaders to do it -- all in hopes of boosting framerate
03:38 jvcleave yeah - in optimizing I have found using unsigned char* instead of ofPixels is noticeably faster
03:39 pizthewiz Thanks for helping with that ES2 shader drawing hangup, very curious that drawing the image works but drawing a rect doesn't. I don't know enough to really know what is at play, but am very happy to have a solution :0)
03:39 jvcleave hopefully it will all get consistent soon
03:40 jvcleave in the meantime reference that issue for the workarounds and what works
03:40 pizthewiz Is it worth filing an issue for, or not really an issue?
03:41 pizthewiz Ah this is a manifestation of #2593?
03:41 jvcleave i think once we solve the above issue/tests it will be fine
03:41 jvcleave yes it is
03:42 pizthewiz Tricky stuff, I'll comment and post a link to the gist
03:43 jvcleave thats cool but I have the testApps
04:24 pizthewiz Yup, now I'm definitely hitting the FBO issue you mentioned, after a few iterations of drawing different content into it, it just stops drawing entirely
06:13 LCID_Fire joined #openframeworks
06:26 Seich joined #openframeworks
06:41 pizthewiz left #openframeworks
06:51 Pickled_chickenf joined #openframeworks
06:53 Seich joined #openframeworks
07:04 Seich joined #openframeworks
07:45 Seich joined #openframeworks
07:47 ofarturo joined #openframeworks
08:45 Seich joined #openframeworks
09:05 petersaints joined #openframeworks
09:07 tgfrerer_ joined #openframeworks
09:25 achim joined #openframeworks
09:37 LCID_Fire joined #openframeworks
09:46 Seich joined #openframeworks
10:03 spudeater joined #openframeworks
10:47 Seich joined #openframeworks
11:46 ofarturo joined #openframeworks
11:48 Seich joined #openframeworks
11:49 Seich_ joined #openframeworks
12:19 jhlee joined #openframeworks
12:50 Seich_ joined #openframeworks
13:33 Gordo jvcleave: Hey, admsyn said you had a version of ofxOpenNI that had working swipes, is that your current fork in github?
13:35 LCID_Fire joined #openframeworks
13:51 Mushussu joined #openframeworks
13:51 Seich_ joined #openframeworks
13:52 Mushussu Hello, I have got problem with wiringPI and serial communication in OpenFrameworks
13:52 okjake joined #openframeworks
13:52 Mushussu All is OK when I use mini com, I see the byte on my oscilloscope
13:56 Mushussu I begin with :         fd = serialOpen("/dev/ttyAMA0",9600);
13:57 Mushussu And write at the serial with : serialPutchar(fd, compteur);
13:58 Mushussu computer is a unsigned char
13:59 Mushussu computer is an unsigned char
14:00 Mushussu Sorry the IRC modify my variable
14:06 lukaszw joined #openframeworks
14:07 robot joined #openframeworks
14:29 kashima joined #openframeworks
14:40 predster joined #openframeworks
14:41 Seich_ joined #openframeworks
14:42 Seich_ joined #openframeworks
14:43 Seich_ joined #openframeworks
15:08 LCID_Fire joined #openframeworks
15:12 Seich_ joined #openframeworks
15:43 LCID_Fire joined #openframeworks
15:52 spudeater joined #openframeworks
15:53 Seich_ joined #openframeworks
16:00 Mushussu joined #openframeworks
16:02 LCID_Fire joined #openframeworks
16:55 spudeater joined #openframeworks
16:55 Seich_ joined #openframeworks
17:07 dantheman joined #openframeworks
17:50 Seich_ joined #openframeworks
17:55 okjake joined #openframeworks
18:00 neshume joined #openframeworks
18:00 neshume hi guys, has anyone try to use gles2 on windows (using angle project)?
18:00 neshume with openframeworks of course
18:06 pizthewiz joined #openframeworks
18:11 Seich_ joined #openframeworks
18:13 dantheman joined #openframeworks
18:18 admsyn joined #openframeworks
18:32 egradman joined #openframeworks
18:35 egradman joined #openframeworks
19:27 nicedice joined #openframeworks
20:23 fossterer joined #openframeworks
20:23 fossterer arturoc: ping
20:24 fossterer ofarturo: ping
20:25 ofarturo hi
20:27 fossterer Heyy.. I am new to Github.. I just went to your fix and got the RAW of 7 files
20:27 fossterer I mean - here -- https://github.com/openframeworks/openFrameworks​/commit/fd3f5b71e031e50b05092dc1e145531c45849904
20:28 fossterer So I should copy your BaseTypes.h too?
20:28 ofarturo mmh, there's another commit, perhaps just download the full zip and move your application there
20:28 ofarturo yes
20:28 fossterer you mean 'replace the whole openframeworks compilation and recompile' ?
20:29 ofarturo i mean the whole OF folder there's parts in the ofxAndroid addon too
20:29 ofarturo or try changing that file and see if that works
20:30 fossterer Please be here... please!!!
20:34 pizthewiz 😬
20:45 fossterer Meanwhile I had to add this line..    "void   setAccumulateTouchEvents(bool accumEvents);" to 'ofAppAndroidWindow.h'
20:46 fossterer Compilation was successful... but emulator say "Fatal Signal: 11... VM Aborting"
20:47 fossterer app doesn't run
20:52 ofarturo i've changed more stuff since 0.8 in the android classes so copying the files won't work even if it compiles the java side will try to call methods that don't exist any more
20:52 ofarturo i would try copying your projects in a download of the latest version from github and importing it in a new workspace in ADT
20:54 fossterer Download completed... Please.. I'll be getting back here once I try as you said.
20:54 fossterer (I downloaded your fork)
20:58 Seich_ joined #openframeworks
21:00 spudeater joined #openframeworks
21:02 ofarturo my fork?
21:03 ofarturo i'm not sure it's up to date so better to use master from the main repo
21:03 Seich_ joined #openframeworks
21:03 ofarturo i've done all the changes there
21:03 ofarturo fossterer
21:13 jvcleave Gordo - not sure about the ofxOpenNI stuff
21:18 fossterer ofarturo: I mean I downloaded 'zip' from - https://github.com/arturoc/openFrameworks
21:18 fossterer You don't recommend this?
21:22 pizthewiz fossterer: he mentioned before that you might be better off grabbing a zip from main repository instead of his fork as the changes he made on his fork have been integrated
21:24 Seich_ joined #openframeworks
21:24 fossterer pizthewiz: Alright.. Now I get it..
21:28 fossterer Wait! You mean the bleeding edge 'zip' from "https://github.com/openframeworks/openFrameworks" ?
21:31 jvcleave fossterer - yes
21:32 fossterer hmm... trying on it..
21:32 Gordo jvcleave: Did you ever have the NITE swipes working?
21:33 Gordo jvcleave: Comparing your fork to some 'current' forks, quite a big diff :-)
21:33 jvcleave i didn't use nite much more than person detection - basic skeletons
21:33 jvcleave yes - I ended up pretty much rolling my own in the end and that was the start of it
21:34 jvcleave what platform are you on?
21:34 Gordo I am on OSX
21:34 jvcleave you using a kinect?
21:34 Gordo Yep.
21:34 Gordo I have gameoverhack working
21:34 Gordo But there isn't any swipe examples that I can find,
21:35 Gordo just the wave, hand up etc.
21:35 jvcleave yeah - you are pretty much stuck with openni 1 then - openni2 is much nicer but only works with the asus cameras
21:35 jvcleave (in the mac)
21:36 Gordo When I browse the NITE source, I see references to XnVSwipeDetector
21:36 Gordo I was hoping to find away to access the NITE implementation / methods through OpenNI / ofxOpenNI.
21:36 Gordo Or is that wishful thinking?
21:37 jvcleave not sure  - you should have access to all the generators so you should be able to implement via openni examples
21:39 fossterer Compilation throws error - "make[2]: *** [../../../libs/openFrameworksCompil​ed/lib/android/obj/armv7/Debug/libs​/openFrameworks/utils/ofThread.o] Error 127"
21:40 Gordo Thanks, I am going to work some more this evening, can I bug you later on?  I assume you are in au?
21:41 Seich_ joined #openframeworks
21:41 jvcleave usa
21:41 jvcleave this is where you probably want to start
21:41 jvcleave https://github.com/gameoverhack/ofxOp​enNI/blob/master/src/ofxOpenNI.h#L298
21:44 Gordo Sry, gameoverhack is in au.
21:45 ofarturo fossterer: can you post more of the error on a pastebin or similar?
21:45 fossterer sure..
21:47 fossterer http://pastebin.com/xvFeHEEp
21:48 fossterer Heyy, There's no such thing as -- "/home/shashank/Packages/android-ndk-r8d​/toolchains/arm-linux-androideabi-4.8/"
21:48 Gordo Right, so when I run addHandsGenerator, addAllHandFocusGestures I get Wave, Click, RaiseHand, MovingHand gestures.
21:48 fossterer in my system
21:49 ofarturo you should be using ndk r9b
21:50 fossterer Currently I have "android-ndk-r8d".. Should I move on necessarily to r9b ?
21:50 Gordo I was trying to use addHandFocusGesture, but without the generator supporting the new gesture I get an error
21:51 ofarturo you can change the makefiles to use a previous version there's instructions in the setup guide on how to do it but it would probably be easier to use r9b
21:52 fossterer hmm.. earlier I saw it saying "use r8d only"... Things changed over the months?
21:53 ofarturo yes after 0.8.0 i've updated it to use the latest ndk
21:54 fossterer :-)
22:00 admsyn hey is anyone getting issues building for iOS now?
22:00 admsyn I'm getting GL_PROGRAM_POINT_SIZE errors, as implied by a couple issues from josh, pizthewiz et al
22:00 admsyn 'use of undeclared identifier GL_PROGRAM_POINT_SIZE in ofGLProgrammableRenderer
22:00 pizthewiz I think Josh pushed a fix last night no?
22:01 admsyn yeah but I just got fully updated and I'm hitting it :/
22:01 pizthewiz Hmm
22:01 admsyn pizthewiz: referring to https://github.com/openframew​orks/openFrameworks/pull/2716 right ?
22:01 pizthewiz Yeah
22:01 admsyn GL_POINT_SPRITE_OES isn't a symbol iOS has AFAICT
22:02 * admsyn isn't so great at GL ES stuff
22:02 pizthewiz You shouldn't even be seeing GL_PROGRAM_POINT_SIZE though since TARGET_OPENGLES should be defined
22:02 admsyn vOv
22:02 * admsyn tries a clean and build
22:02 pizthewiz Right but your compile error is GL_PROGRAM_POINT_SIZE not being defined, not GL_POINT_SPRITE_OES… curious
22:02 pizthewiz Building in the simulator?
22:02 admsyn no for an iPad in this case
22:03 admsyn pizthewiz: http://i.imgur.com/g7wQ2qj.png
22:04 admsyn oh wait
22:04 admsyn derp
22:04 pizthewiz Oh look at that, you don't have PR#2716!
22:04 admsyn yepp
22:04 * admsyn seppuku
22:04 pizthewiz You could pull or just comment out those lines
22:05 admsyn yeah there it goes
22:05 admsyn 😅
22:06 jvcleave anyone forced to change their github pass today?
22:06 admsyn I haven't
22:07 jvcleave weird - i could get into the site but not commit
22:07 jvcleave push i mean
22:13 pizthewiz Does your account have a bunch of failed logins? https://github.com/settings/security
22:19 jvcleave nice page - didn't know about it - but no (actually less on that page tho than probably should be)
22:25 fossterer heyy! I remember reading the last time.. "to use ADT 21 only".. Does it still hold?
22:34 fossterer arturoc: @admsyn: jvcleave: pizthewiz: I waould like to grab a picture of you all (in this ofCamera in my NEXUS4)
22:34 admsyn wat
22:34 fossterer it's working!!!
22:34 admsyn oh cool!
22:34 admsyn good to hear :)
22:36 fossterer ohh.. no "Squirrel is missing"
22:37 fossterer (From the 3dmodelloaderexample)
22:41 fossterer hmm.. at last it did.. I've to leave. Bye!

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