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跑半个小时。显然不完美,蒙人没问题。
Definitely imagine that that you stated. Your favourite reason appeared
to be at the internet the simplest thing to take note of.
I say to you, I certainly get irked even as folks think about issues that
they just don’t understand about. You managed to hit the nail upon the highest and also outlined
out the whole thing without having side-effects , people can take a signal.
Will probably be back to get more. Thanks
Wertvoller Inhalt. Viele hilfreiche Anregungen. Großes Lob für den Beitrag.
Ich empfehle die Seite gerne weiter.
Treffend formuliert – das Thema des Wohnstils ist anspruchsvoll.
Danke für die klare Erklärung.
Wirklich inspirierend. Ich habe schon nach ähnlichen Tipps seit Wochen gesucht.
Danke!
Check out my web blog; Fiona
I was recommended this blog by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about
my problem. You’re amazing! Thanks!
Good post. I study something more difficult on different blogs everyday. It’s going to always be stimulating to learn content material from other writers and observe a little bit one thing from their store. I’d prefer to use some with the content material on my blog whether you don’t mind. Natually I’ll give you a link in your web blog. Thanks for sharing.
Hi, Neat post. There is a problem together with your web site in internet explorer, would check this?
IE still is the market leader and a big component to people will miss
your magnificent writing due to this problem.
Great blog you have here but I was curious if you knew of any user discussion forums that cover the same topics discussed here?
I’d really love to be a part of online community where
I can get opinions from other experienced people that share the same interest.
If you have any suggestions, please let me know. Thanks!
wonderful post, very informative. I wonder why the opposite experts of this sector do not notice
this. You must proceed your writing. I’m confident, you have a huge readers’ base already!
I was excited to discover this web site. I need to to thank
you for your time for this fantastic read!!
I definitely loved every bit of it and I have you bookmarked to
look at new stuff on your blog.
Rzeczowy wpis. Dużo wartościowych inspiracji. Dziękuję za ten materiał.
Zapisuję do ulubionych.
Zgadzam się – sprawa wystroju potrafi być wymagająca.
Dobrze, że ktoś to wyjaśnia.
Szczerze przydatne. Szukałam takich informacji
już jakiś czas. Super robota!
Here is my website … Diendan.Topdichvuketoan.Vn
Good day! This is my first visit to your blog! We are a team of
volunteers and starting a new initiative in a community in the same niche.
Your blog provided us beneficial information to
work on. You have done a extraordinary job!
Новое в категории: https://aromline.ru/index.php?productID=3330
Good website! I really love how it is simple on my eyes and the data are well written. I am wondering how I might be notified whenever a new post has been made. I have subscribed to your RSS feed which must do the trick! Have a great day!
Whats up very cool blog!! Guy .. Beautiful .. Amazing .. I will bookmark your blog and take the feeds also?I’m glad to search out numerous useful information here in the post, we want develop extra strategies in this regard, thank you for sharing. . . . . .
Teen alcohool poisioningArtostic outdlor nudeSexxy beach preferedd scree coverBautys japnese tgpWhaat iis spoted dickBrooke becker nakedStrippers takiing it alll offPaddlinmg
punishmnent videoss ‘wood paddle teen girlHomemade sex tub and home videoPornstar jane from meatholesWatch frr pornNaughty girl take hard cocksVintage bras, vintage girdlesErotic
zemanovaCop demands oral sexWomen height comparison nudeTeaching
teens about chlamydiaAll i want is a slut for chrstimasMandi ass
teen mouthSmith in sex and the cityBook love man sexView ashley tisdale nakedOutercourse pornMexican hot
ass teenChica cum eatingCowgirl movie lesbiansPorn bypass parental controlCum explodes
in girls mouthTypes of cock roachesBmf hardcore 10 plus 1 proteinCouples seduce teens free samplesBreast health center rwmcNaked thie girlsFree
black amateur nude sitesLingerie office episode 1Sexual abuse statute of limitations californiaGeisha
animationsHer bloody pussyLady on hughes net commercial nudeMost explicit erotic photosBinaries
adultWilson nc pussyFeelings for the opposite sexImpregnant pussy fertile violentEva lauren titsPectoral exercises breast liftStriped bass
coloring bookFree painted toes fetishMajor bowe s
amateur hourPorn star mandingo and india summersSin lin pornZara lopez nudeSouth africa durban voyeurCunt licker
pictureFree xxx vids tradeing partnersEdition housemates
pbb teenLegal damage for denied sexual contactMeridian adult browserDick vaderMost
popular vintage wristwatchesYoga pants fuck videos freeIsabelle fuck part 01Aqua teen hunger force zombie
ninja pro amTaste of vaginal dischargeFree naked girls web camsHustlers conventionNattlie portman sex sceneAnal angels 4Amateur
nylons milfBizzare amputee sex vidsUgly milf slutsAnal lick fest choleFree married asian tubeVintage kenmore ironing board motorizedMature
moms videos boysAnal vid oDownload free movie mpeg sexThe
game of world dominationLeihla and sara james handjob videoFree 3d gay virtual
worlds ofvd9wuaptc4qf4a37y6
I was able to find good information from your content.
I’m really loving the theme/design of your site.
Do you ever run into any browser compatibility issues?
A handful of my blog readers have complained about my
site not operating correctly in Explorer but looks great
in Safari. Do you have any advice to help fix this problem?
I read this piece of writing completely on the topic of the resemblance
of latest and previous technologies, it’s awesome article.
OMT’s enrichment tasks beyond the syllabus introduce math’s coutless possibilities, stiring սp passion ɑnd exam ambition.
Experience versatile learning anytime, аnywhere tһrough OMT’s extensive online e-learning platform,
featuring limitless access tο video lessons ɑnd interactive tests.
Ƭhe holistic Singapore Math approach, ᴡhich builds multilayered analytical
capabilities, highlights ѡhy math tuition іs indispensable for mastering tһe curriculum and preparing fоr future professions.
Wіth PSLE mathematics questions оften including real-world applications, tuition provides targeted practice t᧐ develop importаnt thinking abilities necessary for high ratings.
Wіth O Levels stressing geometry evidence ɑnd theses, math tuition ɡives specialized
drills t᧐ make certain pupils ⅽan tackle thеse with accuracy аnd
seⅼf-confidence.
For thosе going after H3 Mathematics, junior college tuition ᥙsеs advanced guidance on research-level
topics to master thіs challenging expansion.
OMT differentiates ᴡith an exclusive educational program tһаt supports MOE web ϲontent via multimedia assimilations, ѕuch as video descriptions ᧐f essential theses.
OMT’ѕ platform iѕ user-friendly οne, so alѕ᧐ newbies cann navigate ɑnd begin enhancing qualities rapidly.
Ꮐroup math tuition in Singapore promotes peer
learning, motivating pupils tо push harder f᧐r remarkable test гesults.
Here is my page; Math tuition P1
Hello, i read your blog occasionally and i own a similar one and i was just curious if you get a lot of spam responses?
If so how do you reduce it, any plugin or
anything you can recommend? I get so much lately it’s
driving me insane so any assistance is very much appreciated.
Chào anh em, LC88 là nhà cái chất lượng với tốc độ nhanh.
Kho game đa dạng từ game bài, khuyến mãi hấp dẫn. Tôi thấy rất ổn, ai đang
tìm nhà cái thì nên thử nhé!
Truy cập:lc88
Toller Text. Reichlich hilfreiche Informationen. Danke für die Mühe.
Ich speichere mir die Seite ab.
Treffend formuliert – der Bereich der Möbelauswahl ist nicht einfach.
Danke für die klare Erklärung.
Wirklich inspirierend. Ich suche schon nach genau so einem Beitrag genau
danach gesucht. Super Arbeit!
Also visit my page David
Primary-level math tuition is vital fⲟr developing analytical skills ɑnd problem-solving abilities needed to tackle tһе increasingly complex ᴡߋгd pгoblems encountered іn upper primary grades.
Іn overcrowded school lessons ᴡhere personal questions
frequently remain unanswered, math tuition pгovides individualised support tο clarify tough
areas like coordinate geometry, vectors, ɑnd basic calculus.
JC math tuition holds special іmportance fⲟr
students targeting demanding degree programmes including engineering, ᴡhere outstanding math achievement serves ɑs a critical entry condition.
Ϝor time-pressed Singapore families, internet-based math
support ɡives primary chldren real-tіme guidance from top tutors tһrough
video platforms, signifiϲantly building confidence іn core MOE syllabus аreas ѡhile
eliminating travel timе.
Viа OMT’s customized curriculum tһat matches tһе MOE curriculum, trainees reveal tһe elegance ߋf logical patterns, promoting ɑ deep
love foг math and inspiration fօr hіgh examination scores.
Prepare fοr success іn upcoming tests ԝith OMT Math Tuition’ѕ exclusive curriculum, ϲreated tօ foster critical thinking ɑnd ѕelf-confidence in every trainee.
As mathematics underpins Singapore’ѕ credibility for
quality in international criteria lіke PISA, math
tuition іs key to opening а child’s potential ɑnd protecting scholastic benefits іn thiѕ core topic.
primary tuition is neⅽessary fοr constructing durability
аgainst PSLE’ѕ difficult concerns, ѕuch аѕ those on likelihood and simple stats.
Secondary school math tuition іs necessary fߋr O Levels аs
it strengthens proficiency ߋf algebraic adjustment,
ɑ core component thаt often showѕ up in test questions.
Individualized junior college tuition assists link tthe
gap fгom O Level tо A Level mathematics, guaranteeing trainees
adjust t᧐ the raised roughness аnd depth needеd.
OMT stands out ith its exclusive math educational program, tһoroughly developed tߋ match the Singapore MOE syllabus Ьy completing theoretical gaps tһat standard
school lessons might overlook.
Taped sessions in OMT’s ѕystem ⅼet you rewind and replay
lah, guaranteeing уou comprehend everү concept foг
excellent examination гesults.
Tuition facilities utilize innovative devices ⅼike visual aids, boosting understanding fօr fаr better retention in Singapore math examinations.
Ꮋere is my blog – math tuition Singapore SRJC math tuition
What’s Taking place i am new to this, I stumbled upon this I
have found It positively helpful and it has aided me out loads.
I’m hoping to give a contribution & assist other customers like
its aided me. Great job.
Great blog here! Also your site loads up
very fast! What web host are you using? Can I get your affiliate link to your host?
I wish my site loaded up as fast as yours lol
Good day! I know this is kinda off topic however ,
I’d figured I’d ask. Would you be interested in exchanging
links or maybe guest writing a blog post or vice-versa?
My website goes over a lot of the same subjects as yours and I believe
we could greatly benefit from each other. If you might be interested feel free to send me an e-mail.
I look forward to hearing from you! Wonderful blog by the way!
Hi there friends, how is the whole thing, and what you would
like to say regarding this paragraph, in my view its in fact awesome in support of me.
Pretty nice post. I just stumbled upon your blog and wished to say that I have truly enjoyed browsing your
blog posts. In any case I will be subscribing to your feed and
I hope you write again very soon!
If you are going for finest contents like myself, simply pay
a visit this web page every day as it provides quality contents, thanks
Naprawdę dobry wpis. Wiele przydatnych informacji. Dziękuję
że dzielisz się wiedzą. Zapisuję do ulubionych.
Trafnie napisane – temat doboru mebli potrafi być niełatwa.
Wreszcie konkrety.
Naprawdę przydatne. Szukałam czegoś takiego już jakiś czas.
Dziękuję!
Here is my homepage Rigoberto
I have been exploring for a little bit for any high-quality articles
or weblog posts in this kind of house . Exploring in Yahoo I eventually stumbled upon this website.
Studying this information So i am happy to convey that I have
a very just right uncanny feeling I discovered just what
I needed. I most indubitably will make sure to don?t disregard this website and provides
it a look on a relentless basis.
Aw, this was an extremely good post. Taking the time and actual effort to generate a great article… but what can I say… I procrastinate a lot and don’t seem to get anything done.
Greetings from California! I’m bored to tears at work
so I decided to check out your site on my iphone during lunch break.
I love the information you provide here and can’t wait to take a look when I get home.
I’m shocked at how quick your blog loaded on my phone ..
I’m not even using WIFI, just 3G .. Anyhow, very good site!
Ciekawy tekst. Sporo wartościowych informacji. Dzięki że dzielisz się wiedzą.
Na pewno tu wrócę.
Masz rację – temat wystroju jest niełatwa. Dobrze, że ktoś to wyjaśnia.
Szczerze przydatne. Szukałam podobnych porad od dawna.
Pozdrawiam!
my blog: Leonardo
Wirklich guter Post. Viele nützliche Informationen. Großes Lob für die Mühe.
Ich warte auf mehr.
Du hast recht – die Frage der Raumgestaltung ist herausfordernd.
Gut, dass es jemand erklärt.
Aufrichtig praxisnah. Ich suche schon nach ähnlichen Tipps genau danach gesucht.
Viele Grüße!
Also visit my web site: http://Www.Kfz-Eske.de
Aw, this was an extremely good post. Spending some time and actual effort to produce a really good article… but what can I say… I procrastinate a lot and never seem to get anything done.
Hilfreicher Inhalt. Zahlreiche wertvolle Hinweise.
Super für die Mühe. Ich werde öfter reinschauen.
Volle Zustimmung – das Thema der Möbelauswahl kann herausfordernd.
Hilfreicher Ansatz.
Aufrichtig hilfreich. Ich war schon nach genau so einem Beitrag seit einiger Zeit
gesucht. Viele Grüße!
Also visit my site :: Deloscampaign.com
Naprawdę dobry materiał. Dużo konkretnych inspiracji. Dziękuję
że dzielisz się wiedzą. Na pewno tu wrócę.
Masz rację – temat urządzania wnętrz bywa trudna.
Dobrze, że ktoś to wyjaśnia.
Bardzo pomocne. Szukałem takich informacji od dawna.
Pozdrawiam!
Feel free to visit my web blog … Lonna
Admiring the commitment you put into your blog and in depth information you provide.
It’s great to come across a blog every once in a while that isn’t the same old rehashed material.
Excellent read! I’ve saved your site and I’m including your RSS feeds to my Google account.
Very great post. I simply stumbled upon your
weblog and wanted to mention that I’ve truly loved browsing your weblog posts.
After all I will be subscribing on your rss feed and
I hope you write again soon!
Chci si trochu více svěřit o vlastní myšlenku,
jelikož v rámci poslední době pozoruji, nakolik se kompletní zdejší scéna ohledně slotů mění vstříc modernějšímu.
Už dříve jsem si předpokládal, iž nejde objevit opravdu poctivé místo, ale současné nástroje lidi v opravdu překvapují.
Před pár dny jsem jen tak procházel různé vychytávky a narazil jsem přímo v rámci zajímavý portál, kde pro mě připadá, že daný spin mama casino app operuje maximálně plynule i bez otravného čekání.
Osobně považuji jako prioritní, by hráč disponoval pod dohledem vlastní interval včetně rozpočet, protože jinak
se z té zábavy snadno stane stres. Taky mě fascinuje, jak promptně v současnosti reagují výplaty do
digitální účty, což představuje masivní skok proti tomu jak situace působilo před pár roků.
Co zůstává vskutku váš nejvíce hraný druh bonusu během startovacím vložení?
Či snad myslíte, že působí vhodnější držet se v blízkosti starých her, či raději lovíte čerstvé tituly okamžitě po vydání?
Dejte vědět, docela mě přitahuje tvůj pohled z terénu!
It’s enormous that you are getting ideas from this post as well as from our discussion made here.
Воронеж, всем привет Ситуация критическая Родственники не знают что делать Таблетки не помогают Короче, врач приехал и поставил систему — нарколог на дом круглосуточно без выходных Приехал через 40 минут В общем, не потеряйте контакты — вызов врача нарколога на дом [url=https://czena.narkolog-na-dom-voronezh16.ru]вызов врача нарколога на дом[/url] Не ждите пока станет хуже Перешлите тем кто в такой же ситуации
신용카드현금화의 정확한 금융적 의미와 작동 원리를 분석합니다.
단기 및 장기카드대출, 포인트 현금화 등 합법적인 신용카드한도현금화 방법 4가지와 DSR 관리
Onestamente seguo questo mondo da un pezzo e devo ammettere che capire quale sia il
portale migliore richiede molta attenzione, soprattutto quando si parla di wagering.
Molti appassionati mi hanno fatto notare che i documenti
vengono controllati con troppa lentezza, ma riflettendoci conviene affidarsi a piattaforme autorizzate come viene descritto su informazioni dettagliate
per giocare in totale sicurezza. Avete mai avuto problemi simili
con i prelievi veloci, e ritenete che conviene sempre sfruttare i bonus di benvenuto?
Marvelous, what a weblog it is! This blog presents useful information to us, keep it up.
What a material of un-ambiguity and preserveness of valuable
knowledge about unpredicted emotions.
Great weblog right here! Additionally your website quite
a bit up very fast! What host are you the use of?
Can I get your affiliate link to your host? I want
my site loaded up as quickly as yours lol
Admiring the time and effort you put into your site and
detailed information you present. It’s great to come across a blog every once in a while that
isn’t the same out of date rehashed information. Wonderful read!
I’ve bookmarked your site and I’m including your RSS
feeds to my Google account.
Everyone loves it when people come together and share thoughts.
Great blog, stick with it!
Hello just wanted to give you a quick heads up and
let you know a few of the images aren’t loading properly.
I’m not sure why but I think its a linking issue. I’ve tried it in two different web
browsers and both show the same results.