Re: [PD] CPU Object...

2009-07-12 Thread Simon Ball
Thanks Chris. I will do this tomorrow as I can't access the project today.

How do I check CPU usage? Even if tis isn't relevant, it would be usefuul to
know.

Thanks again
Simon

On Sun, Jul 12, 2009 at 6:00 PM, chris clepper cgclep...@gmail.com wrote:

 A G5 running OSX and GEM can run for months and even years without a
 crash.  Grab the crashlog in the Console app and post the last report for
 pd.

 On Sun, Jul 12, 2009 at 12:20 PM, Simon Ball sballm...@googlemail.comwrote:

 Hi List

 I am having trouble with an installation. I am projecting a project that
 uses motion tracking and animation in GEM.

 After a period of time (minimum 1hrs. max 3hrs.) the program crashes.
 There is no error message and the program just disappears. This has happened
 when people have been in the room and when people have not been in the room.
 The patch creates abstractions that generate the animations when movement is
 detected. I have attached the patch but not all of the source files.

 The project is running on a apple G5. OSX not sure which version (rather
 stupidly, cannot find out until tomorrow, sorry).

 This maybe a CPU issue, does anyone know how I can read the CPU usage?
 Having said that, if the project crashes even when no movement is detected.
 I appreciate that this issue could be caused by a number of things but if
 anyone has any suggestions I could try, they would be much appreciated.

 Thanks
 Simon

 ___
 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] A question...

2009-05-14 Thread Simon Ball
Hi Ed, thanks for that. I have played around with using text files to write
co-ordinates to an array. However, what I need is more control of the
co-ordinates. In your example, whenever I bang the message to start the
animation, the 3D ball jumps back to the start and then replays the
animation (obviously!). But is it possible to have each animation start from
where the last one finished? Or better still, is it possible to manipulate
the co-ordinates dynamically? For example, if I record movement which gives
me three 'points' within the frame, can I write this to a table then apply
it to an animation?

I can see how the table arrays work (roughly!), but I want to be able to
manipulate the arrays based on user input (mouse, motion sensor etc). Does
this make sense?

Thanks again for all your time, the PD community in generally has been
really helpful, I think I'm just a few steps from being able to achieve what
I need, but when you're new to something, every hurdle's a big one!

Regards
Simon


