From c6030846f5c1e34048774d60ca4c15e804bee839 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 14 Mar 2015 20:32:26 +0000 Subject: Gem linux/amd64 built '' for linux/amd64 --- Gem/examples/03.lighting/02.light.pd | 96 ++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 Gem/examples/03.lighting/02.light.pd (limited to 'Gem/examples/03.lighting/02.light.pd') diff --git a/Gem/examples/03.lighting/02.light.pd b/Gem/examples/03.lighting/02.light.pd new file mode 100644 index 0000000..21f8811 --- /dev/null +++ b/Gem/examples/03.lighting/02.light.pd @@ -0,0 +1,96 @@ +#N canvas 253 63 751 605 10; +#X obj 532 45 gemhead; +#X msg 107 177 lighting 1; +#X obj 532 156 rotate; +#X floatatom 580 137 4 0 0 0 - - -; +#X obj 313 354 gemhead 1; +#X msg 107 146 lighting 0; +#X obj 532 177 sphere; +#X text 150 38 create a sphere with and without lighting; +#X text 547 91 rotate the sphere; +#X text 313 314 gemhead has a value of 1 so that it is rendered before +the sphere is; +#X text 46 125 you can turn lighting on and off while it is running +; +#X msg 398 507 1 1 1; +#X msg 345 505 1 0 1; +#X text 449 501 change the lights color; +#X floatatom 389 355 0 0 0 0 - - -; +#X msg 185 424 debug 0; +#X msg 186 455 debug 1; +#X text 96 400 figure out where the light is; +#X obj 313 535 light; +#X text 240 558 creates a local light; +#X msg 434 436 2; +#X msg 477 436 3; +#X msg 390 438 1.1; +#X text 389 417 change the position of the light; +#X obj 313 395 rotateXYZ 0 -60 0; +#X obj 313 475 translateXYZ 2 0 0; +#X obj 566 118 hsl 128 15 0 360 0 0 empty empty empty -2 -6 0 10 -233472 +-1 -1 0 1; +#N canvas 87 154 247 179 Gem.init 0; +#X obj 118 46 loadbang; +#X msg 118 81 reset; +#X obj 118 113 outlet; +#X connect 0 0 1 0; +#X connect 1 0 2 0; +#X restore 62 264 pd Gem.init; +#N canvas 340 107 682 322 gemwin 0; +#X obj 102 122 tgl 15 0 \$0-gemstart \$0-gemstart empty 17 7 0 10 -262144 +-1 -1 0 1; +#X obj 102 161 r \$0-gemstart; +#X obj 102 182 select 1 0; +#X msg 102 214 create \, 1; +#X msg 177 215 destroy; +#X obj 102 239 t a; +#X obj 318 54 inlet; +#X obj 318 255 gemwin; +#X obj 318 100 t a a; +#X obj 318 287 outlet; +#X obj 350 128 route create destroy; +#X obj 350 150 t b; +#X msg 350 172 1; +#X obj 390 150 t b; +#X msg 390 172 0; +#X obj 350 195 t f; +#X msg 350 219 set \$1; +#X text 118 122 rendering; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 2 1 4 0; +#X connect 3 0 5 0; +#X connect 4 0 5 0; +#X connect 5 0 8 0; +#X connect 6 0 8 0; +#X connect 7 0 9 0; +#X connect 8 0 7 0; +#X connect 8 1 10 0; +#X connect 10 0 11 0; +#X connect 10 1 13 0; +#X connect 11 0 12 0; +#X connect 12 0 15 0; +#X connect 13 0 14 0; +#X connect 14 0 15 0; +#X connect 15 0 16 0; +#X connect 16 0 0 0; +#X coords 0 -1 1 1 85 40 1 100 100; +#X restore 32 281 pd gemwin; +#X connect 0 0 2 0; +#X connect 1 0 28 0; +#X connect 2 0 6 0; +#X connect 4 0 24 0; +#X connect 5 0 28 0; +#X connect 11 0 18 1; +#X connect 12 0 18 1; +#X connect 14 0 24 2; +#X connect 15 0 18 0; +#X connect 16 0 18 0; +#X connect 20 0 25 1; +#X connect 21 0 25 1; +#X connect 22 0 25 1; +#X connect 24 0 25 0; +#X connect 25 0 18 0; +#X connect 26 0 2 1; +#X connect 26 0 3 0; +#X connect 27 0 28 0; -- cgit v1.2.1