-----Original Message----- From: Gilbert Nouno [mailto:Gilbert.Nouno@ircam.fr] Subject: camera object in pd-gem
I am a new pd and gem user, so I would like to apologize for my basic questions.
Don't worry. I would blame the documentation in GEM, instead of your questions.
<snip> > I tried to use the camera object, but I did'nt manage to get it work. > the doc says it is still in development, does it work and how > do you include it in a gem chain ? >
I was actually looking at the camera code last night. It works on my box, but it isn't very intuitive. This should be cleaned up with GEM 0.80 and I'll have some example patches. Let me know if you need it before then.
<snip> > is it possible to have local referentials and to move one referential > inside another one ? > in fact I would like to do a composition of movments. >
Absolutely. You can have as many translate and rotate objects as you want in a chain. Try the following patch (make sure to set the drawing to line, so that you can see the rotation of the sphere).
Later, Mark
-- Mark Danks -- mdanks@stormfront.com
#N canvas 682 356 600 500 8; #X obj 59 149 gemwin; #X obj 271 56 gemhead; #X obj 276 113 rotate 0 1 0; #X obj 272 217 rotate 1 0 0; #X obj 272 271 sphere; #X msg 376 231 draw line; #X msg 113 59 create; #X msg 123 97 destroy; #X msg 174 57 1; #X msg 184 95 0; #X floatatom 384 65; #X floatatom 413 166; #X obj 274 167 translateXYZ 2 0 0; #X connect 1 0 2 0; #X connect 2 0 12 0; #X connect 3 0 4 0; #X connect 5 0 4 0; #X connect 6 0 0 0; #X connect 7 0 0 0; #X connect 8 0 0 0; #X connect 9 0 0 0; #X connect 10 0 2 1; #X connect 11 0 3 1; #X connect 12 0 3 0;