Deprecated: Function set_magic_quotes_runtime() is deprecated in /var/www/frischzelle/textpattern/lib/txplib_db.php on line 14

Warning: Cannot modify header information - headers already sent by (output started at /var/www/frischzelle/textpattern/lib/txplib_db.php:14) in /var/www/frischzelle/textpattern/publish.php on line 115

Warning: getdate() [function.getdate]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2,0/DST' instead in /var/www/frischzelle/textpattern/lib/txplib_misc.php on line 1067

Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2,0/DST' instead in /var/www/frischzelle/textpattern/lib/txplib_misc.php on line 1068

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2,0/DST' instead in /var/www/frischzelle/textpattern/lib/txplib_misc.php on line 1104

Warning: getdate() [function.getdate]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2,0/DST' instead in /var/www/frischzelle/textpattern/lib/txplib_misc.php on line 1067

Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2,0/DST' instead in /var/www/frischzelle/textpattern/lib/txplib_misc.php on line 1068

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2,0/DST' instead in /var/www/frischzelle/textpattern/lib/txplib_misc.php on line 1104

Warning: getdate() [function.getdate]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2,0/DST' instead in /var/www/frischzelle/textpattern/lib/txplib_misc.php on line 1067

Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2,0/DST' instead in /var/www/frischzelle/textpattern/lib/txplib_misc.php on line 1068

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2,0/DST' instead in /var/www/frischzelle/textpattern/lib/txplib_misc.php on line 1104

Warning: getdate() [function.getdate]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2,0/DST' instead in /var/www/frischzelle/textpattern/lib/txplib_misc.php on line 1067

Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2,0/DST' instead in /var/www/frischzelle/textpattern/lib/txplib_misc.php on line 1068

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2,0/DST' instead in /var/www/frischzelle/textpattern/lib/txplib_misc.php on line 1104

Warning: getdate() [function.getdate]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2,0/DST' instead in /var/www/frischzelle/textpattern/lib/txplib_misc.php on line 1067

Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2,0/DST' instead in /var/www/frischzelle/textpattern/lib/txplib_misc.php on line 1068

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2,0/DST' instead in /var/www/frischzelle/textpattern/lib/txplib_misc.php on line 1104

Warning: getdate() [function.getdate]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2,0/DST' instead in /var/www/frischzelle/textpattern/lib/txplib_misc.php on line 1067

Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2,0/DST' instead in /var/www/frischzelle/textpattern/lib/txplib_misc.php on line 1068

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2,0/DST' instead in /var/www/frischzelle/textpattern/lib/txplib_misc.php on line 1104
Frischzelle: Processing: Kann jemand helfen?

Kommentare

  1. das billigste, was mir einfällt, wäre, eine fensterfunktion über eure bewegungsphase zu legen. so:

    float wpct = sin(pct*PI-HALF_PI)/2+.5; x = beginX + (wpct * distX); y = beginY + (wpct * distY);

    dann bremst euer partikel immerhin bei jedem eckpunkt ab und zeigt ein eher natürliches beschleunigungsverhalten.

    stefan · Mai 26, 09:59 pm · #

  2. (sorry, fehlende zeilenumbrüche im obigen codebeispiel)

    desweiteren käme für euch vielleicht in frage, die zielpunkte als statische magneten zu modellieren, von denen das partikel angezogen wird. auch nicht weiter schwierig, ihr müsst dann nur
    a) pro partikel position und geschwindigkeit merken + deren veränderungen errechnen (3 zeilen code)
    b) damit rechnen, dass die zielpunkte nie genau getroffen werden, sondern das partikel den zielpunkt in der regel verfehlt, über ihn hinausschießt, um ihn orbitiert/oszilliert.

    ihr könnt die magneten auch dynamisch machen, z.b. die magnetstärke dem geschwindigkeitsvektor des partikels anpassen – damit kann man noch ein bisschen biegen.

    mit magneten kriegt ihr auf jeden fall schöne flugbahnen – auf kosten der zielsicherheit.

    stefan · Mai 26, 10:16 pm · #

  3. wenn ihr auf beides angewiesen seid: punkte treffen UND dabei smoothe kurven – dann ist vorausschauendes fahrverhalten angesagt. nämlich wollt ihr dann spline-interpolation haben, vermutlich NATÜRLICHE KUBISCHE splines. siehe wikipedia. die in processing zu implementieren (für mein letztes videostück) hab ich damals nur mit code klauen geschafft, die mathe war mir zu hoch, um im detail durchzusteigen. jedenfalls sei gesagt, dass ihr für eine spline-interpolation jeweils 4 punkte kennen müsst. also entweder in die zukunft schauen oder mit delay leben :)

    stefan · Mai 26, 10:24 pm · #

  4. btw, hier
    http://www.cse.unsw.edu.au/~lambert/splines/
    kann man schön einige spline-typen vergleichen. davon gibt es auch den java-sourcecode
    http://www.cse.unsw.edu.au/~lambert/splines/source.html
    den ausschlachten geht relativ easy.

    stefan · Mai 26, 10:32 pm · #

  5. Zum Thema Magnete:

    Verstehe ich nicht ganz!
    Wie kann ein Magnet eine Kurve verursachen in einem “System”, in dem es keine Kraft gibt, die gegen die des Magneten wirkt? Durch die Form des Magnetfeldes? Das ist einfach zu implementieren?

    — foerster · Mai 27, 01:47 am · #

Textile-Hilfe