#N canvas 205 0 767 658 10; #X msg 218 -139 create \, 1; #X obj 218 -94 gemwin; #X obj 417 -113 pix_buffer \$0-framebuffer 2; #X obj 726 -117 gemhead 5; #X obj 726 -96 world_light; #X text 150 -220 you can render a scene into a framebuffer \, then take a snapshot of the framebuffer with [pix_snap] and use this as an ordinary pix (where you can apply effects and all kind of weird things); #X obj 181 214 cnv 15 250 130 empty empty empty 20 12 0 14 -233017 -66577 0; #X obj 267 44 cnv 15 150 150 empty empty scene 20 12 0 14 -233017 -66577 0; #X obj 188 -29 gemhead 20; #X obj 188 -5 gemframebuffer; #X msg 269 -30 dimen 256 256; #X obj 273 106 rotateXYZ; #X obj 188 41 t a a b; #X obj 293 68 i; #X obj 326 67 + 1; #X obj 356 66 % 360; #X obj 188 228 t a b; #X msg 220 249 snap; #X obj 188 297 t a b; #X msg 402 302 1; #X obj 188 322 pix_buffer_write \$0-framebuffer; #X obj 516 37 gemhead 30; #X obj 516 81 t a b; #X msg 571 82 1; #X obj 516 106 pix_buffer_read \$0-framebuffer; #X obj 516 251 square 3; #X obj 188 18 translateXYZ 0 0 -4; #X obj 188 273 pix_snap 0 0 256 256; #X floatatom 332 88 5 0 0 0 - - -; #X obj 516 228 rotateXYZ; #X floatatom 551 208 5 0 0 0 - - -; #X text 424 -95 temporary storage; #X obj 269 -50 loadbang; #X text 236 226 later usage; #X text 235 211 snapshot and store image for; #X text 641 154 apply some nifty FX; #X obj 531 133 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 1; #X obj 516 155 pix_kaleidoscope; #X obj 666 209 #from_pix; #X obj 809 200 pix_image; #X text 1043 280 Note : The fps is dependent on the gemwin framerate ; #X text 1062 84 NOTE: you don't actually need to do anything else with the pix on the GEM-side (like [pix_texture] or other) \, but you do need to have an active [gemhead] \, by creating a [gemwin] even if you don't display anything in it. (or you could figure out to do a dummy off-screen rendering to get rid of the window \, and send it on gridflow-dev \, at artengine.ca); #X text 1059 168 if you use win32 with sdl \, DON'T click this; #X text 986 263 <-- extracts pix from gemlist and produces grid; #X obj 885 285 #dim; #X obj 885 304 display; #X text 1066 312 you can use this with [pix_image] \, [pix_video] \, [pix_film] \, etc \, as long as the pix format is RGBA. You can enforce that using [pix_rgba].; #X obj 817 1 gemdead; #X obj 826 -91 tgl 15 0 empty empty empty 17 7 0 10 -4034 -1 -1 1 1 ; #X text 873 -55 is a [gemhead]-like thing that doesn't need a [gemwin]. but you may also use a [gemhead] with a [gemwin] as long as the window is created and [gemhead] is activated.; #X obj 1166 38 gemwin 20; #X msg 1166 19 dimen 160 120 \, create \, 1; #X text 1166 2 you don't need this if you use [gemdead]; #X obj 825 -74 metro 100; #X obj 825 264 #from_pix \, colorspace rgba; #X msg 199 129 draw line; #X obj 273 183 square; #X obj 421 139 / 255; #X floatatom 433 98 5 0 0 0 - - -; #X obj 272 138 color 1 0 0.31; #X obj 516 187 pix_image; #X obj 463 280 #see 1; #X msg 235 -115 lighting 0; #X connect 0 0 1 0; #X connect 3 0 4 0; #X connect 8 0 9 0; #X connect 9 0 26 0; #X connect 10 0 9 0; #X connect 11 0 59 0; #X connect 12 0 16 0; #X connect 12 1 11 0; #X connect 12 2 13 0; #X connect 13 0 14 0; #X connect 13 0 11 1; #X connect 13 0 11 2; #X connect 14 0 15 0; #X connect 15 0 13 1; #X connect 16 0 27 0; #X connect 16 1 17 0; #X connect 17 0 27 0; #X connect 18 0 20 0; #X connect 18 1 19 0; #X connect 19 0 20 1; #X connect 22 0 24 0; #X connect 22 1 23 0; #X connect 23 0 24 1; #X connect 24 0 37 0; #X connect 25 0 54 0; #X connect 26 0 12 0; #X connect 27 0 18 0; #X connect 28 0 11 3; #X connect 29 0 25 0; #X connect 30 0 29 2; #X connect 32 0 10 0; #X connect 36 0 37 0; #X connect 37 0 60 0; #X connect 44 0 45 0; #X connect 47 0 39 0; #X connect 47 0 22 0; #X connect 48 0 53 0; #X connect 51 0 50 0; #X connect 53 0 47 0; #X connect 54 0 44 0; #X connect 54 0 61 0; #X connect 55 0 56 0; #X connect 57 0 56 1; #X connect 58 0 57 0; #X connect 59 0 56 0; #X connect 60 0 29 0; #X connect 62 0 1 0;