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跑半个小时。显然不完美,蒙人没问题。
I just could not depart your website prior to suggesting that
I actually loved the standard information a person supply to your guests?
Is gonna be again frequently to check up on new posts
Excellent post. I used to be checking constantly this blog
and I am impressed! Very helpful info specifically the
closing phase 🙂 I deal with such information a lot.
I was seeking this particular info for a long time. Thank
you and good luck.
Appreciate this post. Will try it out.
https://t.me/KohLantaKrabiThailand
Have you ever considered creating an ebook or guest authoring on other
sites? I have a blog centered on the same subjects you discuss and would really like to
have you share some stories/information. I know my visitors
would value your work. If you’re even remotely interested,
feel free to send me an e mail.
Hello! This is kind of off topic but I need some help from an established blog.
Is it very difficult to set up your own blog? I’m not very techincal
but I can figure things out pretty fast. I’m thinking about setting up my own but I’m not sure
where to start. Do you have any ideas or suggestions? Cheers
Hello everyone, it’s my first go to see at this web page, and post is really fruitful
in support of me, keep up posting such posts.
https://notes.io/e3zDZ
요즘 스트레스가 심해서 마사지를 고민하고 있었어요.
우연히 이 포스팅을 보고 동해홈케어를 받아 봤어요.
테라피스트의 손길이 정말 좋았어요.
동해힐링마사지를 받고 나서 몸이 훨씬
가벼워졌어요.
My web site … 동해출장안마
Klasse Artikel. Eine Menge konkrete Informationen. Danke dass du dein Wissen teilst.
Ich speichere mir die Seite ab.
Sehe ich genauso – der Bereich des Wohnstils wird oft nicht einfach.
Gut, dass es jemand erklärt.
Aufrichtig hilfreich. Ich suche schon nach genau so einem Beitrag seit Wochen gesucht.
Klasse gemacht!
Also visit my page :: Delia
I was suggested this web site 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 amazing! Thanks!
Greetings! Very helpful advice within this article!
It’s the little changes which will make the largest changes.
Thanks a lot for sharing!
Also visit my page: london heathrow to gatwick taxi
https://circusmarketing.es/sharp-dressed-fashionist-wearing-jacket-and-bow-tie/#comment-661563
Oh my goodness! Amazing article dude! Thanks, However I am
experiencing difficulties with your RSS. I don’t understand why I am unable to join it.
Is there anybody having similar RSS issues? Anyone that knows the
answer will you kindly respond? Thanx!!
I have read so many posts concerning the blogger lovers however this piece of writing is actually a
good piece of writing, keep it up.
Interessanter Post. Reichlich konkrete Inspirationen. Großes Lob für den Beitrag.
Ich empfehle die Seite gerne weiter.
Stimme zu – die Sache der Einrichtung wird oft anspruchsvoll.
Danke für die klare Erklärung.
Wirklich hilfreich. Ich suche schon nach genau so
einem Beitrag lange gesucht. Viele Grüße!
My web-site Lemuel
Thanks for every other excellent post. Where else may anybody get that kind of information in such a perfect method of writing?
I’ve a presentation subsequent week, and I’m at the search
for such information.
If you desire to improve your knowledge only keep visiting this
web site and be updated with the hottest news
posted here.
https://independent.academia.edu/bet1xvip2026
OMT’s mindfulness methods reduce math anxiousness, permitting real affection tⲟ grow
and motivate examination excellence.
Founded іn 2013 bʏ Mг. Justin Tan, OMT Math Tuition has аctually helped many trainees ace tests ⅼike PSLE, Ⲟ-Levels, and
A-Levels ѡith tested analytical methods.
Аѕ mathematics underpins Singapore’ѕ credibility f᧐r excellence in international criteria ⅼike PISA, math tuition іs crucial to
unlocking ɑ child’s potential and protecting
scholastic benefits in thіs core topic.
Eventually, primary school math tuition іѕ vital for PSLE quality, аs іt gears
uр trainees with tһe tools to achieve top bands and secure
favored secondary school placements.
Math tuition ѕhows effective time management methods, helping secondary trainees fᥙll O Level
examinations ѡithin the designated duration ѡithout rushing.
Via normal simulated examinations аnd comprehensive
comments, tuition aids junior university student determine ɑnd fix weaknesses prior
to the actual Α Levels.
OMT differentiates іtself ѵia a personalized syllabus tһat matches MOE’s Ьy integrating engaging,
real-life situations to improve trainee passion ɑnd
retention.
Tape-recorded sessions іn OMT’s ѕystem alⅼow you rewind аnd replay lah, ensuring you recognize every principle fⲟr first-class test outcomes.
Іn Singapore, ѡhere mathematics proficiency opens up doors tο STEM jobs, tuition іs important
for strong examination structures.
mү web blog: online math tuition singapore
My developer is trying to convince me to move to .net from PHP.
I have always disliked the idea because of the expenses.
But he’s tryiong none the less. I’ve been using WordPress on a variety of websites for about a
year and am nervous about switching to another platform.
I have heard excellent things about blogengine.net.
Is there a way I can import all my wordpress posts into it?
Any help would be really appreciated!
If some one wants expert view concerning running a blog afterward i advise him/her to go to
see this webpage, Keep up the fastidious job.
Cheap loans with transparent terms and surprisingly low rates make your next big purchase feel totally within reach. 1192
I am extremely inspired along with your writing skills and also with the structure in your weblog.
Is that this a paid subject or did you modify it your self?
Either way stay up the excellent high quality writing, it’s rare to peer a nice
blog like this one these days..
Greetings from Carolina! I’m bored to death at work so
I decided to check out your blog on my iphone during lunch break.
I love the knowledge you present here and can’t wait to take a look when I get home.
I’m surprised at how quick your blog loaded on my cell
phone .. I’m not even using WIFI, just 3G ..
Anyways, very good blog!
https://moxymuse.com/forums/users/mcknightvilstrup5/
Anonymous dating platforms offering creative nicknames, masked profiles, and the freedom to explore without overexposing your identity. 9893
https://www.odcec.mi.it/home/2021/02/03/aggiornamento-ctr—elenco-speciale-ctu-e-commissari-ad-acta
Very energetic blog, I loved that bit. Will there be a part 2?
https://briefjournal.space/item/1xbet-app-2026-total-mobile-betting-guideline-for-safer-smarter-and-more-hassle-free-use
FullHD film izle kalitesinde kristal netliğinde görüntü ve zengin renklerle sinema deneyimini evinizin konforunda yaşamanın tadını çıkarın. 6146
https://wiki-wire.win/index.php/1xBet_App_2026:_Complete_Mobile_Betting_Guide_for_Smarter,_Safer,_and_Faster_Access
OMT’s documented sessions аllow pupils review inspiring explanations anytime, growing tһeir love fоr math
and sustaining theіr passion for examination accomplishments.
Օpen your kid’s fսll capacity іn mathematics ᴡith OMT Math Tuition’ѕ expert-led classes, customized tο Singapore’s MOE syllabus fⲟr primary
school, secondary,аnd JC trainees.
As mathematics forms the bedrock ⲟf abstract thought and іmportant
ρroblem-solving іn Singapore’s education ѕystem, expert math tuition ρrovides the individualized guidance
neceѕsary tо turn difficulties іnto triumphs.
Tuition programs fߋr primary math focus οn error analysis fгom past PSLE documents,
teaching students tօ avoid repeating errors іn estimations.
Tuition promotes advanced analytic abilities,
essential fⲟr solving the complicated, multi-step inquiries tһat define Օ Level
mathematics obstacles.
Tuition incorporates pure ɑnd applied mathematics seamlessly, preparing students fоr the interdisciplinary nature ⲟf A Level issues.
Ꮃhat collections OMT аpart is its custom-made mathematics program tһat extends beyond thе MOE syllabus, cultivating essential analyzing hands-᧐n, ᥙseful workouts.
OMT’ѕ on-lіne tuition saves cash ᧐n transportation lah, enabling
еven more focus on researches ɑnd boosted math outcomes.
Singapore’ѕ global position іn mathematics stems fгom supplemental
tuition tһat develops abilities for international standards ⅼike PISA ɑnd
TIMSS.
Feel free to surf to my web pɑge; maths tuition for primary 4
Wirklich guter Post. Eine Menge praktische Inspirationen. Vielen Dank für die
Mühe. Ich werde öfter reinschauen.
Volle Zustimmung – der Bereich der Einrichtung ist anspruchsvoll.
Endlich mal Klartext.
Echt praxisnah. Ich war schon nach genau so einem Beitrag genau danach gesucht.
Danke!
my page … http://Wiki.saomaitech.Vn/
https://aboutnursernjobs.com/author/melbetofthebest1/
Servus, ich bin hier durch Zufall gelandet und ich muss zugeben, dass man hier echt was mitnimmt. Ich gestalte gerade die Einrichtung neu zu und jeder Hinweis ist Gold wert. Einen schönen Tag euch allen.
Wertvoller Beitrag. Meiner Meinung nach die richtige Farbgebung wirklich einen Unterschied macht. Lieber einmal richtig als zweimal.
Visit my website https://sakumc.org/xe/?document_srl=5919923
Escort izmir seçenekleri Ege’nin rahat atmosferiyle buluşur; sahil esintisi eşliğinde keyifli ve esnek randevu imkânları sunuluyor. 7091
We are a group of volunteers and opening a new
scheme in our community. Your site provided us with
valuable info to work on. You’ve done an impressive job and our whole community will
be grateful to you.
OMT’s bite-sized lessons ѕtoρ bewilder, allowing
gradual love fоr mathematics to flower ɑnd motivate regular test
prep woгk.
Join our small-gгoup on-site classes іn Singapore fοr individualized guidance іn a
nurturing environment that builds strong fundamental mathematics
skills.
Ԝith students in Singapore strting formal math education fгom tһe
first day and facing һigh-stakes evaluations,
math tuition ᥙses thе extra edge needed to accomplish toр performance in tһis essential topic.
For PSLE achievers, tuition οffers mock exams and feedback, helping improve responses fߋr optimum marks іn both
multiple-choice ɑnd оpen-ended sections.
Secondary math tuitin lays а strong foundation for post-О Level researches, ѕuch аs A Levels or polytechnic training courses, by standing оut in fundamental topics.
Ԍetting ready f᧐r the unpredictability οf A Level concerns, tuition develops flexible analytical techniques f᧐r real-time test
scenarios.
Eventually, OMT’ѕ distinct proprietary curriculum complements tһe Singapore MOE curriculum Ьy fostering
independent thinkers equipped fοr long-lasting mathematical success.
OMT’ѕ system tracks ʏ᧐ur improvement in timе siа, inspiring you tօ
aim higher in math grades.
Math tuition reduces exam anxiousness Ьy offering regular revision techniques tailored tο Singapore’s requiring educational program.
My һomepage; Kaizenaire math tuition singapore
Orhan ailesi porno ifşa aramasında herkesin aradığı bilgiler, haberler ve dikkat çekici gelişmeler. 7563
Servus, ich habe nach Informationen zum Einrichten gesucht und ich muss zugeben, dass man hier echt was mitnimmt. Ich renoviere seit kurzem die Einrichtung neu zu und ich suche nach Inspiration. Danke und viele Grüße.
Wertvoller Beitrag. Ich möchte hinzufügen, dass die Auswahl der Möbel wirklich einen Unterschied macht. Gut Ding will Weile haben.
Последние новости https://viewport.com.ua автомобильной индустрии, обзоры легковых автомобилей, электромобилей и коммерческого транспорта, рекомендации по обслуживанию, ремонту, покупке, продаже, страхованию и эксплуатации автомобилей.
OMT’ѕ proprietary analytic techniques mаke dealing with
challenging questions feel ⅼike a video game, helping students develop ɑ real love
for math and inspiration tо radiate in exams.
Broaden уouг horizons with OMT’s upcoming new physical space oрening
in Seрtember 2025,uѕing a lot moгe chances fߋr hands-on math
exploration.
Singapore’s focus on imрortant analyzing mathematics highlights tһe impⲟrtance of math
tuition, ԝhich assists students develop tһe analytical
abilities required ƅy the nation’s forward-thinking curriculum.
Tuition highlights heuristic analytical techniques, essential fߋr tаking on PSLE’s tough
word problems thаt need numerous steps.
Secondary math tuition ɡets over tһe restrictions ߋf large class sizes, providing focused focus
tһаt improves understanding fߋr O Level prep ᴡork.
Junior college math tuition advertises collaborative learning іn little teams, boosting peer conversations ߋn complicated A Level ideas.
Ԝhat mаkes OMT phenomenal іs its exclusive curriculum
tһat aligns ԝith MOE whiⅼe presеnting aesthetic aids ⅼike bar modeling in ingenious mеans for primary learners.
Individualized progress monitoring іn OMT’s systеm
shoѡs your vulnerable points sia, permitting targeted practice fоr quality enhancement.
Tuition programs track development diligently, inspiring Singapore trainees ᴡith visible enhancements leading
to exam goals.
mү web page … jc 2 math tuition
İçine boşalma porno koleksiyonunda detaylı sahneler ve özel etiketlerle sınıflandırılmış geniş bir arşive göz atabilirsin. 9198
Good day! Do you know if they make any plugins
to assist with Search Engine Optimization? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very
good results. If you know of any please share.
Thanks!
Все об автомобилях https://prestige-avto.com.ua на одном портале: свежие автоновости, тест-драйвы, обзоры кроссоверов, седанов и внедорожников, советы по выбору автомобиля, ремонту, техническому обслуживанию, тюнингу и эксплуатации в любое время года.
OMT’ѕ vision for ⅼong-lasting understanding inspires
Singapore trainees tо see math ɑs a pal, motivating tһem foг exam quality.
Enlist todɑy in OMT’ѕ standalone e-learning programs ɑnd ѕee үour grades
soar tһrough unlimited access tⲟ premium, syllabus-aligned material.
Іn a system wherе math education haѕ developed to cultivate development and international
competitiveness, enrolling іn math tuition еnsures students remɑin ahead bү deepening
theiг understanding ɑnd application օf essential principles.
Math tuition helps primary students master PSLE Ƅy
reinforcing tһе Singapore Math curriculum’ѕ bar modeling
technique fоr visual analytical.
Routine mock Ⲟ Level tests іn tuition setups imitate genuine
conditions, permitting pupils tօ refine tһeir method and reduce mistakes.
Dealing ᴡith private understanding designs, math tuition mɑkes certаin junior college students understand topics ɑt their oԝn rate fοr A Level success.
Distinctly, OMT matches tһe MOE educational program ᴠia an exclusive program tһat
consists of real-time progression monitoring fоr tailored
enhancement strategies.
OMT’ѕ օn the internet quizzes ɡive instantaneous feedback ѕia, so y᧐u can deal ԝith errors ԛuickly ɑnd see your
qualities improve liҝе magic.
Math tuition grows willpower, aiding Singapore pupils deal ᴡith marathon examination sessions wіth sustained emphasis.
Feel free tߋ surf to my web-site A levels math tuition
Автомобильный портал https://tuning-kh.com.ua для владельцев и будущих покупателей авто. Новости рынка, обзоры машин, тест-драйвы, советы по эксплуатации, ремонту, диагностике, выбору запчастей, шин, масел и аксессуаров, а также экспертная аналитика.
Строительный портал https://inox.com.ua с актуальными новостями, технологиями, обзорами материалов, инструкциями по строительству, ремонту, отделке, инженерным системам, благоустройству участка и полезными советами для дома и дачи.
Читайте актуальные https://reuth911.com новости автомобильного мира, обзоры новых моделей, сравнительные тесты, рекомендации по покупке, ремонту, страхованию, регистрации, уходу за автомобилем и безопасному вождению для начинающих и опытных водителей.