[GEM-dev] [PD] Blending mode directly on objects, not pixes?

Jack jack at rybn.org
Sun Nov 29 15:53:19 CET 2009


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 at iem.at
> > http://lists.puredata.info/listinfo/gem-dev
> 
> 
> _______________________________________________
> GEM-dev mailing list
> GEM-dev at iem.at
> http://lists.puredata.info/listinfo/gem-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blendMode.pd
Type: text/x-puredata
Size: 1868 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/gem-dev/attachments/20091129/89ab4233/attachment.bin>


More information about the GEM-dev mailing list