We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Pages: 1 2 
Mapping (Read 2758 times)
Re: Mapping
Reply #15 - Jun 21st, 2009, 3:48am
 
OK - here it is working with a single image.  This in fact produces better results than the split image version, is actually simpler to set up, and I'm sure there are benefits to using a single PImage object rather than several.

I've also stripped out your magic numbers: so you can change the numPoints to anything you want (as long as it's an odd number actually it doesn't need to be odd - still half-asleep...) and the size of the offsets is based on the size of the image loaded.

TBH - I should have left that last bit to you, but this wasn't something I'd tried before so I was intrigued at the possibilities.  It would probably be best to separate the whole thing out into a class to best exploit its potential...  i.e. to have several images animated in this way on screen at the same time Wink
Re: Mapping
Reply #16 - Jun 21st, 2009, 5:46am
 
Nice!

Here is my version,
http://homepage.ntlworld.com/ricardo.sanchez/processing/fish_motion/

Thanks again for the support its been very helpfull, it help me understand how to store the data(vertex coordinates) and how to use/get it, plus good tips aswell.

I need to translate this thing in to vector-style, after reading your code it does makes more sence, x y than [0] [1]

Now I will sort out the sine wave, because it doesnt look very natural, and take that in to a class; I clean the code, add some UI to control the view and wave amplitud.

Cheers
rS
Re: Mapping
Reply #17 - Jun 21st, 2009, 4:47pm
 
Yeah, thats great. i like it
Pages: 1 2