On Fri, May 1, 2009 at 4:13 PM, morph_2...@yahoo.co.uk wrote:

 Hi Simon,

 To be honest, I didn't really understand your question at first. It pays to
 be clear - but I sometimes don't get an answer from the list either. If you
 make it clear early on that your question is about a specific object -
 perhaps in the subject line of your email, it may get a better response.

 You must realise that everything is just a way of storing and transmitting
 data - numbers and symbols. The co-ordinates you store in the array for
 splinepath are (floating point number) co-ordinates in the three-dimensional
 space of the gemwin. So the start and endpoints for your animations are
 specified by the first set of 3 co-ordinates and the last set of 3
 co-ordinates.
 The co-ordinates in GEM are relative to the centre of the space, so X=0,
 Y=0, Z=0 sent into a translateXYZ object will send another object (sphere,
 cube, rectangle etc) to the centre of the gem window. This is why the ball
 is always at the right-top-front corner of the example I sent you - because
 the numbers sent into the translateXYZ object are all positive. Change the
 40 to -40 in the attached PD patch.

 A word about arrays: an array is just a list of numbers really. Although it
 is displayed as a graph in PD, the input to [splinepath 3] takes three
 numbers from the array at a time, so the one-dimensional graph view in PD is
 quite useless for visualizing this. If the first set of co-ordinates is set
 to -1, -1, -1, the graph of the array will display this as a straight line,
 whereas in fact it is a single point in three dimensional space. So whereas
 a graph or a list of the array contents might show:
 -1,-1,-1,0,1,-0.5,2,2,0
 the actual structure being read by the [spline_path] object is:
 Point A: X=-1, Y=-1, Z=-1
 Point B: X=0,  Y=1, Z=-0.5
 Point C: X=2,  Y=2, Z=0

 Best of luck with it,
 Ed

 --- On Fri, 1/5/09, Simon Ball sballm...@googlemail.com wrote:

  From: Simon Ball sballm...@googlemail.com
  Subject: Re: A question...
  To: Ed Kelly morph_2...@yahoo.co.uk
  Date: Friday, 1 May, 2009, 10:12 AM
  Thanks Ed, that's definitely given
  me a clearer view of what spline path does, I certainly have
  more control now than I did previously. Is there a way to
  get more precise information to the table arrays, such as
  defining start and end points for the animation?
 
 
  I have put the question to the list, but I haven't had
  a response. Perhaps my e-mails are not getting through, but
  I imagine its either because people are bored of my
  questions or there is some obvious documentation that
  I'm missing. Are there any walk through's/tutorials
  on this kind of animation in GEM?
 
 
  Thanks again for your help, I think Andy is planning to get
  you in for another workshop at some point, which would be
  really useful. I've been getting more into PD so have a
  vast array of questions and should have a better
  understanding of the answers of the answers you give!
 
 
  Thanks again mate
  Simon
 
  On Thu, Apr 30, 2009 at 5:15 PM,
  Ed Kelly morph_2...@yahoo.co.uk
  wrote:
 
  Hi Simon...
 
 
 
  Apologies for the late reply. It is my understanding that
  [spline_path] interpolates between points in a table. These
  are read out in multiples, when a number between 0 and 1 is
  sent into the first inlet corresponding to the position in
  the table.
 
 
 
 
  These are at this stage just numbers. If they are sent to a
  translateXYZ object then they become position co-ordinates,
  or if they are sent to a rotateXYZ object they become
  rotation values in degrees.
 
 
 
  Since spline_path reads from a table, the values should be
  stored as triples: x, y and z co-ordinate values can be
  manipulated by tabwrite objects as long as they are input to
  the table in series (for each point x, then y, then z). Or
  if you just want to work in two dimensions, x and y
  co-ordinates stored as pairs will work. The table size must
  be divisible

[PD] Array Animations...

2009-04-28 Thread Simon Ball
Hi there, I sent this the other day and I'm not sure if it got through,
apologies if it's a duplicate...

Hi list

I'm trying to understand how tables/arrays work with animations. As far as I
can see, I can place a set of coordinates in a text file and then use an
array to animate elements in gem space. I have been looking at various
examples, notably [splinepath], which uses [line] to govern the length and
speed of the movement. However, I'm struggling to understand the exact
relationship between the co-ordinates written in the text file and what
actually happens to an image when rendered. Sometimes I change the numbers
and the animation stays the same, other times it appears erratic.

I've found documentation on how to transform objects in gem, but there seems
to be little help in terms of creating more complex animations. If anyone
can provide a simple explanation/some pointers or show me where to look, I
would very much appreciate it.

Mac OSX Intel Core Duo 10.4.11. PD-Extended 0.40.3.

Thanks
Simon
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] Animating with arrays...

2009-04-20 Thread Simon Ball
Hi list

I'm trying to understand how tables/arrays work with animations. As far as I
can see, I can place a set of coordinates in text file and then use an array
to apply this to elements in a scene. I have been looking at various
examples, notably [splinepath], which uses [line] to govern the length and
speed of the movement. However, I'm struggling to understand the exact
relationship between the co-ordinates written in the text file and what
actually happens to an image when rendered. Sometimes I change the numbers
and the animation stays the same, other times it appears erratic.

I'm trying to trigger animations so that they float and rotate into place.
If anyone has any ideas on the best way to approach this, or can direct me
to some useful help files, I would really appreciate it. I was looking at a
pdf that was packaged with PD-extended called 'GemPrimer'. The documentation
was clear and insightful for someone of my level (beginner!) and hoping
there might more files like this one...

Mac OSX Intel Core Duo 10.4.11. PD-Extended 0.40.3.

Thanks
Simon
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Multiblob and matrices...

2009-04-06 Thread Simon Ball
Thanks for the response. However, I am still struggling with this. I
probably need a much more basic explanation. Sorry.

