2014年7月31日 星期四

360 panorama test

here is a stitched panorama, trying to publish it via google panorama


2012年5月30日 星期三

Alfred 慢慢的需要鞭策時

我的Alfred設定好像有問題,目前job都會慢吞吞的在跑, 手動需要按RETRY才會跑的比較快

目前同事有個暫時的解法, 在cmd理找出alfred的PID編號

ps aux| grep alfred


然後打STRACE 的指令 (例, 20069, alfred 的pid)

strace -p 20069

有時候strace也會卡住,就點一下CMD畫面

2011年12月27日 星期二

renderman shader裡加 custom aov layer

新的AllPurpose Shader 裡開個" Incandescence" shading component, intensity set to 0, color attach a Color Slbox
slbox 寫法請參考以下圖檔

結果會是final render不會出現, 但是會出現在aov的圖層裏面

2011年8月21日 星期日

How to set glass object bypass indirect specular pass


as title...go to renderManColtrolsWindow, open Geometric Setting, create additional attribute as below, and attach all glass object that particular pass


2010年12月15日 星期三

mix8 layer blend mode

blend mode numbers and their functions

-ei 0 ") alpha"
-ei 1 ") normal.mix"
-ei 2 ") add"
-ei 3 ") multiply"
-ei 4 ") substract"
-ei 5 ") screen"
-ei 6 ") darker"
-ei 7 ") lighter"
-ei 8 ") difference"
-ei 9 ") average"
-ei 10 ") negation"
-ei 11 ") exclusion"
-ei 12 ") overlay"
-ei 13 ") hard.light"
-ei 14 ") soft.light"
-ei 15 ") color.dodge"
-ei 16 ") color.burn"
-ei 17 ") reflect"
-ei 18 ") glow"
-ei 19 ") stamp"
-ei 20 ") freeze"
-ei 21 ") heat"

2010年7月29日 星期四

two sided shader in renderman

如果遇到正反面是不同屬性的材質,可以用SLBOX來寫condition,利用model的face normal來判斷.
sl code寫法如下,v1跟v2可再各自串聯node上去

/* color */
if ((dPdu^dPdv).N>0)
result = v1;
else
result = v2;


記得maya model的double side 要關掉,renderman的ensemble的double shaded 要開

2010年5月13日 星期四

template for shader palette selection upon attachment

global proc yi_selector(string $phase)
{
string $paletteName ="";
string $s ="";
string $m ="";
string $b ="";
if ($phase == "normal")
{
$s = "/shows/tife/prod/surface/char/tife_c_yi/tife_c_yi_rig_h.splt";
$m = "/shows/tife/prod/surface/char/tife_c_yi/tife_c_yi_rig_h.surface";
$b = "/shows/tife/prod/surface/char/tife_c_yi/yi_sss_setup.mel";
}
else if ($phase == "wet")
{
$s = "/shows/tife/prod/surface/char/tife_c_yi/tife_c_yi_rig_h_wet.splt";
$m = "/shows/tife/prod/surface/char/tife_c_yi/tife_c_yi_rig_h_wet.surface";
$b = "/shows/tife/prod/surface/char/tife_c_yi/yi_sss_setup_wet.mel";
}
else if ($phase == "dirty")
{
$s = "/shows/tife/prod/surface/char/tife_c_yi/tife_c_yi_rig_h_dirty.splt";
$m = "/shows/tife/prod/surface/char/tife_c_yi/tife_c_yi_rig_h_dirty.surface";
$b = "/shows/tife/prod/surface/char/tife_c_yi/yi_sss_setup_dirty.mel";
}

$paletteName=`slimcmd slim CreatePalette -file $s`;
print "attach mel\n";
eval("source \""+$m+"\"");
eval("source \""+$b+"\"");

}
global proc surface_yi_selector()
{
if (`window -ex ABCWin`==true)
deleteUI -window ABCWin;
window -title "Select yi shader type" ABCWin;
columnLayout -adjustableColumn 2;
button -label "normal" -c "yi_selector(\"normal\")";
separator -h 10;
button -label "wet" -c "yi_selector(\"wet\")";
separator -h 10;
button -label "dirty" -c "yi_selector(\"dirty\")";
separator -h 10;
setParent ..;
showWindow ABCWin;
}
surface_yi_selector();