貪
嗔
癡 無明輪
慢
疑
殺 無始輪
盜
淫 (人->三惡趣) 且會傷害腎臟
妄
2014年1月25日 星期六
2014年1月16日 星期四
2014年1月7日 星期二
PIX for windows擷取模擬樂園3的directx
PIX for windows 是DirectX SDK 的utility
在trace RCT3是遇到
這是因為執行檔有中文路徑
Ref
在trace RCT3是遇到
PIX Experiment File Version Mismatch"
This program expects and experiment file version of 202, but the file 'C:\Some Directory Path\PIXD4.tmp ' has a version of 0.
Proceeding may cause this program to crash or behave incorrectly.
Continue loading file?
這是因為執行檔有中文路徑
Ref
2013年12月1日 星期日
安裝fumefx 3.5.1之後沒出現在3ds max 2014面板
1.找到C:\Program Files\Autodesk\3ds Max 2014\en-US\plugin.ini <3DSMAX安装目錄>
2.打開plugin.ini,在最後增加:
afterworkscommon=E:\CG Software\3ds Max Design 2014\plugins\afterworks\common
fumefx=E:\CG Software\3ds Max Design 2014\plugins\afterworks\fumefx
afterworksoptional=E:\CG Software\3ds Max Design 2014\plugins\afterworks\optional
3.就會出現fumefx在面板
2.打開plugin.ini,在最後增加:
afterworkscommon=E:\CG Software\3ds Max Design 2014\plugins\afterworks\common
fumefx=E:\CG Software\3ds Max Design 2014\plugins\afterworks\fumefx
afterworksoptional=E:\CG Software\3ds Max Design 2014\plugins\afterworks\optional
3.就會出現fumefx在面板
2013年11月17日 星期日
2013年11月12日 星期二
halo effect and stencil buffer
glEnable(GL_STENCIL_TEST);
glStencilFunc(GL_ALWAYS, 1, 0xFF); // Set any stencil to 1
glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE);
glStencilMask(0xFF); // Write to stencil buffer
glDepthMask(GL_FALSE); // Don't write to depth buffer
glClear(GL_STENCIL_BUFFER_BIT); // Clear stencil buffer (0 by default)
glDisable(GL_BLEND);
//draw原來物件
glStencilFunc(GL_EQUAL, 0, 0xFF); // Pass test if stencil value is 1
glStencilOp(GL_KEEP,GL_KEEP,GL_KEEP);
glStencilMask(0x00); // Don't write anything to stencil buffer
glEnable(GL_BLEND);
//draw halo object
glStencilOp(GL_KEEP,GL_KEEP,GL_KEEP);
glStencilMask(0x00); // Don't write anything to stencil buffer
glEnable(GL_BLEND);
//draw halo object
glDepthMask(GL_TRUE);
2013年10月23日 星期三
compiler第九章Machine-Independent Optimization
code optimization分成兩種 local和global
local code optimization在section 8.5
大多數的global optimization是data-flow analysis
9.1 The Principal Sources of Optimization
Semantics-Preserving Transformations
1)common-subexpression elimation
2)copy propagation
3)dead-code elimination
4)constant folding
5)code motion
6)induction variables and reduction in strength
local code optimization在section 8.5
大多數的global optimization是data-flow analysis
9.1 The Principal Sources of Optimization
Semantics-Preserving Transformations
1)common-subexpression elimation
2)copy propagation
3)dead-code elimination
4)constant folding
5)code motion
6)induction variables and reduction in strength
訂閱:
文章 (Atom)