three.proton
three.proton is a magical 3d particle engine using three.js. It is based on the Proton Engine library. It inherited Proton's most api.
I think it is the simplest three.js particle engine.Check out examples at https://drawcall.github.io/three.proton/
npm install three three.proton.js
Features
-
Four kinds of renderers
- MeshRender
- SpriteRender
- PointsRender
- CustomRender
-
Three kinds of emitters which can simulate many different physical effects
- Emitter
- BehaviourEmitter
- FollowEmitter
-
Perfectly compatible with the three.js library.
Demo
These demos are real, you can click them! They contain the full code, too.
Installation
Import library
;;
Include in html
<script type="text/javascript" src="./js/three.min.js"></script> <script type="text/javascript" src="./js/three.proton.min.js"></script>
Usage
var proton = ;var emitter = ; //setRateemitterrate = 4 16 01; //addInitializeemitter;emitter;emitter;emitter;emitter; //addBehaviouremitter;emitter; var color1 = ;var color2 = ;var colorBehaviour = color1 color2;emitter;emitter; //add emitterproton; //add rendererproton;
Building three.proton
Node is a dependency, use terminal to install it with with:
git clone git://github.com/drawcall/three.proton.git
Then navigate to the build directory by running:
cd ./build
Finally run the build command:
node build.js
License
Proton is released under the MIT License. http://www.opensource.org/licenses/mit-license