blob: b14083b522222def61aace3f7ecdbf41e14fefc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#N canvas 73 51 832 392 10;
#X msg 26 26 create \, 1;
#X msg 39 53 destroy;
#X obj 340 29 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 151 29 gemhead;
#X text 256 220 <- the scene you want to save in the given resolution
;
#X text 359 29 <- save the scene in the given resolution;
#X obj 26 77 gemwin;
#X text 147 283 [snapshotHD] gives the possibility to capture a scene
in a defined resolution. You can see the proportion of the capture
in the GEM window with the white rectangle edge.;
#X obj 151 170 t a b;
#X obj 151 220 accumrotate;
#X obj 151 241 teapot;
#X msg 193 196 1;
#X obj 151 72 s \$0-gemhead;
#X obj 151 125 gemreceive \$0-gemhead;
#X obj 151 145 separator;
#X text 303 136 <-- a [gemhead] replacement;
#X text 407 50 1st and 2nd arguments : resolution (here : 3000x2000
pixels);
#X obj 151 52 snapshotHD 4000 2000 /tmp/myPic.tif;
#X text 410 68 3rd argument : TIFF file name (here : /tmp/myPic.tif)
;
#X text 152 333 [snapshotHD] uses openGL-framebuffers. thus the maximum
resolution is limited by your openGL-implementation!;
#X msg 342 90 symbol /tmp/foo.tif;
#X text 485 93 <- save as another imagefile.;
#X connect 0 0 6 0;
#X connect 1 0 6 0;
#X connect 2 0 17 1;
#X connect 3 0 17 0;
#X connect 8 0 9 0;
#X connect 8 1 11 0;
#X connect 9 0 10 0;
#X connect 11 0 9 2;
#X connect 11 0 9 3;
#X connect 11 0 9 1;
#X connect 13 0 14 0;
#X connect 14 0 8 0;
#X connect 17 0 12 0;
#X connect 20 0 17 1;
|