[Papervision3D] Effects branch ParticleField

-a- aYo at binitie.com
Tue Dec 25 17:05:29 PST 2007


Thanks thats cracked that, now how to I associate the pfield with an 
effect, at the moment this is what I have and I get diddly squat:
    public function createFXLayer():void
    {
        //CREATE THE EFFECT LAYER
            _fx = new EffectLayer();
            _vport.addRenderLayer(_fx);
           
            _fx.addEffect(new LayerEffect(new BlurFilter(12, 12, 4)));
            _fx.addEffect(new LayerEffect(new GlowFilter()));
           
            _bfx = new BitmapEffectLayer(_c.width,_c.height, true, 0, 
BitmapClearMode.CLEAR_POST, false, false);
            _bfx.addEffect(new LayerEffect(new BlurFilter(12, 12, 2)));
            _vport.addRenderLayer(_bfx);
       
                  

    }

What am I missing??

a/
> What a wicked man you are. Thats simply vicious. I love it.
>   
>> The trail is actually a "feature" of the BitmapEffects - the persistence
>> lets you create cool effects.  To have the bitmap cleared each render, you
>> need to pass the clearBeforeRender variable through the bfx constructor:
>>
>>
>> bfx = new BitmapEffectLayer(stage.stageWidth, stage.stageHeight, true
>> /*transparent*/, 
>>  0 /*fillColor*/,
>>  BitmapClearMode.CLEAR_PRE /*clearMode*/,
>>  true /*renderAbove*/,
>>  true /*clearBeforeRender*/);
>>
>>
>> If you want to create vapors/ghosts - you can also apply a Blur Effect to
>> the layer which will fade those trails over time.
>>
>> Hth!
>>
>> -----Original Message-----
>> From: papervision3d-bounces at osflash.org
>> [mailto:papervision3d-bounces at osflash.org] On Behalf Of -a-
>> Sent: Monday, December 24, 2007 9:26 PM
>> To: papervision3d at osflash.org
>> Subject: [Papervision3D] Effects branch ParticleField
>>
>> Oh Andy, whilst enjoying your birthday cake, just something to think 
>> about. There is something wrong with the ParticleField class in the 
>> Effects branch. When it is animated it leaves a bitmap trail.
>>
>> a/
>>
>> _______________________________________________
>> 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 list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
>   




More information about the Papervision3D mailing list