[Papervision3D] PaperVison AS3 Blendmode on MovieClip

Cay ventdaval at gmail.com
Thu Jun 21 03:56:57 EDT 2007


As far as I know (I could be very wrong thou), the container contains
just the material, which is probably just a bitmapdata, so you can't
access sub-movieclips inside it.

John Grdn said:
"but using dynamic movieclips with blendmodes didn't work."
Blendmodes can be applied at runtime, no problem... i don't really
know what you mean John... try this in a new AS2 doc:
var c=this.createEmptyMovieClip("c",0);
c.loadMovie("habitacion1.jpg");
var num=0;
this.onEnterFrame = function() {
	c.blendMode=random(15);
}

I did this a few days ago trying to emulate magnethosphere... its
using Miguel's Sprites2D class, 2 glow effects plus blendmode.multiply
(or add, cant remember) ^^
http://www.ventdaval.com/testing/as3/glow/squares2.html

Cheers...

On 6/21/07, ricardo cabello ! mr.doob <info at mrdoob.com> wrote:
> which version of flash player are you using?
>
> On 6/21/07, Peter Kapelyan <flashnine at gmail.com> wrote:
> > Hi Ricardo,
> >
> > The screen is black for me - I reloaded a few times...
> >
> >
> >
> > On 6/20/07, ricardo cabello ! mr.doob <info at mrdoob.com> wrote:
> > > Sorry BlendMode.ADD
> > >
> > > :P
> > >
> > > On 6/21/07, ricardo cabello ! mr.doob < info at mrdoob.com> wrote:
> > > > This is how I had these objects in BlendMode.ADDITIVE:
> > > > http://mrdoob.com/lab/pv3d/vis/effect01/
> > > >
> > > > And, I would think you could do that with AS2, I don't remember having
> > > > the issue you're saying... but I would have to try that... maybe this
> > > > weekend :)
> > > >
> > > > On 6/21/07, John Grden <neoriley at gmail.com> wrote:
> > > > > no I think I'm missing something new in AS3, no?  as2 didn't do this,
> > is
> > > > > that correct?
> > > > >
> > > > >
> > > > > On 6/20/07, ricardo cabello ! mr.doob < info at mrdoob.com> wrote:
> > > > > > my3Dobject.container.blendMode = BlendMode.OVERLAY;
> > > > > >
> > > > > > That always worked for me... Maybe I'm missing something?
> > > > > >
> > > > > > On 6/21/07, John Grden <neoriley at gmail.com > wrote:
> > > > > > > I know with as2, you couldn't do blend mode's with anything that
> > wasn't
> > > > > on
> > > > > > > the stage at design time.  I'm assuming thats because the compiler
> > had
> > > > > to do
> > > > > > > some image manipulation etc to the compiled SWF - but using
> > dynamic
> > > > > > > movieclips with blendmodes didn't work.  In as3, I haven't seen a
> > change
> > > > > in
> > > > > > > that, but I haven't researched it either.  I just know that I
> > tried the
> > > > > same
> > > > > > > thing the other day and sure enough - no blendmode ;)
> > > > > > >
> > > > > > >
> > > > > > > On 6/20/07, Wayne McFetridge < wayne at blackdotdigital.com> wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > > I need to have a blendmode on the background of a plane. I am
> > using
> > > > > > > MovieMaterial and that MovieClip has a MovieClip inside it that
> > has
> > > > > > > blendmode "overlay" added at Author Time in Flash.
> > > > > > > > This clip has a gradient and that stays but the blendmode is
> > lost.
> > > > > > > >
> > > > > > > >
> > > > > > > > I can apply it via plane.container.blendmode but the movieclip
> > in the
> > > > > > > plane also has some text that I do NOT want to apply the blendmode
> > to
> > > > > the
> > > > > > > whole container.
> > > > > > > >
> > > > > > > >
> > > > > > > > Where/Why does the blendmode get lost ? and how to workaround it
> > ?
> > > > > > > >
> > > > > > > > Wayne McFetridge
> > > > > > > > wayne at blackdotdigital.com
> > > > > > > >
> > > > > > > >
> > > > > > > > (07) 5444 5056
> > > > > > > > 0408 882 019
> > > > > > > >
> > > > > > > > PO Box 1219 Buderim 4556
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > _______________________________________________
> > > > > > > > Papervision3D mailing list
> > > > > > > > Papervision3D at osflash.org
> > > > > > > >
> > > > > > >
> > > > >
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > [  JPG  ]
> > > > > > > _______________________________________________
> > > > > > > Papervision3D mailing list
> > > > > > > Papervision3D at osflash.org
> > > > > > >
> > > > >
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Ricardo Cabello ~ Mr.doob
> > > > > > Designer + Developer
> > > > > >
> > > > > > Web: http://mrdoob.com
> > > > > > RSS feed: http://mrdoob.com/rss.php
> > > > > > MSN/AIM: info at mrdoob.com
> > > > > >
> > > > > > _______________________________________________
> > > > > > Papervision3D mailing list
> > > > > > Papervision3D at osflash.org
> > > > > >
> > > > >
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > [  JPG  ]
> > > > > _______________________________________________
> > > > > Papervision3D mailing list
> > > > > Papervision3D at osflash.org
> > > > >
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Ricardo Cabello ~ Mr.doob
> > > > Designer + Developer
> > > >
> > > > Web: http://mrdoob.com
> > > > RSS feed: http://mrdoob.com/rss.php
> > > > MSN/AIM: info at mrdoob.com
> > > >
> > >
> > >
> > > --
> > > Ricardo Cabello ~ Mr.doob
> > > Designer + Developer
> > >
> > > Web: http://mrdoob.com
> > > RSS feed: http://mrdoob.com/rss.php
> > > MSN/AIM: info at mrdoob.com
> > >
> > > _______________________________________________
> > > Papervision3D mailing list
> > > Papervision3D at osflash.org
> > >
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > >
> >
> >
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
> >
>
>
> --
> Ricardo Cabello ~ Mr.doob
> Designer + Developer
>
> Web: http://mrdoob.com
> RSS feed: http://mrdoob.com/rss.php
> MSN/AIM: info at mrdoob.com
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>



More information about the Papervision3D mailing list