Hi pd-list,
Just in case it might interested some of you guys, or even for the GEM official examples, I just wrote a PD clock using GEM and Zexy. It is currently available online at http://www.sourcelibre.com/puredata/clock.pd for your pleasure. It uses simple trigonometry calculations with [sin] and [cos]. Thanks !
Alexandre Quessy http://www.sourcelibre.com/
It almost works... For the hours part you need to replace [expr $f1 / 24 * 360] with something like
[% 12] | [expr $f1 / 12 * 360]
...after the time object or the hour hand is in the wrong place; you have it for a 24 hour clock. Also the [rotateXYZ 0 0 0 0] should be [rotateXYZ 0 0 0] to avoid error messages.
Martin
Alexandre Quessy wrote:
Hi pd-list,
Just in case it might interested some of you guys, or even for the GEM official examples, I just wrote a PD clock using GEM and Zexy. It is currently available online at http://www.sourcelibre.com/puredata/clock.pd for your pleasure. It uses simple trigonometry calculations with [sin] and [cos]. Thanks !
Alexandre Quessy http://www.sourcelibre.com/
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Tue, 11 Oct 2005, Alexandre Quessy wrote:
Just in case it might interested some of you guys, or even for the GEM official examples, I just wrote a PD clock using GEM and Zexy. It is currently available online at http://www.sourcelibre.com/puredata/clock.pd for your pleasure. It uses simple trigonometry calculations with [sin] and [cos]. Thanks !
Why do you need [sin] and [cos] instead of [rotate] ?
Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju Freelance Digital Arts Engineer, Montréal QC Canada
Why do you need [sin] and [cos] instead of [rotate] ?
Well, depends if I can change the center of rotation of a geo. If so, then I don't need those trigonometry objects. Right.
Thanks to Martin Peach for the corrections... I saw that something was wrong after I posted this mail...
Alexandre Quessy wrote:
Why do you need [sin] and [cos] instead of [rotate] ?
Well, depends if I can change the center of rotation of a geo. If so, then I don't need those trigonometry objects. Right.
you can move the pivot point (thats the center of rotation) by simply add another [translate] after the [rotate]: the joys of hierarchical render graphs.
mfga.sdr. IOhannes
The clock did not give the proper hour reading (in 24 hour format) on my computer. I added a modulo 12 and changed your scaling factor.
Tom
On 10/12/05, Alexandre Quessy listes@sourcelibre.com wrote:
Why do you need [sin] and [cos] instead of [rotate] ?
Well, depends if I can change the center of rotation of a geo. If so, then I don't need those trigonometry objects. Right.
Thanks to Martin Peach for the corrections... I saw that something was wrong after I posted this mail...
Alex http://www.sourcelibre.com/puredata
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Wed, 12 Oct 2005, Alexandre Quessy wrote:
Why do you need [sin] and [cos] instead of [rotate] ?
Well, depends if I can change the center of rotation of a geo.
conjugate it by a translation.
conjugating means you do one operation just before and the opposite one just after.
e.g.:
| [translateXYZ -4 6 -2] forward translation | [rotateXYZ 0 0 0.523598] rotation | [translateXYZ 4 -6 2] backward translation |
warning: Pd sees +2 as a symbol and not a float, so if you write a positive number you must not type its sign.
Also note that in this particular case, the Z component of the translation has no effect (and could be anything as long as the two values are opposed), because the rotation has fixed points which are exactly the Z axis.
Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju Freelance Digital Arts Engineer, Montréal QC Canada
Hello to all,
the accomplishment of the interactivo video project "Carousel" was only possible with your aid.
I´would like to thank all the members of the PD-list for the given support and answers to my doubts.
You can consult some photographs of the "Carroussel" project, as well as a 2 minutes video at:
http://www.carloscaires.org/00-carrossel.htm
Thank you all.
Carlos Caires CITAR - Centro de Investigação em Ciências e Tecnologias das Artes Universidade Católica Portuguesa