2009年10月31日星期六

使用 mental ray 把 occlusion bake 成貼圖 (texture)


Ambient occlusion 這幾年來已經成為圖學玩家的愛將. 在大部分的case來說,它可以大幅增加物件的立體感,也可以凸顯 物件的細節.

在Maya裡我們如果想要先把 occlusion 算成貼圖 (為了加快render速度或拿來跟其他貼圖做額外處理),可以使用 mental ray 的 color -> batch bake 功能.




Bake 大概要注意的設定:
  • objects to bake : selected (只處理被選取的物件) 或 all (處理所有物件)
  • Bake to : Texture (貼圖)
  • Bake shadows : 是否把陰影也算進來
  • Camera : 指定運算使用的攝影機
  • Color Mode : Occlusion
  • Occlusion rays : sample的一種. 數值越高效果越好,運算時間也增加. 預設值是 64
  • Occlusion falloff : 距離衰退值. 零代表不衰退.
  • X Y resolution : 產生貼圖大小
  • Bits per channel : 8 或 16 通常就夠了, 除非要當 render pass
  • samples : anti-aliasing 數值. 預設是 1
  • bake to one map: 是否只產生一張貼圖




以上的結果是沒使用final gather去算的. 不但速度很慢, noise 也稍多了一點. 許要使用更高的 occlusion ray 才可以產生較順的圖. Autodesk 在 說明書裡也比較推薦使用 final gather 去算 AO. 要把 final gather 打開的話是在 Window->Rendering Editors-> Render Settings->Indirect Lighting ->Final Gathering 的 選項裡把 final gathering 打勾.





這是加上 final gather 算的 AO. 速度加快不少,顏色分配也比較順. 拿到 AO的貼圖之後你就可以對它做很多事,例如把它乘上 diffuse 顏色,讓細節更明顯等等.
全文

2009年10月24日星期六

Maya, ZBrush, Photoshop 等等 教學影片


http://www.houseoftutorials.net/

需要先 login, 然後選 login as a guest. 登入以後就可以開始觀看教學影片. 影片品質還算不錯,而且還可以下載HQ版本 (點 High Res Links)
全文

2009年10月14日星期三

好玩小祕技: 輕鬆讓球滾動



你可能想不到,要做個球在平地滾動的動畫其實很簡單,下兩三行mel指令就行了.不信嗎?試試看以下這幾行指令吧!

{
string $ball[] = `sphere`;
makeRoll $ball[0] 0.0 -false 1.0;
currentTime 2;
}

執行完你就可以開始key那顆新增出來的球的動畫了!
全文

2009年10月11日星期日

CGSociety 免費模型下載 (obj,mb,xsi,lwo,3ds等格式)





CGSociety 有提共蠻多免費模型讓我們學習與參考. 由於CGSociety是個專業2D/3D artist討論區,他們提共的模型品質都還算不錯.

以下有五個下載點, 每個部份大概有 10-20個模型.要注意的是,這些模型都不能拿來賺錢用 :-]

Note that these models are for personal learning only and are NOT FOR COMMERCIAL USE. If any models found in these sets are used in a commercial setting, or without copyright given to the authors, you may be liable to pay licensing fees.



Part 1 : http://features.cgsociety.org/story_custom.php?story_id=580



Part2 : http://features.cgsociety.org/story_custom.php?story_id=619



Part 3 : http://features.cgsociety.org/story_custom.php?story_id=672



Part 4 : http://features.cgsociety.org/story_custom.php?story_id=728



Part 5 : http://features.cgsociety.org/story_custom.php?story_id=824
全文

2009年10月3日星期六

在 Channel box 隱藏 / 顯示 特定 attribute

骨架師(Rigger) 常常需要把某些 attribute (例如 translate,rotate,scale) 從 channel box 隱藏起來,或顯示自訂的attribute 讓動畫師方便操作.要達到這目的最簡單的方法就是透過 Window->General Editors->Channel Control.


預設的channel box禮都會有 translate,rotate,scale,visibility 這些 attribute







透過 channel control 我們可以把某些attribute隱藏/顯示
Move>> 從左欄位到中欄位表示把attribute隱藏並且鎖著(無法 key它)
Move<< 從中欄位到左欄位表示把attribute顯示並且可以 key
Move>>從中欄位到右欄位表示把attribute顯示但鎖著





操作完channel control的結果




另外我們也可以透過mel script 把某個 attribute 加到 channel box 上
例如: addAttr -ln "moveSphere" -at bool -k 1 pSphere1;
-k 1 表示把 attribute顯示在 channel box.
全文