i forgot the patch. ++ Jack
Le dimanche 29 novembre 2009 à 15:41 +0100, Jack a écrit : > Le dimanche 29 novembre 2009 à 12:07 +0100, IOhannes m zmölnig a écrit : > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Matteo Sisti Sette wrote: > > > Ohhhhhhh, ok!!! > > > > > > [env ( is the way the texture blends with the color of the survace (i.e. > > > the one set by [color])!!! > > > > ah right. that answer was late at night... > > > > > That's useless to my purpose: by blending mode I meant the way the > > > object (with its resulting color however it results from its color and > > > rexture) blends with its background > > > > yep. you should be able to control this on low level with > > [GEMglBlendFunc] and [GEMglAlphaFunc] > Sometimes the solutions are very simple, we just need a simple OpenGL > function :) > I have started to read the Red Book there is few month ago, i have to > finish it ! > I have done this patch, is it correct to use different blend modes ? > ++ > > Jack > > > > > > > > > > At the end I think I'll use glsl: with a very small and trivial > > > modification to the "multitexture" example I've been able to > > > add/multiply/subtract two textures, so I'll use that to blend a > > > [framebuffer]ed image with another one as textures. > > > > > > > well, if you only want to change the blending between a surface and the > > background, then you should be able to do this without [gemframebuffer], > > > > but then you would have to re-implement the default fragment shader > > which is probably not worth it. > > > > i wonder why i miss something like ftransform() for fragment shaders. > > > > fgamr > > IOhannes > > > > > > mfasr > > IOhannes > > > > > > > > > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.10 (GNU/Linux) > > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > > > iEYEARECAAYFAksSVfoACgkQkX2Xpv6ydvQL4gCeKrTEJ4xH5k3mqZeTpxwyB43P > > 2B8AoO7iI3pCXLV51RbeKwo+3RXtPo3o > > =7lWh > > -----END PGP SIGNATURE----- > > > > _______________________________________________ > > GEM-dev mailing list > > GEM-dev@iem.at > > http://lists.puredata.info/listinfo/gem-dev > > > _______________________________________________ > GEM-dev mailing list > GEM-dev@iem.at > http://lists.puredata.info/listinfo/gem-dev
#N canvas 605 128 670 609 10; #X obj 193 411 pix_image; #X obj 193 431 pix_texture; #X obj 193 451 rectangle 2 1.5; #X msg 206 387 open \$1; #X obj 206 364 openpanel; #X obj 206 343 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 193 275 gemhead 50; #X obj 25 255 pix_image; #X obj 25 275 pix_texture; #X msg 38 232 open \$1; #X obj 38 209 openpanel; #X obj 38 188 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X msg 25 34 create \, 1; #X msg 45 61 destroy; #X obj 25 90 gemwin; #X obj 25 295 rectangle 4 3; #X text 231 341 <- 1; #X text 63 186 <- 2; #X obj 25 165 translateXYZ 0 0 -1; #X obj 193 296 alpha; #X obj 193 319 GEMglBlendFunc; #X msg 383 42 bang; #X obj 383 66 GLdefine GL_ONE_MINUS_SRC_COLOR; #X obj 25 134 gemhead 49; #X msg 393 92 bang; #X obj 393 116 GLdefine GL_SRC_COLOR; #X msg 403 142 bang; #X obj 403 166 GLdefine GL_ZERO; #X msg 423 192 bang; #X obj 423 216 GLdefine GL_ONE; #X msg 173 42 bang; #X obj 173 66 GLdefine GL_ONE_MINUS_SRC_COLOR; #X msg 183 92 bang; #X obj 183 116 GLdefine GL_SRC_COLOR; #X msg 193 142 bang; #X obj 193 166 GLdefine GL_ZERO; #X msg 213 192 bang; #X obj 213 216 GLdefine GL_ONE; #X connect 0 0 1 0; #X connect 1 0 2 0; #X connect 3 0 0 0; #X connect 4 0 3 0; #X connect 5 0 4 0; #X connect 6 0 19 0; #X connect 7 0 8 0; #X connect 8 0 15 0; #X connect 9 0 7 0; #X connect 10 0 9 0; #X connect 11 0 10 0; #X connect 12 0 14 0; #X connect 13 0 14 0; #X connect 18 0 7 0; #X connect 19 0 20 0; #X connect 20 0 0 0; #X connect 21 0 22 0; #X connect 22 0 20 2; #X connect 23 0 18 0; #X connect 24 0 25 0; #X connect 25 0 20 2; #X connect 26 0 27 0; #X connect 27 0 20 2; #X connect 28 0 29 0; #X connect 29 0 20 2; #X connect 30 0 31 0; #X connect 31 0 20 1; #X connect 32 0 33 0; #X connect 33 0 20 1; #X connect 34 0 35 0; #X connect 35 0 20 1; #X connect 36 0 37 0; #X connect 37 0 20 1;
_______________________________________________ GEM-dev mailing list GEM-dev@iem.at http://lists.puredata.info/listinfo/gem-dev