2014年1月25日 星期六

為何要持戒



癡 無明輪


殺 無始輪

淫 (人->三惡趣) 且會傷害腎臟

2014年1月16日 星期四

3ds max如何貼材質

step1 按M 叫出材質編輯器
step2 按map
step3 選第二個
step4 bitmap
step5將材質球移至平面
step6

2014年1月7日 星期二

PIX for windows擷取模擬樂園3的directx

PIX for windows 是DirectX SDK 的utility

在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在面板

2013年11月17日 星期日

領袖的十二項特質

世界領袖教育基金會
領袖十二項特質
1.強健的體魄
每周五早上去重訓室
2.生龍活虎的活力
活動組
3.高尚的品格
不逃票
4.慈悲的愛心
侵襲菲律賓海燕颱風捐款
5.國際的宏觀
甘比亞斷交
6.辯才無礙的口才
鼓勵參加培訓班
7.領導統御的能力
領導營隊
8.超高的智慧
預知未來的能力
9.特殊的魅力
待開發
10.協調溝通的能力
社團運作
11.具備企劃、執行、依進度完成目標的能力
規劃家族
12.要有禪的修養
每天禪定60分鐘

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
         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