[jitter] blend texture for videoplane-layers
Olger Star
Psar at starkazi.com
Thu Jun 14 05:19:46 MDT 2007
- Previous message: [jitter] Re: [sharing is fun] projective texture isosurfer
- Next message: [jitter] unicode and text3d
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi everybody, I can't find a proper solution on this issue; maybe there's somebody willing to help me out... I want to use multiple jit.gl.text2d objects rendered by jit.gl.gridshade as layers. In the "final mix" I need to be able to control the layers :arranging and switching on/off. Because I also need them layers to blend (like index-colours), I'm working with videoplanes. The problem is that I can't blend two videoplanes existing out of a jit.text2d-texture. When I say blend I mean blending the background.. I attached the patch, bless the omniscient minds.. Regards, Olger max v2; #N vpatcher 1356 101 2447 1081; #P origin 0 -82; #P setbglock 1; #P window setfont "Sans Serif" 9.; #P window linecount 1; #P newex 704 444 55 196617 delay 200; #P newex 133 452 55 196617 delay 300; #P toggle 528 687 15 0; #P message 510 665 14 196617 0; #P message 540 663 14 196617 1; #P newex 509 641 44 196617 togedge; #P newex 763 419 40 196617 t b b b; #P newex 205 429 30 196617 t b b; #P toggle 536 337 41 0; #P newex 185 408 48 196617 loadbang; #P message 260 455 31 196617 0.43; #P message 216 457 30 196617 -0.4; #P message 295 663 14 196617 1; #P message 260 683 14 196617 0; #P message 232 703 14 196617 1; #P newex 243 636 48 196617 loadbang; #P message 67 477 94 196617 text Hello \, size 80; #P newex 105 542 310 196617 jit.gl.text2d fawaka @blend_enable 1 @capture tex1 @automatic 0; #B color 5; #P newex 240 792 20 196617 t s; #P toggle 224 732 15 0; #P message 227 758 82 196617 color 1. 1. 1. \$1; #P toggle 296 685 15 0; #P message 296 708 80 196617 blend_enable \$1; #P toggle 261 711 15 0; #P message 261 734 81 196617 depth_enable \$1; #P newex 34 507 30 196617 t b b; #P newex 206 824 117 196617 jit.gl.videoplane fawaka; #P flonum 258 480 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 218 480 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 190 504 95 196617 pak position 0. 0. 0.; #P newex 108 594 243 196617 jit.gl.texture fawaka @name tex1 @dim 1024 1024; #P newex 750 399 48 196617 loadbang; #P message 839 449 31 196617 0.24; #P message 795 451 36 196617 -0.79; #P message 874 657 14 196617 1; #P message 839 677 14 196617 0; #P message 802 698 14 196617 1; #P newex 822 630 48 196617 loadbang; #P message 646 471 129 196617 text Hieperdepiep \, size 80; #P newex 684 536 310 196617 jit.gl.text2d fawaka @blend_enable 1 @capture tex2 @automatic 0; #B color 5; #P newex 819 786 20 196617 t s; #P toggle 803 726 15 0; #P message 806 752 82 196617 color 1. 1. 1. \$1; #P toggle 875 679 15 0; #P message 875 702 80 196617 blend_enable \$1; #P toggle 840 705 15 0; #P message 840 728 81 196617 depth_enable \$1; #P newex 613 501 30 196617 t b b; #P newex 785 818 117 196617 jit.gl.videoplane fawaka; #P flonum 837 474 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 797 474 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 769 498 95 196617 pak position 0. 0. 0.; #P newex 687 588 243 196617 jit.gl.texture fawaka @name tex2 @dim 1024 1024; #P newex 469 92 60 196617 loadmess 1; #P toggle 469 115 15 0; #P newex 469 135 57 196617 qmetro 10; #P user jit.fpsgui 409 228 60 196617 0; #P message 561 131 14 196617 1; #P newex 559 93 48 196617 loadbang; #P button 594 130 15 0; #P newex 594 152 88 196617 pak size 512 512; #P newex 591 174 93 196617 jit.window fawaka; #P newex 470 160 69 196617 t b erase b b; #P newex 410 197 100 196617 jit.gl.render fawaka; #P window linecount 2; #P comment 420 345 100 196617 switch to see different planes; #P user panel 13 390 450 470; #X brgb 194 240 173; #X frgb 0 0 0; #X border 1; #X rounded 0; #X shadow 0; #X done; #P background; #P user panel 588 388 450 470; #X brgb 194 240 173; #X frgb 0 0 0; #X border 1; #X rounded 0; #X shadow 0; #X done; #P background; #P fasten 4 2 41 0 513 258 39 258; #P connect 65 0 50 0; #P fasten 41 1 49 0 59 532 110 532; #P fasten 50 0 49 0 72 525 110 525; #P fasten 37 0 49 0 195 525 110 525; #P fasten 41 0 36 0 39 573 113 573; #P connect 59 1 65 0; #P connect 57 0 59 0; #P fasten 48 0 40 0 245 815 211 815; #P fasten 36 0 40 0 113 625 211 625; #P connect 59 0 55 0; #P connect 55 0 38 0; #P connect 38 0 37 1; #P fasten 58 0 47 0 541 621 229 621; #P connect 52 0 47 0; #P connect 47 0 46 0; #P fasten 51 0 52 0 248 658 237 658; #P fasten 44 0 48 0 301 728 364 728 364 779 245 779; #P fasten 42 0 48 0 266 753 321 753 321 779 245 779; #P fasten 46 0 48 0 232 779 245 779; #P fasten 39 0 37 2 263 499 251 499; #P connect 56 0 39 0; #P connect 59 0 56 0; #P fasten 51 0 53 0 248 658 265 658; #P connect 53 0 43 0; #P connect 43 0 42 0; #P fasten 51 0 54 0 248 658 300 658; #P connect 54 0 45 0; #P connect 45 0 44 0; #P connect 3 0 10 0; #P connect 4 1 3 0; #P connect 4 0 3 0; #P connect 13 0 12 0; #P connect 12 0 11 0; #P connect 11 0 4 0; #P fasten 58 0 61 0 541 622 514 622; #P connect 61 0 63 0; #P connect 63 0 64 0; #P connect 62 0 64 0; #P connect 61 1 62 0; #P connect 8 0 9 0; #P connect 6 0 5 0; #P connect 8 0 7 0; #P connect 7 0 6 0; #P fasten 4 3 19 0 532 257 618 257; #P connect 66 0 28 0; #P fasten 19 1 27 0 638 526 689 526; #P fasten 28 0 27 0 651 519 689 519; #P fasten 15 0 27 0 774 519 689 519; #P fasten 19 0 14 0 618 567 692 567; #P connect 60 0 66 0; #P connect 35 0 60 0; #P fasten 14 0 18 0 692 629 790 629; #P fasten 26 0 18 0 824 809 790 809; #P connect 60 1 33 0; #P connect 33 0 16 0; #P connect 16 0 15 1; #P fasten 29 0 30 0 827 652 807 652; #P fasten 64 0 25 0 533 721 808 721; #P connect 30 0 25 0; #P connect 25 0 24 0; #P fasten 24 0 26 0 811 773 824 773; #P fasten 20 0 26 0 845 747 900 747 900 773 824 773; #P fasten 22 0 26 0 880 722 943 722 943 773 824 773; #P fasten 17 0 15 2 842 493 830 493; #P connect 34 0 17 0; #P connect 60 2 34 0; #P fasten 29 0 31 0 827 652 844 652; #P connect 31 0 21 0; #P connect 21 0 20 0; #P fasten 29 0 32 0 827 652 879 652; #P connect 32 0 23 0; #P connect 23 0 22 0; #P pop;
- Previous message: [jitter] Re: [sharing is fun] projective texture isosurfer
- Next message: [jitter] unicode and text3d
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
