ParticleFlowPv3D - Papervision3D Particle System

ParticleFlowPv3D - Papervision3D Particle System

Features:

-Supports multiple bitmaps for animated sequence or generates them automatically by defined number of steps(generates different alpha versions from 1 to 0, only if alpha tweening is set to true).

-Switch between color tweening effect or BitmapParticleMaterial.

-Add forces.

*I haven’t had time to update the code to emit from object’s faces, but will update it soon, only needs a tweak.
*The code is a little bit messy.

This movie requires Flash Player 9

Usage example:

_MaterialsArray = new Array();
_MaterialsArray[0] = particleBitmapData;
var _myID:int = 1;
particleFlow = new ParticleFlow(scene, plane, _MaterialsArray, null, _myID);
particleFlow.sceneCount = 100;
particleFlow.life = 20;
particleFlow.lifeVariant = 0.1;
particleFlow.startColor = 0×000000; //To make this option active _MaterialsArray has to be null or empty
particleFlow.endColor = 0×999999; //To make this option active _MaterialsArray has to be null or empty
particleFlow.endScale = 12;
particleFlow.size = 1;
particleFlow.speed = 70;
//particleFlow.wobble = 0.05;
particleFlow.rotation = 0;
particleFlow.updateTime = 20;
particleFlow.tweenAlpha = true; // This effect is only active if _MaterialsArray length = 1.
particleFlow.alphaLevels = 20; //Number of Bitmaps generated in bitmap array for alpha tweening
//FACE_EMITTER emits from the center of each face of the emiter do3d
//RANDOM_FACE_EMITTER emits from a random position of each face of the emiter do3d
//POSITION_EMITTER emits from the position of the Emitter
particleFlow.emitterType = ParticleFlow.FACE_EMITTER;
}
//Emit Particles Example
private function handleRender(e:Event):void {
particleFlow.addForce(0,0.1,0);
particleFlow.emit();
renderer.renderScene(scene,camera,viewport);
}

SourceCode:
particleFlowPv3D Download

This entry was posted in Papervision3D and tagged , , , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

4 Comments

  1. slopester
    Posted February 12, 2009 at 4:01 pm | Permalink

    way cool - thanks for sharing

  2. Posted February 12, 2009 at 4:25 pm | Permalink

    This is great! I was desperately looking for something like this not a long time ago! Thanks.

  3. am
    Posted February 16, 2009 at 2:35 pm | Permalink

    hi Tom!
    great idea :) i’m having some problems when trying to use it, the particles just don’t get as dense as yours, seams that they have too much speed, and don’t gain scale as yours. I’ve tweaked the values, but have no ideia here am I failing.

    Any hints?

  4. am
    Posted February 16, 2009 at 3:07 pm | Permalink

    oh… it’s working! just updated pv… my version was from December :P
    really good fps, keep on!

2 Trackbacks

  1. By Papervision Particle Flow System « The Algorithmist on February 12, 2009 at 4:11 pm

    [...] that whole paying the bills thing that keeps getting in the way.

  2. [...] ParticleFlowPv3D - Papervision3D Particle System Papervision3D でパーティクルを実現するためのライブラリ?。 暇があればいじってみたい。 (tags: papervision3d particle) [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*