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.
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

4 Comments
way cool - thanks for sharing
This is great! I was desperately looking for something like this not a long time ago! Thanks.
hi Tom!
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.
great idea
Any hints?
oh… it’s working! just updated pv… my version was from December
really good fps, keep on!
2 Trackbacks
[...] that whole paying the bills thing that keeps getting in the way.
[...] ParticleFlowPv3D - Papervision3D Particle System Papervision3D でパーティクルを実現するためのライブラリ?。 暇があればいじってみたい。 (tags: papervision3d particle) [...]