FrustumClippingとCamera3D.target

Planeを倒して床を表現するとき、Planeがカメラに近いところでカリングされてしまう。

これを解消するために、レンダラのclippingをFrustumClippingにする...

Posted at Jun 4th | no comments | Filed Under: Web read on

Tweensy - easeOutIn

TweenerにはあってTweensyにないトランジションタイプがeaseOutIn系。
これは、Tweenerがトランジションを計算する caurina.transitions.Equations クラスにはease [.....

Posted at May 28th | no comments | Filed Under: Web read on

FlickrSpiral

FlickrのAPI用のAS3ライブラリas3flickrlibの習作としてこんなんつくってみた。as3flickrlibのASDocとFlickrのAPIのドキュメントを見ながらだけど、ドキュメン...

Posted at May 27th | no comments | Filed Under: Web read on

RGB + Alpha = ARGB

RGB(0x000000~0xffffff) に アルファ(0~1) の値を足してARGB(0x00000000~0xffffffff) にする方法。
alpha * 0xff で 0~1 のアルファを 0x00~0x [...]...

Posted at May 24th | no comments | Filed Under: Web read on

getColorBoundsRect()のバグへの対処

getColorBoundsRect()のバグ?でバグかなと思ってた部分がとっくの昔にAdobeに報告されてて未だに放置プレイの現状。getColorBoundsRect() 自体は便利なのでど...

Posted at May 23rd | 1 comment | Filed Under: Web read on

SWFProfilerをデフォルトで表示する

デバッグのお供に com.flashdynamix.utils.SWFProfiler を重宝してます。Tweensyパッケージに同梱されてるユーティリティで、FPSやメモリ使用量をグラフ表示し...

Posted at May 22nd | no comments | Filed Under: Web read on

TweensySequence - push

Tweensyで連続したアニメーションをしたいけど、それらを一連のトゥィーンとして管理したい。そんな時に使うのがTweensySequenceクラス。
アニメーショ...

Posted at May 21st | no comments | Filed Under: Web read on

TweensyGroup - shortCuts

TweensyGroupクラスには、ショートカットメソッドが用意されている。
TweensyGroupのASDocによるとこんな感じ。

alphaTo
brightnessTo
colorTo
colorTransformTo
contrastTo
...

Posted at May 20th | no comments | Filed Under: Web read on

TweensyGroup - to

Tweensyで色々なプロパティを動かすんだけど、それらを一括のトゥィーンとして管理したい。そんな時に使うのがTweensyGroupクラス。
下の例では、Sprite...

Posted at May 19th | no comments | Filed Under: Web read on

Tweensy - sound

TweensyでSoundTransformのプロパティをアニメーションしてみる。SoundTransformオブジェクトを作ってそのSoundTransformオブジェクトのプロパティをTweensyでTween...

Posted at May 18th | no comments | Filed Under: Web read on

Bookmarks

ReturnToTop