Perl 6 - the future is here, just unevenly distributed

IRC log for #openframeworks, 2013-12-06

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

All times shown according to UTC.

Time Nick Message
23:21 admsyn so I just pushed a PR that removes the super-deprecated ofxCvMain.h, but would there be any project files or whatever that I need to remove it from as well?
23:22 admsyn I'm assuming it's fine, since the examples just have a ref to ofxOpenCv from the addons.make
00:01 laserpilot left #openframeworks
00:14 spudeater joined #openframeworks
00:28 admsyn joined #openframeworks
01:15 pizthewiz joined #openframeworks
01:34 dantheman joined #openframeworks
01:50 admsyn OF meetup in NYC is looking mighty tempting
02:03 Norph_ joined #openframeworks
02:58 egradman joined #openframeworks
03:11 Hurtzy joined #openframeworks
03:27 dantheman joined #openframeworks
03:49 dantheman joined #openframeworks
04:20 dantheman joined #openframeworks
04:52 egradman joined #openframeworks
05:36 pizthewiz joined #openframeworks
06:15 pizthewiz joined #openframeworks
06:25 LCID_Fire joined #openframeworks
07:59 LCID_Fire joined #openframeworks
08:29 lianj_ joined #openframeworks
08:30 vlt_ joined #openframeworks
09:48 smz joined #openframeworks
09:49 smz cannot access nightly
10:56 tgfrerer hey guys! anyone with windows / vs2013 experience around? i'm recompiling libraries (using apothecary) and wonder if i need mingw for that...
11:44 Norph_ joined #openframeworks
12:16 LCID_Fire joined #openframeworks
12:49 underdoeg joined #openframeworks
13:43 lukaszw joined #openframeworks
13:52 underdoeg left #openframeworks
14:16 ofarturo joined #openframeworks
14:16 lukaszw joined #openframeworks
14:18 ofarturo1 joined #openframeworks
14:42 ofarturo joined #openframeworks
14:56 dantheman joined #openframeworks
15:03 ofarturo joined #openframeworks
15:34 LCID_Fire joined #openframeworks
16:04 dantheman joined #openframeworks
16:09 admsyn joined #openframeworks
16:15 dantheman yo I'm on linux today
16:15 dantheman linux64 and OX10.9
16:15 dantheman what do I need to test/maybe look at
16:15 dantheman for quick fixes
16:15 admsyn dantheman: which distro?
16:16 admsyn IIRC there's a specifc fedora bug
16:16 dantheman Ubuntu13.10
16:16 dantheman :(
16:16 admsyn alright, how's about https://github.com/openframeworks/openFrameworks/issues/1902
16:28 dantheman joined #openframeworks
16:29 dantheman ok
16:29 dantheman I could maybe look at that
17:08 nicedice joined #openframeworks
17:27 LCID_Fire joined #openframeworks
17:36 iopz joined #openframeworks
17:50 dantheman joined #openframeworks
17:59 GuidovanPossum joined #openframeworks
18:13 pizthewiz joined #openframeworks
18:22 GuidovanPossum joined #openframeworks
18:25 dantheman joined #openframeworks
18:36 admsyn oh hey, addon_config.mk in ofxOpenCv doesn't have sections for osx / ios https://github.com/openframeworks/openFrameworks/blob/master/addons/ofxOpenCv/addon_config.mk
18:36 admsyn also it doesn't specify its ADDON_INCLUDES
18:36 admsyn this is a bug..right?
18:43 * admsyn assumes it's a bug
18:45 lukaszw joined #openframeworks
18:45 admsyn but how does it even work at all on e.g. linux?
18:45 admsyn without ADDON_INCLUDES, that is
18:53 pizthewiz I think the make process automatically crawls the lib and src directories no?
18:54 admsyn vOv
18:55 admsyn but in the case of header paths, wouldn't you need to set "opencv/include/" since all the actual in-header #includes are relative to that?
18:55 admsyn assuming make doesn't "just know" somehow
19:06 pizthewiz If I remember correctly, the automatic crawling spams the actual make command with every folder
19:06 admsyn ah
19:06 admsyn well that would do it :)
19:06 pizthewiz So if you had lib/dog/face and lib/cat/pig, it would automatically -Ilib/dog -Ilib/dog/face -Ilib/cat -Ilib/cat/pig
19:07 admsyn alright, well, good to know
19:07 pizthewiz I _think_ at least, hit make with a different Addon example and check the args
19:07 admsyn I was having an issue with OFPlugin because it didn't know to add the right things for ofxOpenCv, due to it not doing the aforementioned spamming
19:22 ofarturo joined #openframeworks
19:27 dantheman joined #openframeworks
19:40 fossterer joined #openframeworks
19:48 dantheman joined #openframeworks
19:49 fossterer Getting this error - ../../../addons/obj/android/x86/Release/ofxOpenCv/src/ofxCvShortImage.o:ofxCvShortImage.cpp:function ofxCvShortImage::clear(): error: undefined reference to 'cvReleaseImage'
19:49 fossterer Is it an issue with opencv?
19:49 admsyn sounds like you're not linking against all / any of the opencv static libs
19:50 fossterer I downloaded latest zip from Github
19:50 fossterer (of OF)
19:50 admsyn yeah, but you'll need to add the libs to your project's linker path (I'm not really sure what it is in Eclipse semantics)
19:51 fossterer heyy.. I ahdn't done any such thing when I downloaded your stable release.. Why am I needed to do it now?
19:52 admsyn not sure, possibly there's a header / lib mismatch now
19:53 fossterer so, can I proceed like this -- I should search my system for opencv libraries? (I don't know if such libraries do exist in a system or not)
19:54 admsyn there should be a bunch of android-specific static libraries in ofxOpenCv/libs/opencv/lib/android
19:55 admsyn and you'll need to let eclipse know that you need to link against them (again, I'm not sure how this is done in eclipse)
19:55 fossterer 'addons.make' has this info. Isn't it?
19:56 admsyn no, but it will be in ofxOpenCv/addon_config.mk
19:56 admsyn addons.make is just a list of addons that a particular project needs
19:56 admsyn addon_config.mk is info about how to actually set up an addon
19:57 fossterer As I see, there're a bunch of these -- "ADDON_LIBS +="
19:58 admsyn yepp
19:58 fossterer are you suggesting that none of these is currently providing my 'cvReleseImage'  ?
19:59 admsyn yess, basically
19:59 admsyn or rather I'm suggesting that eclipse isn't linking your app against all the libs in that folder, which is why it's not finding cvReleaseImage (amongst a bunch of other things, presumably)
19:59 fossterer And in fact they have to ? (I'm trying to understand the systems..please warn me if I;m irritating you)
19:59 admsyn oh np, I can explain
20:00 admsyn so there's basically 2 sets of files you need to work with to get your project to link against opencv, the headers and the static libs
20:00 admsyn you've done the headers properly, since you've passed the compilation stage
20:00 admsyn BUT, you've moved onto the link stage, which is where all the symbols from the opencv .a files are necessary
20:01 admsyn so, you need to tell eclipse to add all those static libs to your project, so it can find the necessary symbols
20:01 ofarturo joined #openframeworks
20:01 admsyn so, like, cvReleaseImage is a "symbol" in this case
20:04 Makio64 joined #openframeworks
20:05 Makio64 Hello everyone
20:05 lukaszw joined #openframeworks
20:05 admsyn hi Makio64
20:06 egradman joined #openframeworks
20:06 Makio64 I want to map my texture into 4 face ( left/right/bottom/back) like this : http://www.youtube.com/watch?v=iQlDEPLHPyQ
20:07 Makio64 I try a lot of technics today to map it correctly on my quad but can t find the good way
20:08 Makio64 ( I want draw on the texture dynamicly and made the bottom match with the 3 others faces
20:08 Makio64 but it s harder than I expect, anyone have suggestion ?
20:09 admsyn you could have a 3d scene with 4 ofCameras looking out from each other, then map the output of each camera to a different projector
20:10 admsyn how are you doing it now?
20:10 Makio64 Oh I m so stupid -.-
20:11 Makio64 actually I was trying to made it out with a 2d texture but use directly 3d sounds great .....
20:11 admsyn not stupid, more like too smart :p
20:11 Makio64 haha
20:12 admsyn yeah you'd probably run into weird perspective issues if you tried to do it as one big FBO / texture..
20:12 Makio64 yup :p
20:13 Makio64 it was close but not enought ^^
20:14 Makio64 So I have to developp all the visual effects in 3d after ?
20:14 admsyn not sure what you mean?
20:15 Makio64 for example I want to create the metaball effect where there is movement
20:15 admsyn ah yeah, in that case I'd imagine you just render to 4 different FBOs in 2d
20:15 Makio64 if I create the scene in 3d and use 4 ofCameras I can t use 2d metaballs right ?
20:15 admsyn mapping the camera input to the correct location might be a little tricky
20:16 admsyn I'm sure there's a simple-ish way to do it but I can't think of it off the top of my head
20:16 admsyn probably just like an un-folded cube map
20:16 admsyn the tricky bit would just be the camera vision -> cube map location
20:20 Makio64 Hum, Im thinking to your cameras ideas , even with that I don t understand how the left will be connected at the same time with the back and bottom
20:20 Makio64 ( sides)
20:23 fossterer whoa! Does this mean something? I found 'cvReleaseImage()' declared in "https://code.ros.org/trac/opencv/browser/trunk/opencv/include/opencv/cxcore.h?rev=2970"
20:25 admsyn fossterer: well, sort of, that's the code that generates the static libraries that you already have
20:25 admsyn left #openframeworks
20:25 admsyn joined #openframeworks
20:27 fossterer just a few minutes!
20:28 admsyn Makio64: do you just have the one camera?
20:29 admsyn in any case, you can write code that's just like "this rectangle in the camera maps to this FBO, this rectangle maps to this other FBO.."
20:29 admsyn I'm sure there's a better way to do it though :)
20:29 ofarturo Makio64 take a look at the 3dprimitivesExample, of3dPrimitiveBox has some methods to map textures correctly
20:30 Makio64 what do you mean by just one camera ?
20:30 admsyn as in real life camera, tracking humans
20:31 admsyn because if you had one per projector it becomes easy :3
20:31 * admsyn is sort of half joking
20:31 Makio64 we will have 4 camera
20:32 Makio64 but I was experimentating only in code for the moment without the camera
20:33 Makio64 I only have to work on the visual effect, someone else will provide me the cloud of points from the tracking
20:33 admsyn oh, well that makes it pretty easy then? Just do the mapping in "real life" :p
20:34 admsyn well for the effect I'd imagine you can probably get a fake setup going on rendering to 4 FBOs, then cube-mapping the textures to a cube as ofarturo mentioned
20:36 Makio64 I m looking at the of3dPrimitiveBox
20:36 Makio64 I m not use to openframeworks, I was thiking made my own quad was easier ^^"
20:38 Makio64 Is it the method : resizeToTexture ?
20:38 admsyn no cubemapping's a bit more complex than something of3dPrimitiveBox will do for you I think
20:38 admsyn you could try https://github.com/andreasmuller/ofxCubeMap
20:45 Makio64 yes, it looks nice
20:56 dantheman oh snap
20:56 dantheman I'm getting this now gluBuild2DMipmaps is now depreciated in 10.9
20:57 dantheman use  glGenerateMipmaps
21:01 dantheman ooo I just saw this [ error ] ofAppGLFWWindow: 65538: There is no current context
21:03 dantheman 65538 is GLFW fullscreen
21:03 dantheman hmmm
21:03 dantheman weird
21:10 pizthewiz You have a display attached right? I tried debugging the headless GLFW thing yesterday and made a right mess of it
21:11 pizthewiz Yeah, that would have been a bad pixel format error anyways
21:30 fossterer joined #openframeworks
21:37 fossterer ofarturo: ping
21:46 fossterer Getting errors on running opencv projects... something like this.. http://stackoverflow.com/questions/12098470/opencv-2-4-2-undefined-references
21:48 lukaszw joined #openframeworks
21:59 admsyn fossterer: FWIW note that the answer to that question is basically what I told you before
22:03 fossterer @admsyn: Actually I was typing a long explation citing your answer...
22:04 fossterer ok, Can I check 'Generate Makefiles automatically' in Eclipse? (I'm asking it in case it is not intended for an OF project)
22:13 lukaszw joined #openframeworks
22:16 lukaszw joined #openframeworks
22:24 quad0 joined #openframeworks
22:27 dantheman joined #openframeworks
22:30 fossterer Honestly, the problem is not yet solved... can someone kindly help me figure out what's wrong with  'opencvexmaple' under eclipse?
22:34 fossterer Alright, I'm leaving for now... I'm saying to myself "Go and learn C++" than people here shout at me... (I feel I'm asking too much)
22:34 admsyn fossterer: I think you might have better luck asking somewhere that's focussed on eclipse
22:35 admsyn I think most people that do OF use something else
22:35 fossterer use what? codeblocks?
22:36 Makio64 xcode ^^
22:37 fossterer on Linux?
22:37 admsyn i think codeblocks / makefiles are what people usually do on linux, but I don't really know as I'm also xcode / osx
22:37 ofarturo fossterer, to use addons in linux just add the name of the addon in a file called addons.make
22:37 ofarturo you don't need to touch any properties in the ide
22:37 ofarturo take a look at the opencvExample
22:38 fossterer ofarturo: 'androidopencvexample' itself is returning errors..
22:39 ofarturo can you post the full error in the forum?
22:40 fossterer http://pastebin.com/nbCcXBRV
22:46 ofarturo oh on android... yes, i added support for android x86 recently but opencv is still not compiled for x86
22:46 ofarturo add this at the end of config.make:
22:46 ofarturo ABIS_TO_COMPILE_RELEASE = armv7
22:46 ofarturo ABIS_TO_COMPILE_DEBUG = armv7
22:54 fossterer BUT why?? why is it working now after adding those lines? ofarturo: what do they mean?
22:56 fossterer could you please point me where to read about it (if not taking the pain of explaining it yourself)?
22:57 ofarturo android compiles for several architectures, arm, arm7 and x86. till 0.8.0 we only had support for arm and armv7. i'm adding x86 and have compiled all the libraries in the core for that architecture but haven't compiled yet opencv so when it compiles the application for x86 in the linking phase it fails
22:58 ofarturo adding those lines tells the makefile to only compile for armv7
22:59 fossterer wait... I'm putting my head into it..
22:59 fossterer (what you typed)

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