Camelia, the Perl 6 bug

IRC log for #openframeworks, 2013-10-11

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

All times shown according to UTC.

Time Nick Message
00:02 superFluid joined #openframeworks
00:33 dantheman tgfrerer: ahh
00:33 dantheman ok
00:34 dantheman but it does it with the example too
00:34 dantheman hmm
00:37 laserpilot joined #openframeworks
01:26 vade joined #openframeworks
02:12 admsyn joined #openframeworks
02:21 tdicola joined #openframeworks
02:22 tdicola hey all, anyone around who might be able to help with a problem i'm running into using open frameworks on a raspberry pi?
02:23 tdicola trying to load a 3d model with ofxAssimpModelLoader and am getting nothing but segfaults when calling loadModel
02:23 tdicola have tried lost of different models assuming it was running out of memory
02:23 tdicola but even a 12 face cube segfaults
02:26 tdicola i also had to explicitly add an include path to the ofxAssimpModelLoader source directory to my config.make before i could get it to build too.  kept failing to find ofxAssimpModelLoader.h which seemed odd
02:33 tdicola oh interesting, poking around the examples folder i notice on my raspi there aren't any ofxAssimpModelLoader examples, whereas there is one on my linux development machine
02:33 tdicola is ofxAssimpModelLoader not supported on ARM/the raspberry pi?
02:45 admsyn hi tdicola
02:45 admsyn I think that might be a reasonable assumption
02:47 tdicola ah darn, yeah was going to post the same question in the forum too
02:47 tdicola has anyone done any 3d model loading on the pi?
02:48 tdicola i got face detection working with open cv and jvcleave's code to access the raspberry pi camera
02:48 jvcleave oh nice - how fast is it?
02:48 tdicola wanted to make something for halloween that renders a 3d skull model which stares at the face of whoever is looking at it
02:48 tdicola works great so far with a webcam in linux, but having these problems trying to port over to the pi
02:49 jvcleave the still version takes 30 seconds :)
02:49 tdicola not super fast unfortunately, capturing at 160x120 it's about 500-800ms for the haar finder
02:49 tdicola oh wow
02:49 tdicola yeah this is way faster
02:49 tdicola i had to render the camera texture to an FBO to actually get the pixels
02:49 jvcleave cool - been meaning to dig into in
02:50 jvcleave yes! that is annoying
02:50 tdicola that was the only big hangup i had
02:50 tdicola yeah also annoying i realized i have to do it in the draw func so a shader is loaded
02:50 jvcleave yeah - you can do it in update if you use your own shader :)
02:50 jvcleave (found that out this week)
02:51 jvcleave there is a fix coming for that tho
02:51 tdicola cool, yeah one thing i tried that worked was to grab the programmable renderer instance and manually call start / end rendering before drawing the fbo
02:52 tdicola but it's easy to just do my video detection in the draw func for now
02:52 jvcleave right - yeah - its jsut currently confusing
02:52 tdicola thanks for making the library though, wow the code to talk to the camera is a lot crazier than i expected
02:52 jvcleave OMX is insane
02:53 jvcleave but I like it now
02:53 jvcleave There are a bunch of options that need to be implemented
02:53 jvcleave I am really curious about this
02:54 jvcleave http://www.jvcref.com/files/PI/doc​umentation/ilcomponents/prop.html
02:54 jvcleave search for "face detection" on that page
02:55 tdicola oh wow, you think it has something built in?
02:55 DrCode joined #openframeworks
02:55 jvcleave it has been somewhere - maybe just old docs around a cell implementation
02:56 tdicola interesting, that could be pretty cool if true
02:56 jvcleave tons of the broadcom stuff is undocumented/wrongly documented so it is a lot of stabbing in the dark
02:56 tdicola yeah, i started peaking at the docs the raspberry pi folks have in their github repo and man is it ugly
02:56 DrCode joined #openframeworks
02:57 jvcleave yeah - it's rough but actually not much more out there
02:58 jvcleave this guy hit me up about some stuff he did - going to try to use some of his recording http://solitudo.net/software/r​aspberrypi/rpi-openmax-demos/
02:59 tdicola oh wow nice, yeah i was looking to see if there were any simple camera or other examples
03:00 jvcleave most of it out there is MMAL which i don' t think has a texture option
03:00 tdicola your camera library seems to work pretty well though, once i realized how to get the data by rendering to an fbo
03:00 jvcleave yeah - that is an Open GL ES limitation
03:01 jvcleave http://stackoverflow.com/questions/11863​416/read-texture-bytes-with-glreadpixels
03:03 jvcleave I also there there may be a faster way by using EGL pixmaps - this is new to me though http://www.khronos.org/registry/egl/ex​tensions/KHR/EGL_KHR_image_pixmap.txt
03:05 tdicola ah interesting, yeah i ran into similar stuff googling earlier
03:05 tdicola i wasn't totally sure what EGL is though
03:06 tdicola is that the graphics layer in front of opengl on the pi, i.e. it creates the context etc?
03:11 jvcleave yeah - I think it is mainly optimized for embedded
03:13 tdicola the kronos docs are almost as annoying to read as the broadcom ones from what i've seen unfortunately
03:13 jvcleave as for assimp I think it is not PI ready - I think it is actually excluded from the arm packages
03:13 tdicola yeah, since i don't see an example that works it's probably safe to say not supported yet
03:14 tdicola if i save an ofMesh object on my linux machine, could i load it on the pi?
03:14 tdicola i'm assuming the format it uses doesn't care about the platform
03:14 jvcleave I would think so
03:14 tdicola i'll give it a shot
03:14 tdicola compiling openframework with debug symbols on the pi right now
03:15 tdicola unfortunately will probably be tied up for at least another hour
03:15 jvcleave yeah - if you plan on working on it you should take the time to set up distcc
03:15 tdicola do you use a cross compiler setup when you build and test stuff?
03:15 tdicola yeah i definitely need to stop compiling on the pi
03:15 jvcleave you can usually set it distcc and compile in the time it takes you to compile OF on the Pi
03:17 jvcleave There are newer/simpler instructions out there but this older one always works for me https://github.com/openFrameworks-RaspberryPi/open​Frameworks/wiki/Raspberry-Pi-Cross-compiling-guide
03:18 jvcleave i use that with a seperate linux machine
03:18 tdicola nice, i'll take a look
03:18 jvcleave yeah - can't work without it anymore :)
03:34 Hurtzy joined #openframeworks
03:50 tdicola woohoo! got a 3d model loaded and rendering on the pi
03:50 tdicola had to use ofxAssimpModelLoader on my linux machine to get the mesh objects and save them
03:50 tdicola then load them on the pi
03:50 tdicola seems to work well
03:51 tdicola i think i'm pretty much unblocked on porting this to the pi, the only other hurdle is to see how deep into opengl es shaders i want to go to get some better lighting
03:52 tdicola is there a good place to contribute example code for openframeworks?  i have a feeling at least the pi camera + open cv part of what i'm doing will be pretty helpful for people to see
05:11 sturPause joined #openframeworks
05:17 LCID_Fire joined #openframeworks
06:03 LCID_Fire joined #openframeworks
06:06 LCID_Fire joined #openframeworks
06:18 LCID_Fire joined #openframeworks
06:30 LCID_Fire joined #openframeworks
08:22 berzerka joined #openframeworks
08:24 berzerka hi there.
08:24 berzerka how is openframeworks commonly deployed under linux? i don't find an install target in the makefile or instructions on how to install the software on the system.
08:25 berzerka or is it commonly done to simply build against the source tree and not deploy headers/libs to an install location (such as /usr/local)
08:25 berzerka ?
08:26 tgfrerer berzerka: hey there!
08:26 tgfrerer which flavour of linux are you targeting?
08:26 berzerka this is an archlinux system.
08:27 berzerka build went fine, just wondering if there is a way to 'install' it.
08:27 tgfrerer not a built-in way.
08:27 berzerka alright then, thanks!
08:28 tgfrerer but if you run the arch-linux build-dependency script from the script folder on a fresh arch linux system, you should get all dependencies needed.
08:28 tgfrerer ^build-dependency^install_dependencies.sh^
08:28 berzerka already had most of them as it seems. only freeimage was missing.
08:28 tgfrerer yep, that makes sense.
08:29 berzerka the addon libs need to be built seperately i suppose?
08:29 tgfrerer openframeworks links most of the core libraries as static libs.
08:29 tgfrerer addon libs - it depends if they are statically or dynamically linked
08:30 tgfrerer but you shouldn't need to build addon libs from source, usually.
08:30 berzerka ok i will look into it if i want to start using one of them.
08:30 berzerka well actually i prefer doing so :)
08:31 tgfrerer then i can highly recommend using apothecary, https://github.com/danomatika/apothecary
08:31 * berzerka checks out
08:31 tgfrerer if you wanted to fill in some linux recipes, that contribution would be very very welcome =)
08:31 berzerka ok great
08:37 berzerka now lets see what can be done with openframeworks. i have tried processing before, but disliked the api design as well as java, being a c++ programmer ever since. i wanted to see how far i can get but had trouble with texture mapping and the jogl bindings in general.
08:39 berzerka i hope opengl stuff is more mature in openframeworks. otherwise i would of course like to contribute where possible.
08:39 tgfrerer yay! welcome to openFrameworks =)
08:40 berzerka :)
08:41 tgfrerer opengl is quite good around here- on a desktop system, you can choose from two renderers, the fixed function openGL2.0 renderer, and the new ofGLProgrammableRenderer, which gives you access to OpenGL 3.2 +
08:42 tgfrerer the fixed function renderer being the default.
08:43 tgfrerer i can also highly recommend joshuanoble et al's openFrameworks openGL tutorials: http://www.openframeworks.cc/t​utorials/graphics/opengl.html
08:45 berzerka sounds great. have to be off for a while now but will be back soon. thanks and have a nice day everyone!
11:31 DrCode joined #openframeworks
12:16 dantheman joined #openframeworks
12:16 dantheman left #openframeworks
12:25 jacres joined #openframeworks
12:46 superFluid joined #openframeworks
12:53 DrCode joined #openframeworks
13:00 superFluid joined #openframeworks
13:24 quave joined #openframeworks
13:26 quave Hello guys! I'm trying to figure out how do I get audio input into my OF app.
13:26 quave Could anyone help me with that? Some links, maybe
13:34 jacres quave: Hi Quave! What are you looking to do with the audio?
13:36 quave I want to do Furier transforms over the signal
13:37 quave Analyze the signal in other words.
13:39 jacres ok great, are you using an addon?
13:42 jacres there's a great one here by Kyle McDonald: https://github.com/kylemcdonald/ofxFft
13:42 jacres and it comes with some good examples
13:43 jacres the main thing you'll need to figure out is mapping which channel to use as audio input into your app
13:43 jacres what platform are you on?
13:44 quave Well, I'm trying to run it on two platforms now. Win and ubuntu. And planning to use all 5 platforms in future.
13:45 quave I'm looking into base functionality now. Can audioIn/ofSoundStreamSetup methods help me somehow?
13:47 jacres ok great - I've read on github that some people had problems getting ofxFFT working on Linux, but I managed to compile it fine... might be a bit more finicky though since audio config is very user-defined (pulse audio, alsa, etc.). I think Windows would be a bit easier to configure the line in
13:47 quave The addon is going to help me with transformations, not with input. Correct?
13:47 vade joined #openframeworks
13:47 jacres exactly
13:49 quave Thank you for the info. But it's the next step) And I need to get input signal somehow for beginning..
13:49 jacres quave: ok, have you tried of/examples/sound/audioInputExample?
13:50 jacres it provides a good example that should get you started, I believe
13:50 jacres there's also an FFT example in that same examples/sound folder
13:51 jacres it's been about a year since I've done audio work in OF, so a little hazy. If you see admsyn on here, he's the resident audio master
13:51 quave That's what I'm looking for! Thanks you. I guess I did not look too carefully) Sorry
13:52 quave Got that, thanks
13:52 jacres hope it helps!
14:31 vade joined #openframeworks
14:55 kritzikratzi joined #openframeworks
14:57 pizthewiz joined #openframeworks
15:19 kritzikratzi joined #openframeworks
15:45 admsyn joined #openframeworks
15:52 vade joined #openframeworks
20:08 jacres_ joined #openframeworks
20:09 LCID_Fire joined #openframeworks
20:28 DrCode joined #openframeworks
21:09 vade joined #openframeworks
21:34 vade joined #openframeworks
21:37 superFluid joined #openframeworks
21:44 LCID_Fire joined #openframeworks
21:57 LCID_Fire joined #openframeworks
22:00 vade joined #openframeworks
22:02 LCID_Fire joined #openframeworks
22:32 LCID_Fire joined #openframeworks
23:20 superFluid joined #openframeworks

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