[PD-dev] gem ortho

2007-08-15 Thread nosehair911
I am trying to convert an opengl app to a gem object but I am still a bit confused as to the ortho thing. I have it pretty much converted but I can only see it using ortho and it looks very small. This app is made to be viewed using gluOrtho2D ( 0.0, 1.0, 0.0, 1.0 ); but I cant figure out

Re: [PD-dev] smoke object help

2007-08-05 Thread nosehair911
Thanks for your responce. perspec -1 640 -1 480 1 1001 did the trick. What I dont get is why I cant do perspec -1 640 -1 480 999 1001 and view 0 0 1000. The image disapears I have to have perspec at 1 1001 to see an image. Even if I do 2 1001 I get nothing. With other geos it works but not

Re: [PD-dev] smoke object help

2007-08-04 Thread nosehair911
The reason I was not seeing anything was that the code was using glVertex2f and it seems that anything above -1 z depth desapears in gem. So I ended up using glVertex3f( number,number, -1.1) and now I can see stuff happening. Now my problem is that the action is all limited to the positive

Re: [PD-dev] help-array crashing outlet_anything

2007-07-25 Thread nosehair911
Ok I tried with a static array like Class array[amount] and it did not crash, it worked perfect. Now I have to figure out what I am doing to cause a crash (with heavy cpu load I persume, still a bit confused?) using a dynamic array? It would be nice to have a dynamic array so as not to eat

Re: [PD-dev] help-array crashing outlet_anything

2007-07-25 Thread nosehair911
It doesn't thats whats confusing me. Pixel data is the same on both exept it takes more cpu to process. I think it has to do with cpu load but I am not sure. I think I am going to just try a simple Class array[amount] intead of Class *pointer = new Class[amount] see if that would be easier

Re: [PD-dev] Pd external-window crash

2007-06-25 Thread nosehair911
Jamie, I am running thru your 2004 apple developer posts. http://lists.apple.com/archives/carbon-development/2004/Jan/msg00318.html I am trying to figure out how you solved the carbon windowing issue you had with Gem for my external but you never posted a solution. What did you finaly do to get

[PD-dev] sending data out using sprintf

2007-06-22 Thread nosehair911
I am trying to send some data out of an outlet using a symbol pointer. I have tried using sprintf like martin suggested with little succes. I am sure I am the one doing something wrong. I am getting a pointer symbol but I am not able to convert the pointer back. In external#1 I have: The

[PD-dev] Pd external-window crash

2007-06-22 Thread nosehair911
I am trying to write an external library that uses opencv. I am using os x 10.4.9 and Pd extended 0.3.9. To display images and movies opencv uses a call to a window. I have a standalone terminal program that call the window and displays the image correctly. When I try to call a window from

Re: [PD-dev] sending data out using sprintf

2007-06-22 Thread nosehair911
Well for never passing pointers around you have some great insight. That did it. Thanks.. The final outcode for any interested parties: x-in_frame = (IplImage *)strtol(s-s_name, NULL, 0); Now I have another snag, but thats in another email. Alain From: Bryan Jurish [EMAIL PROTECTED] Date:

Re: [PD-dev] Pd external-window crash

2007-06-22 Thread nosehair911
It seems like the window is made using Carbon. Is there any special way Pd handles Carbon windows that would cause this stall? I can also compile opencv to use X11 windowing thru finks gdk. Would Pd handle that better? Alain From: [EMAIL PROTECTED] Date: 2007/06/22 Fri AM 10:53:54 EDT

Re: [PD-dev] Pd external-window crash

2007-06-22 Thread nosehair911
Well it looks like if I get a Gemwin opened first, then I can open an opencv window without a crash. Does anyone know what specifically does Gem do to get Pd to open a carbon window without a crash? Alain From: [EMAIL PROTECTED] Date: 2007/06/22 Fri PM 02:37:30 EDT To: pd-dev@iem.at

[PD-dev] Symbol not found: ?

2007-06-13 Thread nosehair911
I am trying to get a external written using functions outside of Pd. I have my header files included and the external is compiling but when I try to load it into Pd I get this error: 10): Symbol not found: _whatever-external-function Expected in: dynamic lookup [import]: ERROR: can't load

[PD-dev] compiling external in Xcode

2007-05-31 Thread nosehair911
I am trying to get a test compile of the counter example from the how to guide built in Xcode but I dont know which target type to choose. When I choose any of the dynamic lib options I get linker errors like this: ld: Undefined symbols: _class_addbang _class_new _gensym _outlet_float

[PD-dev] opencv externals data type conversion

2007-05-29 Thread nosehair911
I am trying to write a set of externals based on the opencv library. My main interest is in the motion tracking aspect of opencv. I am new to programing and I am having a tough time converting the opencv IplImage data type to the Pd symbol data type in order to send it out of outlets and in