I assume that the patches you've provided (greatly appreciated) collate the
data in someway in order for me to be able to unpack it? However, I'm not
sure that I even understand exactly how 'unpack' and 'route' work, which is
obviously a problem!

If anyone can provide a more simplified explanation I would really
appreciate it. I'm not that familiar with programming, so layman's terms are
all I can manage!

Thanks
Simon

On Sat, Apr 4, 2009 at 2:14 PM, IOhannes m zmoelnig zmoel...@iem.at wrote:

 Simon Ball wrote:
  Hi List


 hi.
 it seems like i received this email multiple times...

 
  However, there are few areas I am still confused about. First of all, I
 am
  unsure of how to extract muliple co-ordinates from [pix_multiblob]. I
  understand that the data from multiblob is collated within a matrix. I am
  able to see this in the pd window when I print. However, I am unsure how
 to
  use a matrix. Is there a certain object that I should be sending to from
  [pix_multiblob]? And in turn, how would I convert the matrix into xy
  co-ordinates.


 there is a separate library dedicated to the kind of matrices output by
 [pix_multiblob]; it's called iemmatrix.

 however, you should have an understanding of matrices in order to use it.

 matrices of this form are simple messages which you can treat like any
 other message.
 attached are two examples on how to extract the rows of a matrix (and
 pix_multiblob will give you one row per blob; so this is interesting
 data), one using iemmatrix ([pix_rows]) and one using zexy ([pix_rowz]).
 it is left as an exercise for the user to make a pd-vanilla implementation.

 just send the mtx-output of [pix_multiblob] to the object, and you will
 get nice lists for each blob, starting with the index of the blob
 (zero-based) and then comes the data.
 use [route] to filter the relevant blobs and [unpack] to access the data.


 
  In the archives I found a response to similar a question saying there was
 a
  gem example with matrix and multiblob, but I can not seem to find it. Any
  idea what and where this is?
 

 there's an abstraction called [pix_blobtracker] which uses
 [pix_multiblob] and matrix operations to track blobs.


 
  Hope thats not too many questions. And is it easier for the list if I
 divide
  questions up (for archive purposes perhaps)?
 

 personally i would prefer separate threads for separate questions for
 starters. it always ends in confusion, but we could try to delay this...


 gmsdr
 IOhannes

 #N canvas 0 0 552 353 10;
 #X obj 153 163 mtx;
 #X msg 153 143 col;
 #X obj 153 123 t b a b;
 #X obj 153 208 list prepend;
 #X obj 153 184 t a b;
 #X obj 196 185 i;
 #X obj 225 187 + 1;
 #X msg 214 165 0;
 #X obj 153 97 inlet;
 #X obj 153 236 outlet;
 #X text 72 48 output thw rows of a matrix \, prepended with a (zero-based)
 index;
 #X text 50 265 depends on [iemmatrix];
 #X connect 0 0 4 0;
 #X connect 1 0 0 0;
 #X connect 2 0 1 0;
 #X connect 2 1 0 1;
 #X connect 2 2 7 0;
 #X connect 3 0 9 0;
 #X connect 4 0 3 0;
 #X connect 4 1 5 0;
 #X connect 5 0 6 0;
 #X connect 5 0 3 1;
 #X connect 6 0 5 1;
 #X connect 7 0 5 1;
 #X connect 8 0 2 0;

 #N canvas 166 277 450 419 10;
 #X msg 176 195 \$2;
 #X obj 184 249 repack;
 #X obj 144 221 list split 3;
 #X obj 184 321 list prepend;
 #X obj 144 170 t a a b;
 #X obj 184 274 t a b;
 #X obj 216 297 i;
 #X obj 246 298 + 1;
 #X msg 234 276 0;
 #X obj 144 145 inlet;
 #X obj 184 351 outlet;
 #X text 72 108 output thw rows of a matrix \, prepended with a (zero-based)
 index;
 #X text 50 375 depends on [zexy];
 #X connect 0 0 1 1;
 #X connect 1 0 5 0;
 #X connect 2 1 1 0;
 #X connect 3 0 10 0;
 #X connect 4 0 2 0;
 #X connect 4 1 0 0;
 #X connect 4 2 8 0;
 #X connect 5 0 3 0;
 #X connect 5 1 6 0;
 #X connect 6 0 7 0;
 #X connect 6 0 3 1;
 #X connect 7 0 6 1;
 #X connect 8 0 6 1;
 #X connect 9 0 4 0;


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] Multiblob and Animations...

