Forums > Jitter

Using jit.atari2600


Dan
January 18, 2007 | 5:36 am

Greetings, fellow Jitterers,

With the help of Kyle (the developer) and vade, I’ve been able to
capture the output of jit.atari2600 with jit.gl.sketch, send it to a
texture and thus allow for slab processing. Since jit.atari2600′s
matrixoutput functionality doesn’t work at the moment (at least on OS
X) and the documentation has some holes in it, I’m sending the patch
below for those of you who might be interested. It uses the
jit.gl.sketch method and fills in some of the holes. :-)

best,
dan


***
http://danwinckler.com
http://share.dj

http://idmi.poly.edu

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P hidden newex 600 336 51 196617 r toAtari;
#N vpatcher 20 74 397 464;
#P window setfont "Sans Serif" 9.;
#P window linecount 5;
#P user com 33 288 54 196617 22;
#K set 0 28271 29797 14880 18727 27936 28271 29728 29557 29285 8297
26144 29800 25888 25976 29810 24864 12327 29472 28001 29812 25970
11776;
#K end;
#P window linecount 1;
#P message 274 198 31 196617 36 1;
#P window linecount 0;
#P newex 194 260 51 196617 s toAtari;
#P message 194 231 31 196617 36 0;
#P button 194 161 15 0;
#P newex 194 198 55 196617 delay 100;
#P window linecount 3;
#P user com 186 115 154 196617 43;
#K set 0 16750 28532 26725 29216 25976 24941 28780 25914 8224 29800
25888 20588 24953 25970 8242 8262 26994 25888 25205 29812 28526 8293
30309 28276 8291 24942 8293 8307 25966 29728 29807 8298 26996 11873
29793 29289 12854 12336 8300 26987 25888 29551 14848;
#K end;
#P window linecount 0;
#P user com 34 88 100 196617 83;
#K set 0 20588 24953 25970 8241 14861 12594 13088 11582 8268 25958
29709 12594 13344 11582 8274 26983 26740 3377 12853 8237 15904 17519
30574 3377 12854 8237 15904 21872 3376 13369 8237 15904 18025 29285
3341 20588 24953 25970 8242 14861 12336 13088 11582 8268 25958 29709
12336 13600 11582 8274 26983 26740 3376 12345 8237 15904 17519 30574
3376 12599 8237 15904 21872 3376 13110 8237 15904 18025 29285 3341
12337 12832 11582 8274 25971 25972 3377 12599 8237 15904 21349 27749
25460;
#K end;
#P comment 35 72 100 196617 controls:;
#P connect 4 0 3 0;
#P connect 3 0 5 0;
#P fasten 7 0 6 0 279 251 199 251;
#P connect 5 0 6 0;
#P connect 4 0 7 0;
#P pop;
#P newobj 723 558 64 196617 p AtariKeys;
#P window linecount 14;
#P user com 718 388 212 196617 303;
#K set 0 28271 29797 14880 27241 29742 24948 24946 26930 13872 12334
26740 28012 8297 29472 28533 29728 28518 8292 24948 25888 28526 8308
26725 8291 28526 29810 28524 27749 29216 25455 28013 24942 25715 11808
8276 26725 8289 29812 29289 25205 29797 8226 25455 28276 29295 27756
25970 8736 25711 25971 8302 28532 8311 28530 27438 8224 21608 25888
28261 30496 28005 29800 28516 8297 29472 29800 24948 8308 26725 31015
29285 8301 24944 28773 25632 29807 8310 24946 26991 30067 8299 25977
25199 24946 25632 16723 17225 18720 30305 27765 25971 11296 26223
29216 26990 29556 24942 25445 11296 10097;
#K set 100 10016 15677 8307 29793 29300 11296 30064 8289 29298 28535
8253 15648 30064 11296 27753 27493 30569 29541 8294 28530 8292 28535
28204 8300 25958 29728 24942 25632 29289 26472 29740 8289 28260 8307
28769 25445 25185 29216 26995 11822 11877 29228 8297 8302 25974 25970
8296 24932 8289 28192 16756 24946 26912 29551 8265 8292 28526 10100
8293 30309 28192 27502 28535 8311 26721 29728 29800 25888 25205 29812
28526 29472 30565 29285 8291 24940 27749 25646 11822 27749 29735 29472
29537 31008 26996 10099 8226 27253 28016 8750 8224 16755 8313 28533
8291 24942 8307 25957 8289 25199;
#K set 200 30309 11296 25953 25448 8299 25977 8289 28260 8299 25977
30064 8306 25971 30060 29811 8297 28192 24864 27753 29556 8303 26144
29815 28448 28277 28002 25970 29472 25189 26990 26400 29541 28276 8308
28448 29800 25888 28514 27237 25460 11808 8276 26741 29484 8308 26725
8307 29793 29300 8299 25977 8297 29472 24931 29813 24940 27769 8308
30575 8301 25971 29537 26469 29498 8226 12594 8241 8736 24942 25632
8753 12832 12322 11808 8271 28773 28192 29800 25888 29557 25200 24948
25448 8290 25964 28535 8294 28530 8289 8291 28525 28780 25972 25888
27753 29556 8303 26144 25455 28013;
#K set 300 24942 25715 11808;
#K end;
#P window linecount 2;
#P user com 257 389 214 196617 37;
#K set 0 28271 29797 14880 29800 26995 8297 29472 28526 25888 30561
31008 29807 8291 24944 29813 29285 8298 26996 11873 29793 29289 12854
12336 8237 11552 29800 25970 25888 24946 25888 29557 29285 27769 8303
29800 25970 29486;
#K end;
#P window linecount 1;
#P newex 320 202 54 196617 onebang 1;
#P newex 320 109 48 196617 loadbang;
#P newex 825 338 84 196617 prepend shape;
#P user umenu 825 315 85 196647 1 64 331 1;
#X add sphere;
#X add cylinder;
#X add opencylinder;
#X add torus;
#X add circle;
#X add cube;
#X add opencube;
#X add plane;
#P message 64 212 34 196617 reset;
#P newex 273 320 80 196617 jit.gl.slab v001;
#P newex 258 368 269 196617 jit.gl.videoplane v001 @transform_reset 2
@automatic 0;
#P newex 258 230 40 196617 t b b b;
#P newex 273 280 161 196617 jit.gl.texture v001 @name target;
#P message 320 237 95 196617 drawobject atari 0;
#P newex 288 260 231 196617 jit.gl.sketch v001 @capture target @automatic 0;
#P newex 580 304 65 196617 prepend rom;
#P newex 580 366 263 196617 jit.atari2600 @drawto v001 @name atari @automatic 0;
#B color 5;
#P newex 763 337 44 196617 pack 0 0;
#P newex 698 337 44 196617 pack 0 1;
#P number 763 318 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 698 318 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 748 293 40 196617 keyup;
#P newex 683 293 40 196617 key;
#P button 580 239 27 0;
#P newex 580 275 52 196617 opendialog;
#P toggle 30 474 15 0;
#P message 30 500 59 196617 floating $1;
#P button 91 107 15 0;
#P flonum 50 285 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 43 305 115 196617 erase_color 0. 0. 0. $1;
#P window linecount 2;
#P newex 48 236 184 196617 jit.gl.handle v001 @inherit_transform 1
@auto_rotate 1 @visible 0;
#P user jit.fpsgui 27 356 60 196617 0;
#P toggle 27 79 15 0;
#P window linecount 1;
#P newex 27 107 51 196617 qmetro 2;
#P newex 27 129 58 196617 t erase b b;
#P newex 27 332 92 196617 jit.gl.render v001;
#P newex 30 524 157 196617 jit.window v001 @depthbuffer 1;
#P comment 578 223 77 196617 load a rom file*;
#P window linecount 3;
#P user com 583 520 100 196617 30;
#K set 0 10784 26982 8313 28533 8292 28526 10100 8296 24950 25888
24942 31008 21071 19827 11296 25448 25955 27424 28533 29728 29800
25967 27748 25455 28016 30068 25970 11875 28525 11776;
#K end;
#P window linecount 2;
#P user com 359 321 100 196617 20;
#K set 0 26990 29541 29300 8313 28533 29216 28535 28192 29548 24930
8304 29295 25445 29555 26990 26400 26725 29285 11822 11776;
#K end;
#P user panel 254 227 279 201;
#X brgb 223 224 172;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 574 216 363 362;
#X brgb 206 134 124;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P connect 9 0 8 0;
#P connect 8 0 7 0;
#P fasten 14 0 7 0 96 125 32 125;
#P connect 11 0 6 0;
#P connect 12 0 6 0;
#P connect 7 0 6 0;
#P connect 7 1 6 0;
#P connect 6 0 10 0;
#P connect 16 0 15 0;
#P connect 15 0 5 0;
#P connect 13 0 12 0;
#P fasten 33 0 11 0 69 232 53 232;
#P fasten 7 2 30 0 80 189 263 189;
#P connect 30 0 31 0;
#P connect 32 0 31 0;
#P connect 30 1 29 0;
#P connect 29 0 32 0;
#P fasten 28 0 27 0 325 256 293 256;
#P connect 30 2 27 0;
#P connect 36 0 37 0;
#P connect 37 0 28 0;
#P connect 18 0 17 0;
#P connect 17 0 26 0;
#P hidden fasten 41 0 25 0 605 359 585 359;
#P fasten 26 0 25 0 585 331 585 331;
#P fasten 24 0 25 0 768 360 585 360;
#P fasten 23 0 25 0 703 360 585 360;
#P fasten 35 0 25 0 830 360 585 360;
#P connect 19 1 21 0;
#P connect 21 0 23 0;
#P connect 20 1 22 0;
#P connect 22 0 24 0;
#P fasten 34 1 35 0 905 335 830 335;
#P window clipboard copycount 42;


Viewing 1 post (of 1 total)