2012年9月20日 星期四

AGAL quick reference guide

AGAL 教學 備忘

Vertex Shader:
va0-va7:vertex attribute registers, set with context3D.setVertexBufferAt(...)
vc0-vc127:vertex constant registers, set with context3D.setProgramConstantsFromMatrix/Vector(Context3DProgramType.VERTEX, ...)
vt0-vt7:vertex temporary registers with xyzw component (ex: add vt0, va0, vc0)
v0-v7:varying registers, pass values to the fragment shader (ex: mov v0, va0)
op:output point (ex: mov op, va0)

Fragment Shader:
fc0-fc127:fragment constants set with context3D.setProgramConstantsFromMatrix/Vector(Context3DProgramType.FRAGMENT,...)
fs0-fs7:fragment(texture) sampler, set with context3D.setTextureAt(__sampler, __textureBmpd)
v0-v7:varying registers, values passed from the vertex shader (ex: mov oc, v0)
ft0-ft7:fragment temporary registers with xyzw component (ex: tex ft0, v0, fs0<2d,linear,nomip,repeat>)
oc:output color (ex: mov oc, ft0)

2012年9月19日 星期三

Introduction to Stage3D: Part 7

Introduction to Stage3D: Part 7
fire effect for stage3d tutorial
火/火球/火焰 效果教學

本篇是 Stage3D 的應用,
如果對 Stage3D 運作還不是很清楚,可以先看前幾篇入門文章。

在前一篇火焰效果教學
是用 CPU Render 的方式處理效果,
接下來會用到 Stage3D GPU Render 運算功能來呈現火焰效果,

2012年9月18日 星期二

fire effect performance tuning

火及火焰效果調校教學

一直以來都會需要用到火/火焰特效,
筆記一下調校心得,
順便試用 wonderfl online coding,

幾個重點如下:
filter:加強效果
this.filters = [new BlurFilter(4, 16, 1)];

blendMode:加強效果
this.blendMode = "add";

2012年9月12日 星期三

javascript html5 flash on union socket server

javascript/html5 flash on union socket server 教學
nodejs 這陣子相當熱門,
加上 Socket.IO 的應用,
開始有不少活動朝這個方向發展。

其實 flash(player 6?) 很早就支援 xmlsocket,
早期玩過的幾個 socket server,
印象最深的就是 Colin Moock 所開發的 unity server,
目前已改名為 union platform

2012年9月10日 星期一

ActionScript IDE for mac osx

ActionScript IDE 編輯器比較 for mac osx

monodevelop
與 haxe nme 整合最好
auto code completion
缺少 auto import class

sublime text 2
最近相當熱門的 IDE 編輯器,擁有相當強大的擴充功能
Ctrl+Shift+B:auto create hxml(內容還是要自己編..XD)
Ctrl+B:build
Ctrl+i:auto import class
缺少 auto code completion

mac osx memo

記錄一下拿到 MacBook Pro 安裝的軟體
xCode
command line tools(主要是會用到 gcc)
homebrew(wget/most/screen...etc.)
synergy(share keyboard and mouse)
StartNinja(remove startup sound)
iTerm
Adium

bash setting
.profiile
.bashrc
.inputrc
.screenrc

接下來是 as coding 相關的
flex sdk
flash debug standalone player
java

接下來剩裝好 IDE 編輯器,
就差不多可以工作了..XD

20130815 update:
see more..
http://flashisobar.blogspot.tw/2013/08/switching-from-bash-to-zsh-on-osx.html