[Papervision3D] blendModes to Object

Mark I. Ross nospam at therossman.org
Mon Jul 27 17:43:58 PDT 2009


can you add your collada to a viewportlayer, and apply the blendMode to 
that?

*shrugs*


Javier España | javierespana.com wrote:
> Next step, trying to make a collada object with the same effect... 
> I'll be needing help here...
>
> I have a collada object with 3 materials, and when I try this:
>
> collada.useOwnContainer = true;
> collada.blendMode = "add";
>
> The material are unaffected by the blendMode, any ideas?
>
> Thanks,
>
> Javier
>
> 2009/7/27 Javier España | javierespana.com <http://javierespana.com> 
> <info at javierespana.com <mailto:info at javierespana.com>>
>
>     Yeah, I was just writing to let all know that this worked for me:
>
>
>     colorBox_1 = new Plane(movieAssetMaterial_1, 600, 600, 3, 3);
>     colorBox_1.useOwnContainer = true;
>     scene.addChild(colorBox_1);
>     colorBox_1.blendMode = "add";
>
>     And you can also add filters like this (import
>     flash.filters.GlowFilter;):
>
>     glow = new GlowFilter(0xfdfcbe, 1, 20, 20, 2, 1, false, false);
>     colorBox_1.alpha = 0.5;
>     colorBox_1.filters = [glow];
>
>     Thanks a lot,
>
>     Javier
>
>
>     On Mon, Jul 27, 2009 at 2:13 PM, <nospam at therossman.org
>     <mailto:nospam at therossman.org>> wrote:
>
>
>         According to that article, it says you need to set
>         "useOwnContainer" for
>         any primitives which you then want to affect with filters and
>         blend modes.
>
>         HTH,
>         mark
>
>
>         > Hi there, I've been searching for this but the answers don't
>         seem to work.
>         > I
>         > have a scene3D created and then I add 3 Planes to it each
>         with a different
>         > MovieAssetMaterial like this:
>         >
>         > colorBox_1 = new Plane(movieAssetMaterial_1, 600, 600, 3, 3);
>         > colorBox_2 = new Plane(movieAssetMaterial_2, 600, 600, 3, 3);
>         > colorBox_3 = new Plane(movieAssetMaterial_3, 600, 600, 3, 3);
>         > ///
>         > scene.addChild(colorBox_1);
>         > scene.addChild(colorBox_2);
>         > scene.addChild(colorBox_3);
>         >
>         > I wanted the boxes to display blendMode = "add", but this
>         won't work:
>         >
>         > colorBox_1.blendMode = "add";
>         > colorBox_2.blendMode = "add";
>         > colorBox_3.blendMode = "add";
>         >
>         > It seems it doesn't do a thing... Any ideas? Should I make a
>         dod3d, add
>         > all
>         > the boxes there and then set the blendMode to the do3d?
>         >
>         > I checked this http://blog.zupko.info/?p=129 but got a
>         little lost...
>         >
>         > Thanks,
>         >
>         > Javier
>         > _______________________________________________
>         > Papervision3D mailing list
>         > Papervision3D at osflash.org <mailto:Papervision3D at osflash.org>
>         > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>         >
>
>
>
>         _______________________________________________
>         Papervision3D mailing list
>         Papervision3D at osflash.org <mailto: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
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090727/6a6f3a46/attachment.html>


More information about the Papervision3D mailing list