nagai 17:39 PM

actionscriptのパーティクルライブラリ「Flint」です。

actionscriptのパーティクルライブラリ「Flint」です。
上のようなエフェクトなどが使えるとのこと。
ちょっと遊んでみました。
こちらをご覧になるには、最新のFlash Playerが必要です。
以下のリンクから最新のFlash Playerをインストールしてください。
一応十字キーで目線が変わります。
実行部分のソースはこんな感じです。カンタンです。
import org.flintparticles.common.counters.*; import org.flintparticles.common.initializers.*; import org.flintparticles.common.actions.*; import org.flintparticles.threeD.actions.*; import org.flintparticles.threeD.emitters.Emitter3D; import org.flintparticles.threeD.geom.Vector3D; import org.flintparticles.threeD.initializers.*; import org.flintparticles.threeD.renderers.*; import org.flintparticles.threeD.renderers.controllers.*; import org.flintparticles.threeD.zones.*; var ahiruEmit:Emitter3D = new Emitter3D(); ahiruEmit.counter = new Blast( 20 ); ahiruEmit.addInitializer( new ImageClass( ahiru ) ); ahiruEmit.addInitializer( new Velocity( new SphereZone( new Vector3D( 0, 0, 0 ), 600, 500 ) ) ); ahiruEmit.addAction( new BoundingBox( -275, 230, -200, 200, -300, 300 ) ); ahiruEmit.addAction( new SpeedLimit( 250 ) ); ahiruEmit.addAction( new Fade() ); ahiruEmit.addAction( new Move() ); var ahiruRend:BitmapRenderer = new BitmapRenderer( new Rectangle( -275, -250, 550, 465 ) ); ahiruRend.x = 275; ahiruRend.y = 250; ahiruRend.addFilter( new BlurFilter( 2, 2, 10 ) ); ahiruRend.addEmitter( ahiruEmit ); addChild( ahiruRend ); ahiruRend.camera.position = new Vector3D( 0, 0, -400 ); ahiruRend.camera.target = new Vector3D( 0, 0, 0 ); var controller:FirstPersonCamera = new FirstPersonCamera( stage, ahiruRend.camera ); controller.start(); ahiruEmit.start( );
分かりやすい公式サイトにリファレンスやサンプルはそろっています。
うまく使えばおもしろいものができそうです。












