Custom metaballs

各Maya用戶可在這裡交流問題和分享制作經驗

版主: h2o, stantang

Custom metaballs

文章Wolf » 4日 8月 2005年, 20:05

[deleted]
最後由 Wolf 於 5日 1月 2006年, 11:19 編輯,總共編輯了 1 次。
Wolf
討論區主持
討論區主持
 
文章: 260
註冊時間: 26日 2月 2002年, 08:00

Share On:

Share on Facebook Facebook Share on Twitter Twitter

文章mayaBug » 4日 8月 2005年, 22:17

:o 終於出手!! crazy !!
解釋一下好喎...
mayaBug
CGV討論區會員
CGV討論區會員
 
文章: 135
註冊時間: 2日 8月 2001年, 08:00
來自: Hong Kong

文章stantang » 4日 8月 2005年, 23:44

cut
最後由 stantang 於 25日 4月 2006年, 11:36 編輯,總共編輯了 1 次。
頭像
stantang
討論區主持
討論區主持
 
文章: 1566
註冊時間: 8日 11月 2001年, 08:00
來自: Groom Lake

文章Wolf » 5日 8月 2005年, 00:59

[deleted]
最後由 Wolf 於 5日 1月 2006年, 11:21 編輯,總共編輯了 1 次。
Wolf
討論區主持
討論區主持
 
文章: 260
註冊時間: 26日 2月 2002年, 08:00

文章h2o » 5日 8月 2005年, 01:39

見到都頭痛 :x
FB
My Lab
CG guy + Researcher + Educator
頭像
h2o
討論區主持
討論區主持
 
文章: 4945
註冊時間: 7日 4月 2002年, 08:00
來自: Dark Side
外號: 水水

文章hehehaha » 5日 8月 2005年, 02:10

正, 雖然唔明, 但有d 高手show 兩手.大家了解什麼叫井底蛙, 什麼叫天外有天. 大家努力d la. 朋友.
hehehaha
CGV討論區會員
CGV討論區會員
 
文章: 103
註冊時間: 17日 1月 2003年, 18:30

文章Wolf » 5日 8月 2005年, 02:31

哇,hehehaha,千企唔好咁講。我絕對唔會當邊個系井底蛙,只系幫朋友解決咗呢個技術問題,放上嚟俾大家參觀下。不過我都希望行內artist會學多啲數學之類嘅野,工作上好好用架。
Wolf
討論區主持
討論區主持
 
文章: 260
註冊時間: 26日 2月 2002年, 08:00

文章stantang » 5日 8月 2005年, 02:41

cut
最後由 stantang 於 25日 4月 2006年, 11:37 編輯,總共編輯了 2 次。
頭像
stantang
討論區主持
討論區主持
 
文章: 1566
註冊時間: 8日 11月 2001年, 08:00
來自: Groom Lake

文章Wolf » 5日 8月 2005年, 03:09

OK, I'm going to explain this another way. Try this (it's fun, trust me):

1. Create a plane facing z direction, and two locators. Pull apart the locators in x until they're about 2 units away from each other.

2. Assign a surface shader to the plane and create a sampler info node.

3. Now, here's the fun part: Pick the surface shader and open the expression editor. Type in

$r1 = hypot(samplerInfo1.pointWorldX-locator1.translateX,
samplerInfo1.pointWorldY-locator1.translateY);

$r2 = hypot(samplerInfo1.pointWorldX-locator2.translateX,
samplerInfo1.pointWorldY-locator2.translateY);

$i1 = max(0,pow(1-pow($r1/2,2),3));
$i2 = max(0,pow(1-pow($r2/2,2),3));
$i = $i1 + $i2;
surfaceShader1.outColorR = $i < 0.6 ? 1 : 0;

4. Now render. Try pulling the locators closer together and see them merge!
Wolf
討論區主持
討論區主持
 
文章: 260
註冊時間: 26日 2月 2002年, 08:00

文章HammerChugoh » 5日 8月 2005年, 03:11

nice to see technical stuff on this forum :>
And for DD, they are hiring like crazy now as most of their top people left to imageworks and other houses.... even Alan Kapler is no longer there.
HammerChugoh
CGV討論區會員
CGV討論區會員
 
文章: 272
註冊時間: 27日 7月 2002年, 06:50
來自: La La land

文章Wolf » 5日 8月 2005年, 03:12

[deleted]
最後由 Wolf 於 5日 1月 2006年, 11:21 編輯,總共編輯了 1 次。
Wolf
討論區主持
討論區主持
 
文章: 260
註冊時間: 26日 2月 2002年, 08:00

文章Wolf » 5日 8月 2005年, 03:30

HammerChugoh 寫:nice to see technical stuff on this forum :>
And for DD, they are hiring like crazy now as most of their top people left to imageworks and other houses.... even Alan Kapler is no longer there.


Wow. Did he take VB with him? Anyway that's good news for you (or any Houdini artist), I guess. Stealth's got some crazy cloud and terrain stuff, but I thought the building collapse wasn't very well-done. Anyway the film's stupid. But one funny thing was the thailand girl in the film looks like one of the girls in a HK public service ad some time ago (only taller and more well-endowed).
Wolf
討論區主持
討論區主持
 
文章: 260
註冊時間: 26日 2月 2002年, 08:00

文章stantang » 5日 8月 2005年, 05:28

Wolf 寫:OK, I'm going to explain this another way. Try this (it's fun, trust me):

1. Create a plane facing z direction, and two locators. Pull apart the locators in x until they're about 2 units away from each other.

2. Assign a surface shader to the plane and create a sampler info node.

3. Now, here's the fun part: Pick the surface shader and open the expression editor. Type in

$r1 = hypot(samplerInfo1.pointWorldX-locator1.translateX,
samplerInfo1.pointWorldY-locator1.translateY);

$r2 = hypot(samplerInfo1.pointWorldX-locator2.translateX,
samplerInfo1.pointWorldY-locator2.translateY);

$i1 = max(0,pow(1-pow($r1/2,2),3));
$i2 = max(0,pow(1-pow($r2/2,2),3));
$i = $i1 + $i2;
surfaceShader1.outColorR = $i < 0.6 ? 1 : 0;

4. Now render. Try pulling the locators closer together and see them merge!


Now I got it! expression is easier to understand. of course you drawing helps too... :mrgreen: wolf, what the render time of this expression compare to the node version?
頭像
stantang
討論區主持
討論區主持
 
文章: 1566
註冊時間: 8日 11月 2001年, 08:00
來自: Groom Lake

OT...

文章stantang » 5日 8月 2005年, 05:41

HammerChugoh 寫:nice to see technical stuff on this forum :>
And for DD, they are hiring like crazy now as most of their top people left to imageworks and other houses.... even Alan Kapler is no longer there.


Hey Hammer, are u still in LA?
頭像
stantang
討論區主持
討論區主持
 
文章: 1566
註冊時間: 8日 11月 2001年, 08:00
來自: Groom Lake

文章Andrew Lee » 5日 8月 2005年, 06:27

Absolutely no idea what r u guys talking about :o :o :o :o

I better go back to do more drawing :o :o :o :o
www.andrewlee.hk
頭像
Andrew Lee
討論區主持
討論區主持
 
文章: 1562
註冊時間: 4日 8月 2003年, 09:24
來自: Hong Kong
外號: Andrew Lee

下一頁

回到 Autodesk Maya

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 12 位訪客