Maya nParticle only calculates friction/stickness between particles and rigid bodies, not friction is encountered between particles. My guess is the algorithm complexity is too high. Anyway there is two relative easy ways to fake the effect, according to my searching.
想要用一个一包糖粒堆在物体(对又是它..)上的片段,发现Maya的nParticle只计算粒子和Rigid body的摩擦力不计算粒子和粒子间的摩擦力(想来是算法复杂度太高了),所以不管怎么搞最终都会摊成大烧饼,并且还会不停的抽搐.. 查了下大概有两个相对简单的方法
1. hold particles with a invisible rigid body. 2. Use RealFlow, which seems to have much more handy control over particles
I’m not happy with either. 1 is lame. 2 too much trouble, have to get hang of another environment. If I must do scripting, I choose to learn mel.

So the algorithm is:
It’s unlikely to mess with friction as I guessed above. I tried to modify per particle mass to let them stuck in the space. Yea that works but they tend to be headbutted by other particles and flying around.. for science. Later I googled out it’s possible to control force field per particle, with attribute named “Field name”_”option name”. That is to say adding attribute “gravityField1_magnitude” to nParticle2 will grant you control over per particle gravity from the field.
On creation:
[php]
global int $freezeCap=5; //be completely frozen after the cap rounds
global int $gravityPP=500;
global float $dragPP=100;
global float $accelerationTrigger=15; //the speed parameter to trigger ‘I’m free again!", which leads to free droping.
global int $n[100000]; //how many times have the particle been locked
global int $preVel[100000]; //velocity of last frame
global int $locked[100000];
nParticleShape4.dragField1_magnitude=0;
nParticleShape4.gravityField1_magnitude=$gravityPP;
global int $init=1;
if($init==1) {
int $i;
for($i=0;$i<100000;$i++) {
$n[$i]=0;
$locked[$i]=0;
}
$init=0;
}
[/php]
Before dynamics:
[php]
int $id=nParticleShape4.particleId;
float $vel=abs(nParticleShape4.velocity);
//print("nParticleShape2.velocity "+$nParticleShape2.velocity+"\n");
if($vel>$preVel[$id]+$accelerationTrigger) {
$n[$id]=0;
nParticleShape4.dragField1_magnitude=0; //If it’s free again, unlock and erase record
}
else {
$freezeFact=$n[$id]/$freezeCap; //progress bar of locking
if($freezeFact>1)
$freezeFact=1;
$n[$id]+=1;
nParticleShape4.dragField1_magnitude=$freezeFact*$dragPP; //increase drag force depending on locking level
nParticleShape4.gravityField1_magnitude=$gravityPP*(1-$freezeFact)*(1-$freezeFact); //parabola is better according to experiment
nParticleShape4.velocity=<<0,0,0>>;
}
$preVel[$id]=nParticleShape4.velocity;
[/php]
The script is not bad to me.. adjustable parameters are handy. Time efficiency is acceptable (as a former ACMer, I can confirm this is O(n), can’t be better). 20 million particles * 100 frames cost my i7 half an hour. Not perfect but enough for bragging.
1. 弄个透明的动画的rigid body来把粒子圈起来。 2. 用RealFlow,我只用RealFlow模拟水,但是显然那它对粒子的控制比Maya厉害得多。
两个方法我都不高兴,1太不屌爆,2太麻烦,要做很多熟悉另一个环境的工作,且要写脚本,所以不如来学下mel。下了本书叫Maya Python — for Games and Film,翻了一百页发现Python在Maya上基本是庞大的workflow中工程师为了其他人方便写的maya程序,并且也要有mel基础,不是我要的。

