[PD] Gem: Change blending mode ?

Alexandre Quessy listes at sourcelibre.com
Thu May 11 05:54:08 CEST 2006


http://fly.srk.fer.hr/~unreal/theredbook/

I see which red book now....
I think I will make a xscreensacer hello world. Then, my Gem skills
are gonna be better.


:-)


On 5/10/06, Alexandre Quessy <listes at sourcelibre.com> wrote:
> Hem, which red book ? sorrry.
>
> So, if I understand well : "Transparency is best implemented using
> blend function (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) with primitives
> sorted from farthest to nearest."  ?
>
> Taken from http://www.mevis.de/opengl/glBlendFunc.html
>
> ;-)
>
> Thanks, tigital and Chris.
>
> By the way, James, should I always replace the Gem that is bundled
> with Hans installer for your Gem version (from your Mac.com site) ?
>
> aalex
>
>
>
> On 5/8/06, chris clepper <cgc at humboldtblvd.com> wrote:
> > glBlendFunc()  There is a whole section on it in the RedBook.
> >
> >  Fragment shaders are also useful for this.
> >
> >
> > On 5/8/06, Alexandre Quessy <listes at sourcelibre.com> wrote:
> > >
> >  Hi list,
> >
> > I am much playing around with alpha blending in Gem these days and I
> > was wondering how I could change the default blending mode between
> > geos. I think it is feasable with openGL objects, but there are only
> > two openGL examples in the example/help patches.
> >
> > The default blending mode between geos is "add". I would like to set
> > it to "multiply" in some cases and "mask", so that when we are viewing
> > a geo with a pix texture on it, we don't see the other geos' pix
> > textures behind it ? I am sure this is possible. How ?
> >
> > regards,
> >
> > aalex
> >
> > _______________________________________________
> >  PD-list at iem.at mailing list
> > UNSUBSCRIBE and account-management ->
> > http://lists.puredata.info/listinfo/pd-list
> >
> >
>




More information about the Pd-list mailing list