2009-04-04 Thread Simon Ball
Hi List

I've been working with pix_multiblob to affect layers in 3D. I'm managing to
get an erratic signal from it, which from my point of view, represents great
success! ; )

However, there are few areas I am still confused about. First of all, I am
unsure of how to extract muliple co-ordinates from [pix_multiblob]. I
understand that the data from multiblob is collated within a matrix. I am
able to see this in the pd window when I print. However, I am unsure how to
use a matrix. Is there a certain object that I should be sending to from
[pix_multiblob]? And in turn, how would I convert the matrix into xy
co-ordinates.

In the archives I found a response to similar a question saying there was a
gem example with matrix and multiblob, but I can not seem to find it. Any
idea what and where this is?

Also...

I am trying to use the various xy co-ordinates to trigger animations.
However, I am unsure of how to animate with Pd. I noticed that [splinepath]
does something similar to what I am looking for. This seems to be based on
array's. However, looking at the help data for array's has not made it any
clearer. Is there a way of inputting a list of co-ordinates that act as a
path for an image to follow?

Hope thats not too many questions. And is it easier for the list if I divide
questions up (for archive purposes perhaps)?

Thanks in advance
Simon
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] Multiblob and Animations,,,

2009-04-01 Thread Simon Ball
Hi List

I've been working with pix_multiblob to affect layers in 3D. I'm managing to
get an erratic signal from it, which from my point of view, represents great
success! ; )

However, there are few areas I am still confused about. First of all, I am
unsure of how to extract muliple co-ordinates from [pix_multiblob]. I
understand that the data from multiblob is collated within a matrix. I am
able to see this in the pd window when I print. However, I am unsure how to
use a matrix. Is there a certain object that I should be sending to from
[pix_multiblob]? And in turn, how would I convert the matrix into xy
co-ordinates.

In the archives I found a response to similar a question saying there was a
gem example with matrix and multiblob, but I can not seem to find it...

Also...

I am trying to use the various xy co-ordinates to trigger animations.
However, I am unsure of how to animate with Pd. I noticed that [splinepath]
does something similar to what I am looking for. This seems to be based on
array's. However, looking at the help data for array's has not made it any
clearer. Is there a way of inputting a list of co-ordinates that act as a
path for an image to follow?

One last thing...

How can I adjust transparency/opacity in PD, I can not find an object that
does this.

Hope thats not too many questions. And is it easier for the list if I divide
questions up (for archive purposes perhaps)?

Thanks in advance
Simon
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] Background Colour...

2009-03-30 Thread Simon Ball
Hi there, simple question...

How do I change the background colour of the window?

I'm still learning, obviously.
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] Mouse Control...

2009-03-16 Thread Simon Ball
Hi there

I'm having trouble realising an idea. I've got the software running (mac
book pro) and managed to play with some of the examples, however I am new to
PD, so bare with me!

I'm trying to generate a composition of images that float in 3D space. I
want the images or layers to move and rotate towards areas of a screen where
movement is detected. I don't need to track specific points of motion,
simply to judge where movement is taking place. I think this will involve
reading frames and analysing changes in pixels. Does that make sense?

I plan to use a mini DV camera to run this, on a high contrast background,
although I've seen a similar method of recording movement with a webcam and
processing, which worked pretty well. (
http://vimeo.com/1948430?pg=embedsec= - tracks changes in pixels, although
I'm not sure how).

I assume that this will involve some sort of trigonometry to move images
towards points where motion is detected, although I'm not sure how to apply
this in PD. Also, how to I generate a floating effect, much like 'easing'
does in animation software. And can this work with 3D, mapped images in PD?

I hope thats clear, if a little broad, let me know you need any further
info.

Thanks in advance for any suggestions/solutions.

Simon

Simon Ball
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list