总之,思路是:
想要计算摩擦力显然是不现实的,说过了。我先通过改质量的途径让粒子满足条件时失去质量以停在原地不受重力影响,停是能停住但是会被别的particle撞飞.. 非常科学。后来查到可以使用 <力场名>_<属性名> 的方式控制Per Particle的行为,即,给nParticle2添加名为gravityField1_magnitude的attribute程序就会使用它来控制它受到重力场1的magnitude。然后通过DragField让particle稳定。我在注释里详细说。
粒子生成时脚本:
[php]
global int $freezeCap=5; //be completely frozen after the cap rounds
global int $gravityPP=500;
global float $dragPP=100;
global float $accelerationTrigger=15; //the speed parameter to trigger ‘I’m free again!", which leads to free droping.
global int $n[100000]; //how many times have the particle been locked
global int $preVel[100000]; //velocity of last frame
global int $locked[100000];
nParticleShape4.dragField1_magnitude=0;
nParticleShape4.gravityField1_magnitude=$gravityPP;
global int $init=1;
if($init==1) {
int $i;
for($i=0;$i<100000;$i++) {
$n[$i]=0;
$locked[$i]=0;
}
$init=0;
}
[/php]
动态前的脚本:
[php]
int $id=nParticleShape4.particleId;
float $vel=abs(nParticleShape4.velocity);
//print("nParticleShape2.velocity "+$nParticleShape2.velocity+"\n");
if($vel>$preVel[$id]+$accelerationTrigger) {
$n[$id]=0;
nParticleShape4.dragField1_magnitude=0; //If it’s free again, unlock and erase record
}
else {
$freezeFact=$n[$id]/$freezeCap; //progress bar of locking
if($freezeFact>1)
$freezeFact=1;
$n[$id]+=1;
nParticleShape4.dragField1_magnitude=$freezeFact*$dragPP; //increase drag force depending on locking level
nParticleShape4.gravityField1_magnitude=$gravityPP*(1-$freezeFact)*(1-$freezeFact); //parabola is better according to experiment
nParticleShape4.velocity=<<0,0,0>>;
}
$preVel[$id]=nParticleShape4.velocity;
[/php]
个人感觉这个还不错,有很多参数可以控制,效率也还行(前ACMer表示这个就是O(n)..不能再低了),200万粒子100帧i7跑半个小时。显然不完美,蒙人没问题。
Satire is the court of last resort.
https://pixelfed.uno/betpro2026
PRAT.UK rewards repeat visits more than The Daily Mash. The humour holds up over time. That durability matters. — The London Prat
I was suggested this website by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my difficulty. You are wonderful! Thanks!
Hi there, this weekend is fastidious in favor of
me, since this moment i am reading this wonderful informative post here at my residence.
گینر ماسل تک، به گونهای طراحی
شده تا نیاز ورزشکاران به تهیه جداگانه چندین مکمل (مانند پروتئین وی، کراتین،
گلوتامین و مولتیویتامین) را برطرف سازد.
This site is a work of art. Each article is a brushstroke in a larger, funnier picture. — The London Prat
did the trick, thanks – [url]https://swap-eth-to-bnb.github.io/[/url]
где купить справку медицинские услуги справка
https://www.horticulturaljobs.com/jobs/5b1e4fa2-a677-49fe-9f98-4d10a0a820f9/preview?c=a1603be9-058d-4c5d-b07b-c4d82d24091f
Satirical journalism keeps alive public trust by making people think.
PRAT.UK offers smarter satire than The Daily Mash without losing accessibility. The humour works on multiple levels. That’s rare. — The London Prat
https://servodriven.com/forums/users/cramer27cramer/
I don’t know whether it’s just me or if everybody else encountering issues with your site.
It seems like some of the text on your posts are running off the
screen. Can someone else please comment and let me know if this is
happening to them too? This might be a issue with my internet browser because I’ve had this happen before.
Appreciate it
Satirical journalism protects government transparency in ways traditional news sometimes cannot.
Hello there, I discovered your website via Google while looking
for a similar matter, your website got here up, it appears good.
I’ve bookmarked it in my google bookmarks.
Hello there, simply changed into aware of your weblog through Google, and located that
it’s truly informative. I am gonna watch out for brussels.
I will be grateful in case you proceed this in future.
A lot of people will probably be benefited out of your writing.
Cheers!
https://ext-6974959.livejournal.com/16814.html?newpost=1
hello there and thank you for your info – I have certainly picked up something new from right here. I did however expertise some technical issues using this website, as I experienced to reload the web site lots of times previous to I could get it to load properly. I had been wondering if your hosting is OK? Not that I’m complaining, but slow loading instances times will often affect your placement in google and could damage your high-quality score if advertising and marketing with Adwords. Anyway I am adding this RSS to my email and could look out for a lot more of your respective interesting content. Ensure that you update this again soon.
You actually make it appear so easy with your presentation however I to find this topic to be really one thing that I feel I’d never understand.
It seems too complex and very large for me. I’m having a look forward for
your next put up, I will attempt to get the hang of it!
I blog frequently and I seriously thank you for your information. This article has really peaked my interest. I will take a note of your blog and keep checking for new details about once per week. I opted in for your RSS feed too.
I cannot thank you more than enough for the blogposts on your website. I know you set a lot of time and energy into these and truly hope you know how deeply I appreciate it. I hope I’ll do a similar thing person sooner or later.
Customized assistance fгom OMT’s seasoned tutors helps pupils
ցet rid ߋf mathematics obstacles, fostering a genuine link t᧐ the subject and ideas for exams.
Enlist today in OMT’s standalone e-learning
programs аnd see your grades skyrocket tһrough
limitless access tօ premium, syllabus-aligned
сontent.
As mathematics underpins Singapore’ѕ credibility fοr quality in global
standards like PISA, math tuition іѕ crucial to օpening ɑ child’s prospective
аnd securing academic benefits in thіѕ core subject.
primary school tuition іs essential f᧐r PSLE as it ᥙses restorative assistance fߋr topics like wһole numberѕ and
measurements, making sure no fundamental weak pointѕ persist.
Ԝith Ⲟ Levels stressing geopmetry proofs ɑnd theses,
math tuition givbes specialized drills tο guarantee trainees сan deal wіth these ѡith accuracy ɑnd self-confidence.
Junior college tuition օffers access tօ supplemental sources ⅼike worksheets
аnd video descriptions, reinforcing А Level syllabus
insurance coverage.
OMT establishes іtself apart with а proprietary currculum tһat prolongs MOE
material by including enrichment tasks targeted аt developing mathematical instinct.
Gamified aspects mɑke revision enjoyable lor, motivating even m᧐rе practice
and brіng about grade renovations.
In a hectic Singapore classroom, math tuition ցives the slower, detailed
explanations needed tо develop self-confidence for
examinations.
Have a lοok at my web-site; small group math tuition
Quality content is the key to interest the people to visit the web site, that’s what this site is providing.
Hello to all, how is everything, I think every one is getting more from this website, and your views are good designed for new people.
Selam millet Güvenilir bir bahis sitesi bulmak gerçekten çok zor 15’ten fazla site denedim Her şey çok hızlı ve güvenli — 1xbet türkiye en iyisi Site inanılmaz hızlı çalışıyor Neyse, kaybetmeyin diye tıkla — 1xbet giriş adresi [url=https://1xbet-giris-uhk.com]1xbet giriş adresi[/url] Sakın dolandırıcılara kanma Bahis yapan herkese gönder
https://heylink.me/secretbet26/
continuously i used to read smaller articles or reviews which as well clear their motive, and that is also happening with this paragraph which I am reading now.
Have you ever considered about including a little bit
more than just your articles? I mean, what you say
is valuable and everything. However imagine
if you added some great images or videos to give your posts more, “pop”!
Your content is excellent but with images and videos,
this blog could undeniably be one of the best in its field.
Terrific blog!
It’s a shame you don’t have a donate button! I’d without a doubt donate to this fantastic
blog! I guess for now i’ll settle for bookmarking and adding your RSS feed to my Google account.
I look forward to brand new updates and will share this blog with my Facebook
group. Talk soon!
https://x.com/FastBetProvn9
Primary-level math tuition іs essential for sharpening logical reasoning and pгoblem-solving abilities neеded tо tackle the increasingly complex
ᴡord proƅlems encountered in upper primary grades.
Іn Singapore’s rigorpus secondary education landscape, math
tuition Ьecomes indispensable fоr students to
confidently conquer challenging topics ѕuch as algebra,
geometry, trigonometry, ɑnd statistics thɑt
serve as the backbone for O-Level achievement.
JC math tuition holds аdded significance for students targeting prestigious university pathways including engineering, ᴡheгe strong
H2 Math performance serves аѕ a critical entry condition.
In a city ѡith packed schedules аnd heavy traffic, remote tuition fօr O-Levels enables secondary learners to acccess focused exam preparation аt any convenient
tіme, ѕubstantially boosting tһeir ability to efficiently handle timed exam scenarios.
Ꮩia simulated exams ᴡith encouraging comments, OMT constructs resilience іn mathematics, promoting love аnd motivation fⲟr Singapore pupils’ test accomplishments.
Unlock үour child’s full capacity in mathematics ᴡith OMT Math
Tuition’s expert-led classes, customized tо Singapore’ѕ MOE
curriculum fօr primary school, secondary, and JC trainees.
In Singapore’ѕ rigorous education system, wһere mathematics іs compulsory аnd
consumes around 1600 hourѕ of curriculum time іn primary school
and secondary schools, math tuition ends up ƅeing neϲessary to
assist students develop а strong structure fօr ⅼong-lasting success.
Tuition programs fоr primary mathematics concentrate on error
analysis from past PSLE documents, teaching students tо prevent recurring errors іn computations.
Tuition cultivates advanced analytic abilities, іmportant for solving tһe complex, multi-step concerns tһat speϲify O
Level mathematics difficulties.
Math tuition аt thе junior college level highlights theoretical clarity ᧐ver memorizing memorization, impotant fоr dealing
ᴡith application-based A Level inquiries.
OMT differentiates ᴡith a proprietary educational
program tһat supports MOE web content through multimedia integrations, ѕuch as videoo explanations of essential theses.
Gamified elements mаke modification fun lor, motivating еven morе technique and
resuⅼting in grade renovations.
Wіtһ restricted class tіmе in schools, math tuition extends learning һouгs, essential
fօr grasping the substantial Singapore math curriculum.
Ηere is my site: math tuition centre singapore
https://erotilink-connexion.com/
You actually expressed that perfectly.
The start of a fast-growing trend?
Hello there! This post could not be written any
better! Reading through this post reminds me of my previous roommate!
He constantly kept preaching about this. I most certainly will send this information to him.
Fairly certain he’ll have a very good read. Thanks for sharing!
https://xbetpromocode12.wixstudio.com/codepromo1xbetbj
https://jobs.lajobsportal.org/profiles/8563704-win-rush88
I’m partial to blogs and i actually respect your content. The article has actually peaks my interest. I am going to bookmark your site and preserve checking for new information.
https://roughstuffmedia.activeboard.com/t73036928/1xbet-2026-1xsand/?page=1#lastPostAnchor
https://amazingradio.com/profile/winrush88
https://www.atelierlorente.fr/produit/boucles-doreille-adele-forme-ronde-petites-sur-commande/#comment-388730
Eventually, OMT’ѕ comprehensive solutions weave delight гight into math education, assisting students
drop deeply crazy ɑnd soar in tһeir tests.
Transform mathematics difficulties іnto triumphs wіth OMT
Math Tuition’ѕ mix ᧐f online and on-site alternatives, Ьacked bby a track record οf trainee excellence.
Ӏn Singapore’s rigorous education ѕystem, wһere mathematics is mandatory аnd consumes аround
1600 hours of curriculum tjme in primary аnd secondary schools,
math tuition ends uр bеing vital to heⅼp students build а strong
structure fօr lifelong success.
Tuition emphasizes heuristic analytical methods, essential fоr dealing wіth PSLE’s challenging ᴡoгd issues tһat
neеԀ numerous actions.
Identifying аnd rectifying details weaknesses, like іn likelihood
օr coordinate geometry, mɑkes secondary tuition vital fⲟr
O Level quality.
Junior college tuition supplies access t᧐ additional resources
ⅼike worksheets аnd video clip descriptions, strengthening Α Level curriculum insurance coverage.
Unlіke generic tuition facilities, OMT’s customized curriculum boosts tһе MOE framework Ƅy incorporating real-worⅼd applications, makіng abstract mathematics concepts mᥙch mоre relatable and understandable for students.
Τhe self-paced е-learning platform from OMT is super flexible lor, mаking it easier to manage school ɑnd tuition for
hіgher mathematics marks.
Singapore’ѕ meritocratic sуstem rewards һigh achievers,
mаking math tuition a calculated financial investment fοr examination supremacy.
Аlso visit my pagе Kaizenaire Math Tuition Centres Singapore
Pretty section of content. I just stumbled upon your blog and in accession capital to assert that I get actually enjoyed account your blog
posts. Anyway I’ll be subscribing to your augment and even I achievement you access consistently fast.
If you want to get much from this post then you have
to apply these strategies to your won website.
Guten Tag, ich bin zufällig auf dieses Thema gestoßen und ich muss zugeben, dass es hier viele wertvolle Inhalte gibt. Ich selbst bin gerade dabei, meine Wohnung ein und solche Tipps sind echt hilfreich. Viele Grüße.
Spannender Thread. Meiner Meinung nach die Raumgestaltung die Basis von allem ist. Ich empfehle, sich nicht zu hetzen.
apsense.com
Thanks for finally writing about > Use a simple script to achieve powder pile | Maya nParticle简单脚本实现粒子堆叠 | Asher.GG < Loved it!
No matter if some one searches for his necessary thing, thus he/she wants to be available that in detail,
therefore that thing is maintained over here.
I really like your blog.. very nice colors & theme.
Did you design this website yourself or did you hire someone to do it for you?
Plz reply as I’m looking to design my own blog and would
like to find out where u got this from. kudos
hello there and thank you for your info – I have certainly picked up something new from right here.
I did however expertise some technical issues using this website,
as I experienced to reload the site many times previous to I could get it to load correctly.
I had been wondering if your hosting is OK? Not that I am complaining, but slow
loading instances times will sometimes affect your placement in google and
could damage your high-quality score if ads and marketing
with Adwords. Well I’m adding this RSS to my email and could look out
for much more of your respective exciting content.
Make sure you update this again very soon.
http://hkeverton.com/forumnew/home.php?mod=space&uid=681307