CSS Selector Generator | CSS のセレクタ一覧を一発で自動生成!

23

10月2008年

Flintが楽しくてしょうがない

nagai 17:39 PM

  • はてなブックマークに登録
  • livedoorクリップに登録
  • Yahoo!ブックマークに登録
  • deliciousに追加

イメージ

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

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

上のようなエフェクトなどが使えるとのこと。
ちょっと遊んでみました。

こちらをご覧になるには、最新のFlash Playerが必要です。
以下のリンクから最新のFlash Playerをインストールしてください。

Adobe 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( );

分かりやすい公式サイトリファレンスサンプルはそろっています。

うまく使えばおもしろいものができそうです。

バシャログスタッフによるWebサイト制作サービス

トラックバック

このエントリーのトラックバックURL
http://c-brains.jp/cgi-bin/mt/###/1691
###はmt-tb.cgiに変更してください。

コメントを投稿

ページの先頭へ

POPULAR TAGS
  • バシャログスタッフによるWebサイト制作サービス

ARCHIVE

特集

RECENT COMMENTS

ishida on CSS Nite in Ginza, Vol.49「バシャログ LIVE」 で紹介したDreamweaverの正規表現クエリーを公開します
>市川さん コメントありがとうございます。 前提条件の部分
ichikawa on 1.2.3で整えるPHP開発環境【STEP.1】 XAMPPをインストール
いつもバシャログ。をご覧いただきありがとうございます。 >
市川 on CSS Nite in Ginza, Vol.49「バシャログ LIVE」 で紹介したDreamweaverの正規表現クエリーを公開します
どういう前提での使用例なのか、わかりませんが、 タグを明示的
studio-8ch on 1.2.3で整えるPHP開発環境【STEP.1】 XAMPPをインストール
いつも記事を大変興味深く、拝見いたしております。 是非、A
sakai on [使える CSS テクニック] CSSで実現するプルダウンメニュー
>とらのすけさん コメントありがとうございます。 CSS