Re: [PD] [PD-dev] smoke object help
I dont know how to send my code to the list. Can I attach it to an email, or copy and paste it to an email? What is the proper way? BTW I was able to get it to work somewhat by using glVertex3f(px, py, -1) intead of glVertex2f(px, py). for some reason nothing is seen above z depth -1 in Gem. Also I had to use perspec 1 640 1 480 1 50 and view 00 50 to get the right size in Gem. Now I am just trying to figure out other problem areas. Thanks for your reply, Alain On Aug 3, 2007, at 9:08 AM, cyrille henry wrote: [EMAIL PROTECTED] a écrit : Hi all, I posted this in the gem-dev list but maybe someone here can give a some advise or a different solution for my problem. The reason I am trying to use gem is because they have already figured out the glLoop problem between openGL and Pd. Also because I then would have access to the other gem objects. I am trying to transcribe this glut application here: http://www.nada.kth.se/~gustavt/fluids/ into a gem object. At first at thought it would be easy seeing as the code was pretty much working but I am having a tough time of it. I compiled the original application and it works perfect but it seems like when I convert it to a gem object I get nothing. Here are some things I am assuming, please correct me... 1. glut and openGL/Gem use the same measurements like when I use glVertex2f(px, py); it is the same in both. 2. Instead of using the glut mouse controls I can use a list inlet to get x and y coordinates. Other than that I pretty much copied the app and used render (GemState *state) to put all of the rendering stuff into. But I still cant get it to work. I get a black screen. I think it is probably drawing somewhere of screen but I really cant seem to figure out how to fix the problem. If anyone can give me a clue I would appreciate it. sending your source to the list would allow anyone to have a look... cyrille Thanks, Alain ___ PD-dev mailing list [EMAIL PROTECTED] http://lists.puredata.info/listinfo/pd-dev ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] netsent help
Sorry, you are right. I just signed up over there yesterday and I just started receiving email from there. I know all my questions lately that have been littering this mailing list are about things more appropriate to the pd-dev but I just found out about the pd-dev yesterday. Alain On May 30, 2007, at 3:19 PM, Frank Barknecht wrote: Hallo, just a little reminder: For these kinds of C-programming oriented developer questions we also have the [EMAIL PROTECTED] list. Maybe you want to take over this discussion there. Ciao -- Frank [EMAIL PROTECTED] hat gesagt: // [EMAIL PROTECTED] wrote: Mike, Can you tell me where I can read up on netsend. I have tried to follow your code but I still get a compile error. I tried this: #include u_pdsend.h char* host = localhost; int port = 8779; char* protocol = tcp; charstr[1024]; Then I use pdsend_init(host, port, protocol); then I use it the way you do by: sprintf(str,%d (%d,%d), i, iMeanx, iMeany); pdsend_message(str); but I get this compile error: /usr/bin/ld: Undefined symbols: pdsend_init(char*, int, char*) pdsend_message(char*) collect2: ld returned 1 exit status Anyway I have been looking for instructions online without success. If you can point the way to a webpage that would be great. Alain ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] opencv motion tracker external HELP!
I think I figured it out. It looks like I have to use t_symbol *sym instead of t_symbol sym and the outlet has to be x-outlet_new(x- x_outlet0, *sym). That seemed to work. The weird problem I am having now it I get an error with the return(void *)x; I get error: return-statement with a value, in function returning 'void'. Now I see return(void *)x; on almost all the external codes so I don't get it. I am also getting an error on the void your_class_setup (void) { part too. Error: a function-definition is not allowed here before '{' token. I am confused. About compiling as C, the problem is that I am using c ++ headers from the opencv library and I don't know if I can compile as C? Thanks alot for your help. Alain On May 29, 2007, at 5:25 PM, [EMAIL PROTECTED] wrote: Alain wrote: I am getting a weird error when I try sym = gensym(symstr); I get no match for 'operator=' in 'sym = gensym(((char*)( symstr)))' I dont know what thats all about. I have seen this used before with no problems. That looks like a c++ error to me, maybe you should be compiling it as c? Martin ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] opencv motion tracker external HELP!
Thanks Mike, Its awsome how helpful people in this community can be. I will check out you code and modify it if need be, like add the option to use an avi in order to be able to calibrate things and such and I will post it. I will also continue to figure out the external because I think that would be a neater approach and cause I dont accept defeat very easily. Alain On May 29, 2007, at 4:55 PM, Mike Wozniewski wrote: Hi Alain, I've used the OpenCV blobtracker with Pd before, and I simply send blob positions and sizes over UDP using u_pdsend.c I've attached my code and makefile... look in blobtrack.c and search for where I use the pdsend_init() and pdsend_message() functions... it's pretty simple. Then you just use [netreceive] in Pd and parse the list as you deem necessary. Hope this helps, -Mike P.S. my blobtracker code is meant for use with a live camera, not with .avi files. blobTracker.tar.gz ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] opencv motion tracker external HELP!
I see you have the ability to capture from an avi built in already: avi_name = argv[i]; if (avi_name) pCap = cvCaptureFromFile(avi_name); else pCap = cvCaptureFromCAM( 0 ) This is code looks great. I could figure it out from the code but if you have any use instructions let me know. It would be great to get a gui for this thing. I will try to figure that out. Thank you, Alain On May 29, 2007, at 6:58 PM, Nose Hair wrote: Thanks Mike, Its awsome how helpful people in this community can be. I will check out you code and modify it if need be, like add the option to use an avi in order to be able to calibrate things and such and I will post it. I will also continue to figure out the external because I think that would be a neater approach and cause I dont accept defeat very easily. Alain On May 29, 2007, at 4:55 PM, Mike Wozniewski wrote: Hi Alain, I've used the OpenCV blobtracker with Pd before, and I simply send blob positions and sizes over UDP using u_pdsend.c I've attached my code and makefile... look in blobtrack.c and search for where I use the pdsend_init() and pdsend_message() functions... it's pretty simple. Then you just use [netreceive] in Pd and parse the list as you deem necessary. Hope this helps, -Mike P.S. my blobtracker code is meant for use with a live camera, not with .avi files. blobTracker.tar.gz ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/ listinfo/pd-list ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] opencv motion tracker external HELP!
Sorry forgot to ask. Do you have a pd abstraction for this? If not I will see what I can cook up. I think iemmatrix might do the trick. Alain On May 29, 2007, at 8:08 PM, Nose Hair wrote: I see you have the ability to capture from an avi built in already: avi_name = argv[i]; if (avi_name) pCap = cvCaptureFromFile(avi_name); else pCap = cvCaptureFromCAM( 0 ) This is code looks great. I could figure it out from the code but if you have any use instructions let me know. It would be great to get a gui for this thing. I will try to figure that out. Thank you, Alain On May 29, 2007, at 6:58 PM, Nose Hair wrote: Thanks Mike, Its awsome how helpful people in this community can be. I will check out you code and modify it if need be, like add the option to use an avi in order to be able to calibrate things and such and I will post it. I will also continue to figure out the external because I think that would be a neater approach and cause I dont accept defeat very easily. Alain On May 29, 2007, at 4:55 PM, Mike Wozniewski wrote: Hi Alain, I've used the OpenCV blobtracker with Pd before, and I simply send blob positions and sizes over UDP using u_pdsend.c I've attached my code and makefile... look in blobtrack.c and search for where I use the pdsend_init() and pdsend_message() functions... it's pretty simple. Then you just use [netreceive] in Pd and parse the list as you deem necessary. Hope this helps, -Mike P.S. my blobtracker code is meant for use with a live camera, not with .avi files. blobTracker.tar.gz ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/ listinfo/pd-list ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pix_multiblob cpu usage
I tried running it with a low res 400x300 clip and it still did the same thing. I am trying to get a game going using an FTIR setup. Here is a reference: http://cs.nyu.edu/~jhan/ftirsense/ pix_mutiblob is way to slow, I cant get gridflow compiled, and pidip is not working currently on the extended version. Is there another option to do functional multitracking on a mac with pure data? I really cant fork over the dough for max/msp/jitter, but there is a free jitter plugin called cv.jit that looks great: http://www.iamas.ac.jp/~jovan02/cv/ Is there a posibility that anyone will port this over to PD I wonder? Alain On May 14, 2007, at 12:49 PM, chris clepper wrote: I ran the pix_multiblob example on the same 640x480 clip on CoreDuo, G5 and Xeon CPUs at 2 Ghz and it destroys all of those processors. I guess it was designed to work on really low resolutions since none of the current CPUs can handle full sized standard def video as the code is written. If the code could be written without the numerous function calls and int to float to int conversions in the processing loop it would be much faster. On 5/14/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I tried to use the Gem from the latest pd extended autobuilds and I have also compiled my own from CVS with the same results. If you can point me in the right direction on how to get this going I would apreciate it. BTW I dont know any C or C+ but I am willing to give it a go. Thanks, Alain From: chris clepper [EMAIL PROTECTED] Date: 2007/05/14 Mon AM 10:56:03 EDT To: [EMAIL PROTECTED] [EMAIL PROTECTED] CC: pd-list@iem.at Subject: Re: [PD] pix_multiblob cpu usage pix_multiblob is not the most efficient code but it should run at that low resolution. Where did you get the GEM binary? It could be built without optimization. On 5/11/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I made a 400x300 motion JPEG-a movie 15 fps with 5 solid blue circles moving on a black background to test pix_mutiblob. I open it up with pix_film, flip it with pix_flip and send it to pix_multiblob. I suddenly notices PD getting very, very slow. When I look at the cpu usage in activity monitor (if you can believe activity monitor) I get 100-104% cpu usage. I cant do anything else in PD because PD gets so slow. I am using a dual 2Ghz G5 with ATI Radeon 9800 XT and 3GB of internal memory. Is this normal? What can I do to lower cpu usage? What else can I use within Gem to get the same results? I eventually want to be able to track 20-30 objects but It looks like it would be imposible at this rate. Thanks, Alain ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] call for PDP testing on Mac OS X
Thanks. You know even though the pdp_glx help file cleary states: pdp_glx ouputs video in a window using the openGL extension on an X11 window system. I think there should be more of an obvious statement for dummies like me. I can now start to play around with this thing. By the way is pdp_qt fully functional yet? Thanks, Alain On May 8, 2007, at 5:54 PM, Hans-Christoph Steiner wrote: You have to launch X11.app first. It's an extra install on the Tiger DVD. Then it just works for me. .hc On May 8, 2007, at 10:01 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: To anyone who has gotten pdp_glx to work on os x, What did you have to install to get it going? I have run the latest auto-build and although pdp_glx object opens, when ever I try to get a window open I get the following error: pdp_xdisplay_new: can't open display :0 pdp_glx: cant open display :0 I have tried this on 2 different G4s and one G5 with os 10.4.9. Any help would be apreciated. Thanks, Alain From: [EMAIL PROTECTED] Date: 2007/05/07 Mon PM 06:49:21 EDT To: Luigi Rensinghoff [EMAIL PROTECTED], Hans-Christoph Steiner [EMAIL PROTECTED] CC: pd-list@iem.at Subject: Re: [PD] call for PDP testing on Mac OS X pdp_glx, pd_xv and pdp_sdl all work on linux Hans-Christoph Steiner [EMAIL PROTECTED] wrote: Sounds good. Can someone confirm that pdp_glx works fine on GNU/ Linux? Then I'll make the switch. .hc On May 5, 2007, at 6:25 AM, Luigi Rensinghoff wrote: This is just a tiny little thing. I changed the pdp-examples for OSX. Just so beginners are not irritated. pdp_xv replaced by pdp_glx and little more maybe it would be good to have that changed for OSX-Installers pdp_examples_OSX.zip BYe Luigi___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/ listinfo/pd-list --- - Man has survived hitherto because he was too ignorant to know how to realize his wishes. Now that he can realize them, he must either change them, or perish.-William Carlos Williams ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/ listinfo/pd-list -- Patrick Pagano Digital Media Specialist University of Florida Digital Worlds Institute 352-294-2082 ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/ listinfo/pd-list ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/ listinfo/pd-list -- -- ¡El pueblo unido jamás será vencido! ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] [GEM-dev] Gem Compiling os x xcode problems
I tested last nights auto-build and it still says gem is compiled without font support. I will give tonight's build a shot and let you know. BTW I think that a static lib pointing to the X11 freetype is the way to go because if someone already has x11 installed they don't have to compile and install freetype from scratch. It's not hard but it would be more of a pain as opposed to installing the X11 package from their Tiger DVD. Alain On May 8, 2007, at 9:00 PM, Hans-Christoph Steiner wrote: Does freetype have to be statically linked? Will it work with dynamic? Right now, the auto-build compiles with a dynamic freetype lib, and I have a script that includes all the required dynamic libs. .hc On May 8, 2007, at 10:26 AM, chris clepper wrote: Use static linking for freetype and FTGL on OSX. On 5/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have gotten Gem to compile sucesfully with font support using the xcode project somewhat. I get 1125 warnings, mainly this is the location of the previous definition. My biggets problem is that in my machine I have the latest freetype under usr/local/lib and I also have the freetype that comes with x11 under usr/ X11R6/lib. When I load gen in my machine it loads up fine with text support, but when I load up gem in a machine with only the freetype in usr/X11R6/lib Gem will not load up because it keeps looking for the libfreetype.6.dylib in usr/local/lib. I dont know how to remedy this. Any help would be great. Thanks, Alain ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/ listinfo/pd-list ___ GEM-dev mailing list [EMAIL PROTECTED] http://lists.puredata.info/listinfo/gem-dev -- -- All information should be free. - the hacker ethic ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] call for PDP testing on Mac OS X
I have been trying to test PDP on os 10.4.9 but it seems as though pdp_glx does not work so I cant create a window to view pdp_noise and try any of the other thing in it. Also quicktime support is still not working but thanks for all your hard work. This would be a great thing to get working for the mac platform. Alain On Apr 27, 2007, at 5:07 PM, Hans-Christoph Steiner wrote: Ok, I updated libquicktime so it should include libavcodec support. That's my guess as to what's happening here. A local Fink install won't make a difference since all of the libs are included in the Pd.app. Please try one of the auto-builds: http://autobuild.puredata.info/auto-build/latest/ They might not all work until tomorrow, since I fixed it this morning. .hc On Apr 27, 2007, at 9:12 AM, [EMAIL PROTECTED] wrote: I am getting the unsupported codec errors too with every codec I've tried. Is Fink a requrement for running pdp_qt? Maybe I should install Fink and try again tonight. Alain From: marius schebella [EMAIL PROTECTED] Date: 2007/04/26 Thu PM 09:43:26 EDT To: Hans-Christoph Steiner [EMAIL PROTECTED] CC: Tim Boykett [EMAIL PROTECTED], pd-list@iem.at Subject: Re: [PD] call for PDP testing on Mac OS X hi, I tried pdp_qt, but had no luck yet. on pd-40.2 no libraries were loaded, have to test why, and on 0.39.2-rc2 I get this error messages with all my files pdp_qt: opening /Users/marius/Desktop/test1.mov pdp_qt: video stream found (720x480 pixels, 30 fps, 567 frames, jpeg codec) pdp_qt: WARNING: unsupported video codec pdp_qt: ERROR: no usable video stream found. I will see if I find a working codec. but even foto jpeg did not work. pidip also does not seem to start correctly... /Applications/Pd-0.39.2-extended-rc2.app/Contents/Resources/ Scripts/../extra/pidip.pd_darwin: dlopen(/Applications/Pd-0.39.2-extended-rc2.app/Contents/ Resources/Scripts/../extra/ pidip.pd_darwin, 10): Symbol not found: _theora_decode_YUVout Referenced from: /Applications/Pd-0.39.2-extended-rc2.app/Contents/Resources/ Scripts/../extra/pidip.pd_darwin Expected in: dynamic lookup marius. Hans-Christoph Steiner wrote: Ok, pdp and pidip should now include quicktime support, if anyone wants to test: http://autobuild.puredata.info/auto-build/2007-04-26/ libavcodec hasn't been working, so it might not be able to do much yet. .hc -- -- If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of everyone, and the receiver cannot dispossess himself of it.- Thomas Jefferson ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Gem Compiling
I've been trying unsuccessfully to compile gem with font support for PPC running os 10.4.9. I have got as far as compiling freetype2, cppunit and FTGL but when I go to run the Xcode project to compile gem_darwin, I get a bunch of errors like Base/configDarwin.h no such file or directory when I see the file in the directory, among many other errors. I also tried to compile using ./configure and make but I get glsl_program.cpp: In member function `virtual void glsl_program::LinkProgram()': glsl_program.cpp:411: error: 'kCGLCPGPUVertexProcessing' was not declared in this scope glsl_program.cpp:412: error: 'kCGLCPGPUFragmentProcessing' was not declared in this scope make[1]: *** [glsl_program.o] Error 1 make[1]: *** Waiting for unfinished jobs make: *** [Manips] Error 2 I have the most recent cvs stuff so I dont know what to do. I was able to compile the gemlibs just fine but I guess the full echilada takes a little more knowhow. Any help would be awesome. Thanks, Alain ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Gridflow on os x
Does anyone have a working version of Gridflow for os x PPC. Has any one been able to successfully compile it? I have read of people trying to build Gidflow for os x but it seems like no one has got it working. Thanks, Alain ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] frequency graphing in gem
You dont really need the spigot in order to run this patch. Spigot is just there to facilitate turning on and off different wave generators. You can just delete the spigot and connect the osc~ directly to the tabread. Also this patch is made to open up samples and display them. all you have to do is load the samples. Alain On Apr 9, 2007, at 6:08 PM, robbert van hulzen wrote: ah yes i didn't think of that. yet another reason to leave windows ;) (sorry couldn't resist that one.) On 4/9/07 11:56 PM, David Powers [EMAIL PROTECTED] wrote: Hi, Okay, well sorry, but I don't even think this object even exists on Win platform (I certainly know yves' wouldn't have ported it). For your patch to be more compatible it would still be nice to rewrite to use [pd spigot~] I think. But I guess it's not clear what the requirements for your patch are, I also had bugs with GEM, and multiply defined error messages. I'm curious as to what it looks like, since I can't run your patch, maybe you could make a screenshot? Thanks, David On 4/9/07, robbert van hulzen [EMAIL PROTECTED] wrote: [spigot~] in yves' own words: a signal router : version 0.1, written by Yves Degoyon ([EMAIL PROTECTED]) it sends the signal out of the left output if creation arg / left input = 0 and out of the right output if 1. so it could be used like [spigot] for audio if you use the right outlet, or as an 'inversed' [spigot] (default and 0 open it, arg / left input 1 closes it) when using the left outlet. David Powers [EMAIL PROTECTED] wrote: 2. There is a [spigot~] object from ydegoyon, that does NOT behave in the way that you expect in your patch ... i.e. it's not like [spigot], ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/ listinfo/pd-list ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] masking one gem object with another
Hello everyone, Is there a way to use a gem object as a mask for another gem object? Like masking a circle with a triangle. Or cutting out a square inside a circle. Thanks, Alain___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list