Perl 6 - the future is here, just unevenly distributed

IRC log for #openframeworks, 2014-02-11

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

All times shown according to UTC.

Time Nick Message
00:03 confor_MIDI joined #openframeworks
00:03 confor_MIDI hello, anyone there?
00:04 finger563 me
00:05 confor_MIDI alright, so I'm having trouble compiling the example projects in the repo
00:05 confor_MIDI on windows 8.1 on vs 2013
00:05 confor_MIDI ideas?
00:06 finger563 hmm so i'm basically using just linux on x64 or on RPi, but i've heard that you basically cant use vs2013 yet
00:06 finger563 for OF
00:06 finger563 that you should probably stick to vs2012 or 2010
00:07 confor_MIDI damn, well that explains
00:08 confor_MIDI couldn't just check out to this merge on the repo? https://github.com/openframeworks/openFrameworks/pull/2571
00:21 pizthewiz joined #openframeworks
00:52 oneironaut joined #openframeworks
00:56 pizthewiz joined #openframeworks
01:50 pizthewiz joined #openframeworks
02:58 lmccart joined #openframeworks
03:06 ilbot3 joined #openframeworks
03:06 Topic for #openframeworks is now Welcome to http://openframeworks.cc/ | logs at http://irclog.perlgeek.de/openframeworks/
03:27 pizthewiz joined #openframeworks
04:01 boltR joined #openframeworks
05:00 vade joined #openframeworks
05:19 jedahan joined #openframeworks
06:08 pizthewiz joined #openframeworks
06:16 vade joined #openframeworks
06:28 vade joined #openframeworks
06:44 lukaszw joined #openframeworks
07:23 pizthewiz joined #openframeworks
07:23 LCID_Fire joined #openframeworks
07:52 ofarturo joined #openframeworks
08:22 ncls joined #openframeworks
08:38 LCID_Fire_ joined #openframeworks
09:28 ubn2902 joined #openframeworks
09:30 ubn2902 hey guys, I am still working on Kinect + box2d and building according to the Snowman example. I was able to dodge all warnings and errors, but now get a 'Program received signal: "EXC_BAC_ACCESS", which indicates the program is trying to access an object that doesn't exists anymore? The code that gives this error is ; inline b2Fixture* b2Body::GetFixtureList()
09:30 ubn2902 {
09:30 ubn2902 return m_fixtureList;
09:30 ubn2902 } (inside b2Body.h)
09:30 ubn2902 which makes me think it is related to this snippet; for(int i = body.size() - 1; i >= 0; i--) {
09:30 ubn2902 box2d.world->DestroyBody(body[i].body);
09:30 ubn2902 }
09:31 ubn2902 which is exactly like the implementation in Snowman example, so not sure where things go wrong..
09:33 igorline joined #openframeworks
09:37 burningdog joined #openframeworks
09:43 ofarturo joined #openframeworks
09:51 burningdog left #openframeworks
10:07 Razorien joined #openframeworks
10:11 ncls joined #openframeworks
10:29 nylki joined #openframeworks
11:35 oneTwoSeven joined #openframeworks
11:46 _rm joined #openframeworks
13:03 lukaszw joined #openframeworks
14:06 vade joined #openframeworks
14:26 LCID_Fire_ joined #openframeworks
15:14 lmccart joined #openframeworks
15:20 ncls joined #openframeworks
15:29 nrosselot joined #openframeworks
15:29 nrosselot hello there
15:30 nrosselot anybody here?
15:30 ncls nrosselot: hello
15:30 nrosselot I need a big favor
15:30 nrosselot hello ncls
15:31 nrosselot I am looking for LaserTag source and cannot get it from the of site
15:31 nrosselot is there any other way I can find it
15:35 nrosselot anyone?
15:36 ncls sorry, what is lasertag ?
15:37 nrosselot is a project developed with openframwork
15:40 vade joined #openframeworks
15:40 ncls nrosselot: maybe it's on github ?
15:40 nrosselot how can I check that out?=
15:40 nrosselot http://openframeworks.cc/lasertag/LaserTag2002-VSProject.zip
15:41 nrosselot this is all I have
15:43 ncls did you download the zip ?
15:43 ncls can't figure out how to get it downloaded on my computer
15:44 vade joined #openframeworks
15:46 ncls it's not clear indeed
15:47 ncls http://www.muonics.net/blog/index.php?postid=26
15:48 ncls at the bottom of the page
15:48 ncls oh noes,
15:48 ncls it redirects to the link you just gave me
15:49 ncls sorry, I don't know
15:52 Hurtzy joined #openframeworks
15:52 nrosselot well, thank you very much
15:52 nrosselot I am not able to download anythig...
15:52 nrosselot don't know what else to do
16:01 finger563 joined #openframeworks
16:09 nicedice joined #openframeworks
16:28 LCID_Fire_ joined #openframeworks
16:36 vade joined #openframeworks
16:39 dantheman joined #openframeworks
16:39 dantheman yo
16:39 dantheman anyone around
16:42 ncls dantheman: I'm here
16:44 boltR joined #openframeworks
16:46 dantheman yo
17:12 finger563 yo-yo
17:23 dantheman joined #openframeworks
17:25 admsyn joined #openframeworks
17:34 admsyn _rm: you were asking about vs2013 the other day right?
17:35 admsyn it's a WIP, you can see the progress here https://github.com/openframeworks/openFrameworks/pull/2571
17:47 pizthewiz joined #openframeworks
18:01 oneTwoSeven joined #openframeworks
18:11 finger563 is there a document/page somewhere that simply explains the functionality of the input and output buffers for the OMX component?
18:11 finger563 I want callbacks for my input buffer empty and my outputbuffer full
18:12 finger563 so it seems like i should write data to the input buffer; which will trigger the callback when the input buffer is empty (ready to be filled/emptied again)
18:12 finger563 and each time the component finishes (encoding) the output buffer will be filled->triggering my other callback
18:12 finger563 which will allow me to read the output from the output buffer
18:13 finger563 how exactly should the system/setup work when i want everything handled in callbacks?
18:13 finger563 i.e. each time the input buffer is emptied by the component I write mroe data into it and tell it to empty again
18:13 finger563 and each time it has output ready for me I read it and write it to a file
18:17 yns joined #openframeworks
18:17 Hurtzy joined #openframeworks
18:30 Hurtzy joined #openframeworks
18:31 yns joined #openframeworks
18:36 finger563 anyone?
18:36 yns ?
18:37 finger563 i asked some questions some 20-30 mins ago about the i/o buffer callbacks, you know anything about them?
18:37 yns nope sorry
18:37 finger563 thanks anyway :)
18:37 yns :)
18:37 admsyn finger563: I'm not sure if you're asking about finding OMX stuff that already exists, or just some advice on how to make your own callback system
18:39 finger563 @admsyn: both?  I'm trying to use the OMX/ilclient framework for setting up callbacks properly
18:39 finger563 i think i've set it up properly, but I can't seem to get it to work
18:39 admsyn as in your callbacks don't get called?
18:40 finger563 so i was hoping someone could point me to a detailed explanation of how those systems work (only thing i know about them is from the comments about/in the functions)
18:40 finger563 or give a short explanation here :)
18:41 finger563 my current (very rough) test code is here: https://github.com/finger563/vac2014/blob/feature-callback-handlers/src/shaderApp.cpp
18:41 finger563 where i'm trying to set up the callbacks and do video encoding using callbacks (pass in the data through callback, get data out through callback)
18:41 admsyn yeah I don't personally don't know anything about OMX :) But if you give me some details about, like, the headers for the OMX thing you're using or your own code I can try to suggest something
18:42 * admsyn looks
18:42 finger563 these are the ilclient OMX wrapper i'm using: https://github.com/finger563/vac2014/tree/feature-callback-handlers/addons/ilclient/src
18:43 finger563 I'm using it w/ OF to process camera video through a shader and then write it to a file
18:47 admsyn that is a lot of code, and I can't exactly crack out an rPI to try and puzzle it out…can you at least point me at the lines that are important / aren't working?
18:47 finger563 ah sorry
18:47 finger563 just a sec :)
18:47 finger563 so the callbacks I'm using are :https://github.com/finger563/vac2014/blob/feature-callback-handlers/src/shaderApp.cpp#L85
18:48 finger563 and https://github.com/finger563/vac2014/blob/feature-callback-handlers/src/shaderApp.cpp#L117
18:48 finger563 and I set them up here: https://github.com/finger563/vac2014/blob/feature-callback-handlers/src/shaderApp.cpp#L308
18:48 finger563 though don't feel like you have to look at it; I can't say how much sense it will make if you don't know OMX
18:49 jedahan joined #openframeworks
18:49 admsyn the general flow of it makes sense :)
18:49 admsyn it looks like it's returning an error code that you're not checking, though, that might help?
18:49 admsyn ilclient_set_fill_buffer_done_callback returns a VCHPOST_
18:49 admsyn which I'd imagine is an error code, if it's like most C stuff ever
18:50 finger563 yea it is; the problem I'm having isnt that the callbacks aren't being called; it's that they arent' behaving the way I think they should
18:50 finger563 :/
18:50 admsyn oh I see
18:50 admsyn so how're they acting, and how do yhou think they should?
18:51 finger563 So it seems to me like the empty input buffer would be called when the OMX_EmptyThisBuffer call (which triggers a the empty) has finished (it's a non-blocking call)
18:51 finger563 at which point it's ready to accept new input data, so I give it some more
18:51 finger563 that data passes through the encoder and into the encoder's output buffer
18:52 finger563 when the data there is ready to be read, the fill_output_buffer_done callback should be called, and I should be able to read the data from it and write it to a file
18:52 yns joined #openframeworks
18:53 finger563 and the empty input buffer seems to work (i.e. it behaves like I said)
18:53 finger563 but the fill output buffer doesn't seem to work that way
18:54 finger563 and I'm not exactly sure how it's behaving yet
18:54 admsyn haha
18:54 admsyn so to summarize, input's fine, output callback doesn't seem to be called?
18:55 finger563 basically, though it does get called some if i explicitly call OMX_FillOutputBuffer
18:55 finger563 i'm just not sure what it's supposed to provide
18:56 admsyn alright
18:56 admsyn I'll take a stab in the dark and say maybe "done" isn't the same as "there are enough bytes"
18:57 admsyn but I'm still tracing through the OMX header
18:57 finger563 yea that might be it, but i'm not sure how to tell yet; I've not found comprehensible docs on this yet
18:57 admsyn also jvcleave knows quite a bit more about this than I do :) have you seen e.g. https://github.com/jvcleave/ofxOMXPlayer
18:59 finger563 I've not taken a look at that part of his code yet; I've talked with him some about it and used his ofxRPiVideoGrabber as the basis for my code
19:00 jvcleave if the onfillbuffer callback isn't working it may be a link order problem - it's notoriously tricky
19:02 jvcleave finger563 - where are you linking in ilclient?
19:03 nylki joined #openframeworks
19:06 finger563 @jvcleave oh?  i hadn't thought of that
19:06 finger563 and I'm just letting the auto-generated makefiles handle it
19:07 finger563 b/c the ilclient code is just in my addons folder
19:07 finger563 is there an easy way for me to tell it the proper link order?
19:07 finger563 (what is the proper link order for it, do you know?)
19:08 jvcleave yeah - it literally took months to figure that out
19:08 jvcleave https://github.com/raspberrypi/userland/blob/master/host_applications/linux/libs/bcm_host/bcm_host.c#L136
19:08 yns joined #openframeworks
19:08 jvcleave that's the offending line in the firmware  - it just silently failds
19:09 finger563 ouch >.<
19:09 finger563 but if you link in the proper order you don't get the silent failure?
19:09 finger563 (and yes my failure is a silent one....)
19:10 jvcleave yeah - let me find it - I don't use the ilclient
19:10 finger563 thanks a bunch :)
19:11 jvcleave -lGLESv2 -lEGL -lopenmaxil -lbcm_host -lvcos -lvchiq_arm -lpthread -lrt -L../libs/ilclient
19:12 jvcleave just pulling that from https://github.com/raspberrypi/firmware/blob/master/opt/vc/src/hello_pi/Makefile.include
19:12 finger563 ah thanks :)
19:13 finger563 so...... what's the easiest way to modify the auto-generated link order in the OF app system?
19:13 finger563 :)
19:13 jvcleave look through the config.make file in your project
19:13 finger563 the linker flags are added at the beginning of the linker commands
19:14 finger563 as far as i remember anyway
19:20 finger563 hmm seems like i might be able to change it in the config.linuxarmv6l.default.mk
19:24 jvcleave you may just want to stick the ilclient source in your folder as opposed to the library
19:25 yns joined #openframeworks
19:26 jvcleave OF links the stuff correctly - I am able to use the OpenMax system stuff without any custom linking order
19:28 finger563 hmm thats a good idea, i'll try that
19:28 finger563 here's a question though
19:29 finger563 the fill buffer callback
19:29 finger563 i want to use that on my output buffer from the encoder component
19:29 finger563 do i have to explicitly call fillbuffer before the callback gets called? if so I don't really understand it's point; isn't it just copyingthe data from the omx hardware component to my buffer?
19:30 finger563 does it not get called when the component has output ready?
19:41 indefinit joined #openframeworks
19:42 dantheman joined #openframeworks
19:44 phserr joined #openframeworks
19:45 indefinit hey, does anyone have experience binding video textures to large 3d models with the AssimpModelLoader class?
19:48 indefinit my problem is when I rotate the model at a constant rate, the video frames are jittery.  I'm thinking I must be doing something (or not doing something really dumb)
19:52 lukaszw joined #openframeworks
20:03 yns joined #openframeworks
20:27 yns joined #openframeworks
20:41 yns joined #openframeworks
21:18 yns joined #openframeworks
22:23 robot joined #openframeworks
22:38 yns joined #openframeworks
22:39 igorline joined #openframeworks
23:13 finger563 joined #openframeworks
23:29 nylki_ joined #openframeworks
23:30 ofarturo joined #openframeworks
23:58 dantheman joined #openframeworks

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