請教Particle 的Instancer問題

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

版主: h2o, stantang

請教Particle 的Instancer問題

文章EIN » 22日 1月 2008年, 20:53

請教Particle 的Instancer問題:
附加檔案
00.JPG
00.JPG (375.31 KiB) 被瀏覽 7300 次
頭像
EIN
CGV討論區會員
CGV討論區會員
 
文章: 111
註冊時間: 3日 2月 2005年, 11:10
來自: HONG KONG

Share On:

Share on Facebook Facebook Share on Twitter Twitter

文章EIN » 22日 1月 2008年, 20:56

請問點先可以把d Particles指向中心 或 指向指定的方法 ?
附加檔案
01.JPG
01.JPG (346.95 KiB) 被瀏覽 7298 次
頭像
EIN
CGV討論區會員
CGV討論區會員
 
文章: 111
註冊時間: 3日 2月 2005年, 11:10
來自: HONG KONG

文章singsinghk » 22日 1月 2008年, 22:57

1.create perParticleAttr directionPP (vector)

2.in creation & runtime expression add:
vector $particlePosition=particleShape1.worldPosition;
vector $origin=<<0,0,0>>;

particleShape1.directionPP=unit($origin-$particlePosition);

3.in Instancer(Geometry Replacement) parts
change AimDirertion => directionPP


*Please make sure the instancer object on +X axis direction.
singsinghk
討論區新秀
討論區新秀
 
文章: 5
註冊時間: 5日 10月 2002年, 02:39
來自: hk

文章EIN » 23日 1月 2008年, 00:33

做到了~多謝你!
感激!!!!
頭像
EIN
CGV討論區會員
CGV討論區會員
 
文章: 111
註冊時間: 3日 2月 2005年, 11:10
來自: HONG KONG

文章stantang » 23日 1月 2008年, 06:06

To add to singsinghk's answer, if you want to have the particles look at something (let's say locator1 here) instead of just the origin, you can do this:

1.create perParticleAttr lookAtMe (vector)

2.in runtime expression add:
particleShape1.lookAtMe= <<locator1.tx,locator1.ty,locator1.tz>>;

3.in Instancer(Geometry Replacement) parts
change AimPosition to lookAtMe

Feel free to change the object being aimed from locator1 to whatever you want.
dig deep, think deeper
頭像
stantang
討論區主持
討論區主持
 
文章: 1566
註冊時間: 8日 11月 2001年, 08:00
來自: Groom Lake

文章EIN » 24日 1月 2008年, 00:54

THX!stantang~
又學到野!

想請教多個問題..像圖1,我用particle tool畫了幾粒粒子後,可否再修改每粒粒子的位置或再增加粒子數量(畫多幾粒)?
頭像
EIN
CGV討論區會員
CGV討論區會員
 
文章: 111
註冊時間: 3日 2月 2005年, 11:10
來自: HONG KONG

文章stantang » 24日 1月 2008年, 01:46

As far as I know, there is no way to edit the number of particles in a single particle shape that's created by particle tool, but you can edit the position of the particle by using the follow MEL.

particle -e -at position -id 2 -vectorValue 0 0 0;

Change the id number to the id of the particle you want to edit, the vectorValue is where you want to put it.

To be honest, it would be much easier to recreate the particles if you have to edit the particle positions.
dig deep, think deeper
頭像
stantang
討論區主持
討論區主持
 
文章: 1566
註冊時間: 8日 11月 2001年, 08:00
來自: Groom Lake

文章stantang » 24日 1月 2008年, 01:55

Forgot to mention, you can also use component editor to edit the positions, but redoing the particle would still be easier when you have a lot.
dig deep, think deeper
頭像
stantang
討論區主持
討論區主持
 
文章: 1566
註冊時間: 8日 11月 2001年, 08:00
來自: Groom Lake

文章EIN » 24日 1月 2008年, 23:46

多謝你的解答~
頭像
EIN
CGV討論區會員
CGV討論區會員
 
文章: 111
註冊時間: 3日 2月 2005年, 11:10
來自: HONG KONG


回到 Autodesk Maya

誰在線上

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

cron