hi Peter and list many thanks for your help and examples, im making some awesome stuff with this!!!
well i have a new question... maybe you can help me: the idea of the patch is a camera that travels to weird places, i have a problem with this because if i change the parameters of the translateXYZ , rotateXYZ, it affects the whole structure, and i was wondering if there is any way of affect just the incomming ones. for example i want that when i change those parameters , begin affecting to geos that are far away (not all the structure at the same time) , so all the structucture will change progresively . i have no idea of doing this. any idea would be nice thanks
here is the patch!
#N canvas 527 96 478 538 12; #X obj 16 40 gemwin; #N canvas 313 511 834 348 init 0; #X obj 45 213 outlet; #X obj 45 80 loadbang; #X msg 45 120 fogmode 1 , fog 0.5 , color 0.2 0 0.5 , fogcolor 0.2 0 0.5 , lighting 1; #X connect 1 0 2 0; #X connect 2 0 0 0; #X restore 16 14 pd init; #X obj 38 115 gemhead; #X obj 75 42 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1 ; #N canvas 836 52 458 308 light 0; #X obj 43 35 gemhead; #X obj 43 75 world_light; #X obj 126 26 loadbang; #X msg 126 51 1 1 0; #X connect 0 0 1 0; #X connect 2 0 3 0; #X connect 3 0 1 1; #X restore 16 69 pd light; #X msg 86 15 create; #X floatatom 67 435 5 0 0 0 - - -; #X obj 38 165 t a b; #X msg 196 231 0; #X obj 177 261 i; #X obj 210 261 + 1; #X obj 38 220 t a b; #X obj 25 318 separator; #X obj 177 296 +; #X obj 251 195 f; #X obj 38 95 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X msg 270 160 0; #X floatatom 622 207 5 0 0 0 - - -; #X floatatom 553 209 5 0 0 0 - - -; #X obj 37 463 sphere; #X obj 37 364 translateXYZ -4 0 1; #X floatatom 153 500 5 0 0 0 - - -; #X obj 38 192 repeat 90; #N canvas 834 452 466 316 fmod 0; #X obj 67 37 inlet; #X obj 67 211 outlet; #X obj 67 103 % 23; #X obj 118 118 i; #X obj 93 146 -; #X obj 67 182 +; #X obj 67 62 t f f f; #X connect 0 0 6 0; #X connect 2 0 5 0; #X connect 3 0 4 1; #X connect 4 0 5 1; #X connect 5 0 1 0; #X connect 6 0 2 0; #X connect 6 1 4 0; #X connect 6 2 3 0; #X restore 178 324 pd fmod 90; #X obj 284 197 + 0.4; #X floatatom 475 205 5 0 0 0 - - -; #X floatatom 117 96 5 0 0 0 - - -; #X obj 183 384 loadbang; #X msg 164 425 3; #X obj 16 285 rotateXYZ 8 1 13; #X obj 38 141 translateXYZ -3 2 -20; #X text 504 170 play with this; #X connect 1 0 0 0; #X connect 2 0 30 0; #X connect 3 0 0 0; #X connect 5 0 0 0; #X connect 6 0 19 1; #X connect 7 0 22 0; #X connect 7 1 8 0; #X connect 7 1 14 0; #X connect 8 0 9 1; #X connect 9 0 10 0; #X connect 9 0 13 0; #X connect 10 0 9 1; #X connect 11 0 29 0; #X connect 11 1 9 0; #X connect 12 0 20 0; #X connect 13 0 23 0; #X connect 14 0 13 1; #X connect 14 0 24 0; #X connect 15 0 2 0; #X connect 16 0 14 1; #X connect 17 0 20 1; #X connect 18 0 29 3; #X connect 20 0 19 0; #X connect 21 0 19 2; #X connect 22 0 11 0; #X connect 23 0 20 3; #X connect 24 0 14 1; #X connect 25 0 29 1; #X connect 26 0 30 1; #X connect 27 0 28 0; #X connect 28 0 6 0; #X connect 29 0 12 0; #X connect 30 0 7 0;
thanks
bye
I think there's a "seperator" object that does that, if I understand your question correctly. I can't get PD in front of me at the moment so I can't double check.
-ISH
siggmuss wrote:
hi Peter and list many thanks for your help and examples, im making some awesome stuff with this!!!
well i have a new question... maybe you can help me: the idea of the patch is a camera that travels to weird places, i have a problem with this because if i change the parameters of the translateXYZ , rotateXYZ, it affects the whole structure, and i was wondering if there is any way of affect just the incomming ones. for example i want that when i change those parameters , begin affecting to geos that are far away (not all the structure at the same time) , so all the structucture will change progresively . i have no idea of doing this. any idea would be nice thanks
here is the patch!
#N canvas 527 96 478 538 12; #X obj 16 40 gemwin; #N canvas 313 511 834 348 init 0; #X obj 45 213 outlet; #X obj 45 80 loadbang; #X msg 45 120 fogmode 1 , fog 0.5 , color 0.2 0 0.5 , fogcolor 0.2 0 0.5 , lighting 1; #X connect 1 0 2 0; #X connect 2 0 0 0; #X restore 16 14 pd init; #X obj 38 115 gemhead; #X obj 75 42 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1 ; #N canvas 836 52 458 308 light 0; #X obj 43 35 gemhead; #X obj 43 75 world_light; #X obj 126 26 loadbang; #X msg 126 51 1 1 0; #X connect 0 0 1 0; #X connect 2 0 3 0; #X connect 3 0 1 1; #X restore 16 69 pd light; #X msg 86 15 create; #X floatatom 67 435 5 0 0 0 - - -; #X obj 38 165 t a b; #X msg 196 231 0; #X obj 177 261 i; #X obj 210 261 + 1; #X obj 38 220 t a b; #X obj 25 318 separator; #X obj 177 296 +; #X obj 251 195 f; #X obj 38 95 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X msg 270 160 0; #X floatatom 622 207 5 0 0 0 - - -; #X floatatom 553 209 5 0 0 0 - - -; #X obj 37 463 sphere; #X obj 37 364 translateXYZ -4 0 1; #X floatatom 153 500 5 0 0 0 - - -; #X obj 38 192 repeat 90; #N canvas 834 452 466 316 fmod 0; #X obj 67 37 inlet; #X obj 67 211 outlet; #X obj 67 103 % 23; #X obj 118 118 i; #X obj 93 146 -; #X obj 67 182 +; #X obj 67 62 t f f f; #X connect 0 0 6 0; #X connect 2 0 5 0; #X connect 3 0 4 1; #X connect 4 0 5 1; #X connect 5 0 1 0; #X connect 6 0 2 0; #X connect 6 1 4 0; #X connect 6 2 3 0; #X restore 178 324 pd fmod 90; #X obj 284 197 + 0.4; #X floatatom 475 205 5 0 0 0 - - -; #X floatatom 117 96 5 0 0 0 - - -; #X obj 183 384 loadbang; #X msg 164 425 3; #X obj 16 285 rotateXYZ 8 1 13; #X obj 38 141 translateXYZ -3 2 -20; #X text 504 170 play with this; #X connect 1 0 0 0; #X connect 2 0 30 0; #X connect 3 0 0 0; #X connect 5 0 0 0; #X connect 6 0 19 1; #X connect 7 0 22 0; #X connect 7 1 8 0; #X connect 7 1 14 0; #X connect 8 0 9 1; #X connect 9 0 10 0; #X connect 9 0 13 0; #X connect 10 0 9 1; #X connect 11 0 29 0; #X connect 11 1 9 0; #X connect 12 0 20 0; #X connect 13 0 23 0; #X connect 14 0 13 1; #X connect 14 0 24 0; #X connect 15 0 2 0; #X connect 16 0 14 1; #X connect 17 0 20 1; #X connect 18 0 29 3; #X connect 20 0 19 0; #X connect 21 0 19 2; #X connect 22 0 11 0; #X connect 23 0 20 3; #X connect 24 0 14 1; #X connect 25 0 29 1; #X connect 26 0 30 1; #X connect 27 0 28 0; #X connect 28 0 6 0; #X connect 29 0 12 0; #X connect 30 0 7 0;
thanks
bye
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
hey Siggmuss,
very nice patch, yup, it's the problem of the separator, I've edit the patch a bit and play around. If you change the translateXYZ, there's no change of the whole structure.
cheers,
於 20 Oct 04 2:11 AM 時,Ian Smith-Heisters 提到:
I think there's a "seperator" object that does that, if I understand your question correctly. I can't get PD in front of me at the moment so I can't double check.
-ISH
siggmuss wrote:
hi Peter and list many thanks for your help and examples, im making some awesome stuff with this!!!
well i have a new question... maybe you can help me: the idea of the patch is a camera that travels to weird places, i have a problem with this because if i change the parameters of the translateXYZ , rotateXYZ, it affects the whole structure, and i was wondering if there is any way of affect just the incomming ones. for example i want that when i change those parameters , begin affecting to geos that are far away (not all the structure at the same time) , so all the structucture will change progresively . i have no idea of doing this. any idea would be nice thanks
here is the patch!
#N canvas 527 96 478 538 12; #X obj 16 40 gemwin; #N canvas 313 511 834 348 init 0; #X obj 45 213 outlet; #X obj 45 80 loadbang; #X msg 45 120 fogmode 1 , fog 0.5 , color 0.2 0 0.5 , fogcolor 0.2 0 0.5 , lighting 1; #X connect 1 0 2 0; #X connect 2 0 0 0; #X restore 16 14 pd init; #X obj 38 115 gemhead; #X obj 75 42 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1 ; #N canvas 836 52 458 308 light 0; #X obj 43 35 gemhead; #X obj 43 75 world_light; #X obj 126 26 loadbang; #X msg 126 51 1 1 0; #X connect 0 0 1 0; #X connect 2 0 3 0; #X connect 3 0 1 1; #X restore 16 69 pd light; #X msg 86 15 create; #X floatatom 67 435 5 0 0 0 - - -; #X obj 38 165 t a b; #X msg 196 231 0; #X obj 177 261 i; #X obj 210 261 + 1; #X obj 38 220 t a b; #X obj 25 318 separator; #X obj 177 296 +; #X obj 251 195 f; #X obj 38 95 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X msg 270 160 0; #X floatatom 622 207 5 0 0 0 - - -; #X floatatom 553 209 5 0 0 0 - - -; #X obj 37 463 sphere; #X obj 37 364 translateXYZ -4 0 1; #X floatatom 153 500 5 0 0 0 - - -; #X obj 38 192 repeat 90; #N canvas 834 452 466 316 fmod 0; #X obj 67 37 inlet; #X obj 67 211 outlet; #X obj 67 103 % 23; #X obj 118 118 i; #X obj 93 146 -; #X obj 67 182 +; #X obj 67 62 t f f f; #X connect 0 0 6 0; #X connect 2 0 5 0; #X connect 3 0 4 1; #X connect 4 0 5 1; #X connect 5 0 1 0; #X connect 6 0 2 0; #X connect 6 1 4 0; #X connect 6 2 3 0; #X restore 178 324 pd fmod 90; #X obj 284 197 + 0.4; #X floatatom 475 205 5 0 0 0 - - -; #X floatatom 117 96 5 0 0 0 - - -; #X obj 183 384 loadbang; #X msg 164 425 3; #X obj 16 285 rotateXYZ 8 1 13; #X obj 38 141 translateXYZ -3 2 -20; #X text 504 170 play with this; #X connect 1 0 0 0; #X connect 2 0 30 0; #X connect 3 0 0 0; #X connect 5 0 0 0; #X connect 6 0 19 1; #X connect 7 0 22 0; #X connect 7 1 8 0; #X connect 7 1 14 0; #X connect 8 0 9 1; #X connect 9 0 10 0; #X connect 9 0 13 0; #X connect 10 0 9 1; #X connect 11 0 29 0; #X connect 11 1 9 0; #X connect 12 0 20 0; #X connect 13 0 23 0; #X connect 14 0 13 1; #X connect 14 0 24 0; #X connect 15 0 2 0; #X connect 16 0 14 1; #X connect 17 0 20 1; #X connect 18 0 29 3; #X connect 20 0 19 0; #X connect 21 0 19 2; #X connect 22 0 11 0; #X connect 23 0 20 3; #X connect 24 0 14 1; #X connect 25 0 29 1; #X connect 26 0 30 1; #X connect 27 0 28 0; #X connect 28 0 6 0; #X connect 29 0 12 0; #X connect 30 0 7 0;
thanks
bye
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
slimboyfatboyslim http://www.slimboyfatboyslim.org
ive tried putting the "separator" object. I think maybe you dont understood my question I know how to rotate or translate the image without affecting its structure using separator objects. What im trying to do is to affect the structure, but not the whole at the same time)all the balls). what i want to do is for example : when i change translate or rotate, begin affecting the balls that are far away no the ones that are near of the screen. So all the structure will change in a "progressive" way.
many thanks siggmus
On Tue, 19 Oct 2004 17:11:36 -0700, "Ian Smith-Heisters" heisters@0x09.com said:
I think there's a "seperator" object that does that, if I understand your question correctly. I can't get PD in front of me at the moment so I can't double check.
-ISH
siggmuss wrote:
hi Peter and list many thanks for your help and examples, im making some awesome stuff with this!!!
well i have a new question... maybe you can help me: the idea of the patch is a camera that travels to weird places, i have a problem with this because if i change the parameters of the translateXYZ , rotateXYZ, it affects the whole structure, and i was wondering if there is any way of affect just the incomming ones. for example i want that when i change those parameters , begin affecting to geos that are far away (not all the structure at the same time) , so all the structucture will change progresively . i have no idea of doing this. any idea would be nice thanks
here is the patch!
#N canvas 527 96 478 538 12; #X obj 16 40 gemwin; #N canvas 313 511 834 348 init 0; #X obj 45 213 outlet; #X obj 45 80 loadbang; #X msg 45 120 fogmode 1 , fog 0.5 , color 0.2 0 0.5 , fogcolor 0.2 0 0.5 , lighting 1; #X connect 1 0 2 0; #X connect 2 0 0 0; #X restore 16 14 pd init; #X obj 38 115 gemhead; #X obj 75 42 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1 ; #N canvas 836 52 458 308 light 0; #X obj 43 35 gemhead; #X obj 43 75 world_light; #X obj 126 26 loadbang; #X msg 126 51 1 1 0; #X connect 0 0 1 0; #X connect 2 0 3 0; #X connect 3 0 1 1; #X restore 16 69 pd light; #X msg 86 15 create; #X floatatom 67 435 5 0 0 0 - - -; #X obj 38 165 t a b; #X msg 196 231 0; #X obj 177 261 i; #X obj 210 261 + 1; #X obj 38 220 t a b; #X obj 25 318 separator; #X obj 177 296 +; #X obj 251 195 f; #X obj 38 95 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X msg 270 160 0; #X floatatom 622 207 5 0 0 0 - - -; #X floatatom 553 209 5 0 0 0 - - -; #X obj 37 463 sphere; #X obj 37 364 translateXYZ -4 0 1; #X floatatom 153 500 5 0 0 0 - - -; #X obj 38 192 repeat 90; #N canvas 834 452 466 316 fmod 0; #X obj 67 37 inlet; #X obj 67 211 outlet; #X obj 67 103 % 23; #X obj 118 118 i; #X obj 93 146 -; #X obj 67 182 +; #X obj 67 62 t f f f; #X connect 0 0 6 0; #X connect 2 0 5 0; #X connect 3 0 4 1; #X connect 4 0 5 1; #X connect 5 0 1 0; #X connect 6 0 2 0; #X connect 6 1 4 0; #X connect 6 2 3 0; #X restore 178 324 pd fmod 90; #X obj 284 197 + 0.4; #X floatatom 475 205 5 0 0 0 - - -; #X floatatom 117 96 5 0 0 0 - - -; #X obj 183 384 loadbang; #X msg 164 425 3; #X obj 16 285 rotateXYZ 8 1 13; #X obj 38 141 translateXYZ -3 2 -20; #X text 504 170 play with this; #X connect 1 0 0 0; #X connect 2 0 30 0; #X connect 3 0 0 0; #X connect 5 0 0 0; #X connect 6 0 19 1; #X connect 7 0 22 0; #X connect 7 1 8 0; #X connect 7 1 14 0; #X connect 8 0 9 1; #X connect 9 0 10 0; #X connect 9 0 13 0; #X connect 10 0 9 1; #X connect 11 0 29 0; #X connect 11 1 9 0; #X connect 12 0 20 0; #X connect 13 0 23 0; #X connect 14 0 13 1; #X connect 14 0 24 0; #X connect 15 0 2 0; #X connect 16 0 14 1; #X connect 17 0 20 1; #X connect 18 0 29 3; #X connect 20 0 19 0; #X connect 21 0 19 2; #X connect 22 0 11 0; #X connect 23 0 20 3; #X connect 24 0 14 1; #X connect 25 0 29 1; #X connect 26 0 30 1; #X connect 27 0 28 0; #X connect 28 0 6 0; #X connect 29 0 12 0; #X connect 30 0 7 0;
thanks
bye
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
ive tried putting the "separator" object. I think maybe you dont understood my question I know how to rotate or translate the image without affecting its structure using separator objects. What im trying to do is to affect the structure, but not the whole at the same time)all the balls). what i want to do is for example : when i change translate or rotate, begin affecting the balls that are far away no the ones that are near of the screen. So all the structure will change in a "progressive" way.
many thanks siggmus
That may sound simple logically, but with the current structure of the program, it doesn't really work so easily. It's important you realise that all of the positions are calculated pretty much fresh every frame. In fact, I can't stress enough how useful it is to thoroughly understand which calculations are computed in which order, and with the results of which other ones etc. The structure (roughly what I implemented) in the patch you're working on is a fairly specific case, I think, and maybe not a good one to work from.
Assuming you carry on using my algorithm, you could perhaps try something nifty with tables... as the function iterates and the index increases, you read different values for [rotate] / [traslate] for each iteration. Off the top of my head, you should increment a write pointer once per frame, and use the index for the read pointer. I think. That would take a bit of programming, but could achieve the desired result, and by the time you manage it you'd have a far greater understanding.
As for moving the camera, you need to use view messages to the gemwin, (which involves computing what the messages should be).
p.s. you do realize that the 90 in [pd fmod 90] has no effect on the program - it was misleading of me to post a patch where it looked like that was an argument for substition. If you look inside, too, there is no $1, so nowhere for that number to be plugged (not that this would happen in a subpatch, anyway). Frank just posted on this, but I don't know if you read that / clicked. This is why you had overlapping elements, rather than one long line.