[Papervision3D] blendModes to Object
Javier España | javierespana.com
info at javierespana.com
Tue Jul 28 06:06:44 PDT 2009
Off course the above answer will make all of the object on your viewport to
Glow... That is the reason viewportLayers are used... But can't seem to make
those work yet...
2009/7/28 Javier España | javierespana.com <info at javierespana.com>
> For anyone having the same problem, viewportLayers didn't work for me, so
> in the function that fires when the Collada object is loaded I add:
>
> viewport.filters = [new GlowFilter(0xFFFF00, .8, 12, 12, 2)];
> viewport.blendMode = "add";
>
> And it works great...
>
> Thanks,
>
> Javier
>
> 2009/7/28 Javier España | javierespana.com <info at javierespana.com>
>
> I'm trying with that option but doesn't display a filter for example... I'm
>> still searching, but if anyone knows what's wrong with this it would be
>> great too...
>>
>> var viewportLayer:ViewportLayer = new ViewportLayer(viewport, collada);
>> viewport.containerSprite.addLayer(viewportLayer);
>>
>> var glowFilter:GlowFilter = new GlowFilter(0xFF0000, 1, 20, 20, 4, 3);
>> viewportLayer.filters = [glowFilter];
>>
>> The collada object is displaying correctly, but without the GlowFilter...
>>
>> I'll continue searching for an answer...
>>
>> Javier
>>
>>
>> On Mon, Jul 27, 2009 at 9:43 PM, Mark I. Ross <nospam at therossman.org>wrote:
>>
>>> 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 <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> 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
>>>>> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>>> >
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Papervision3D mailing list
>>>>> Papervision3D at osflash.org
>>>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>>>
>>>>>
>>>>
>>> ------------------------------
>>>
>>> _______________________________________________
>>> Papervision3D mailing listPapervision3D at osflash.orghttp://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/20090728/23b44eaf/attachment-0001.html>
More information about the Papervision3D
mailing list