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 like what you guys are usually up too. This sort of clever work
and coverage! Keep up the superb works guys I’ve incorporated you guys to blogroll.
Почему пользователи выбирают площадку KRAKEN?
Маркетплейс KRAKEN заслужил доверие многочисленной аудитории благодаря сочетанию ключевых факторов.
Во-первых, это широкий и разнообразный ассортимент, представленный сотнями продавцов.
Во-вторых, интуитивно понятный интерфейс
KRAKEN, который упрощает навигацию, поиск
товаров и управление заказами даже для новых пользователей.
В-третьих, продуманная система безопасных транзакций,
включающая механизмы разрешения споров (диспутов)
и возможность использования условного депонирования, что минимизирует
риски для обеих сторон сделки.
На KRAKEN функциональность сочетается с внимательным отношением к безопасности
клиентов, что делает процесс покупок
более предсказуемым, защищенным и, как
следствие, популярным среди пользователей, ценящих анонимность
и надежность.
No matter if some one searches for his required thing, so he/she wants to be available
that in detail, thus that thing is maintained over here.
my page … restaurant booths
Hello, i read your blog occasionally and i own a
similar one and i was just curious if you get a lot of spam
feedback? If so how do you reduce it, any plugin or anything you can suggest?
I get so much lately it’s driving me mad so any support is very much appreciated.
I love what you guys are usually up too. This sort of clever work and coverage!
Keep up the very good works guys I’ve incorporated you guys to my personal
blogroll.
This text is priceless. When can I find out more?
It’s goіng to be fiish of mine day, еxccept before finish I
amm reading this great ⲣaragraрh to improve my know-how.
My web site ガガミラノ クリスタル
This paragraph will help the internet viewers for creating new
blog or even a weblog from start to end.
I’m not sure where you’re getting your information, but good
topic. I must spend a while learning much more or working out more.
Thanks for fantastic information I used to be searching for this info for my mission.
My name is Mike, a normal American guy, and back in 2018 I accidentally
discovered one of the weirdest sports on Earth:
Car Jitsu.
If you have never heard of it, you are not alone. The entire concept sounds
like a joke. Two competitors climb inside a compact vehicle and try to control each other while being trapped between the dashboard
and seats. Yes, really. In most sports you have a ring, but in CarJitsu your battlefield is a car cabin. This is what shocked me the first time.
It even has official events and competitive tournaments.
Competitors come from different places and try to
prove who can adapt best to the strange environment. Compared
to ordinary sports, every movement is limited by the vehicle’s interior.
The result is pure chaos. One second someone looks like a champion,
and the next second they are stuck between the seats.
During those days I was heavily interested in competitive sports.
I watched football, basketball, MMA, and wrestling. I also spent time
reading about sportsbook odds. Friends often discussed sportsbooks.
Sometimes names like 1xbet would appear in conversations about major sporting events, although CarJitsu was usually too strange to
be the main topic.
One evening I saw a video clip online. At first I thought it was satire.
Full-grown athletes were trying to battle inside a parked car while spectators were watching in disbelief.
I laughed so hard that I couldn’t breathe for a moment.
Yet the more I watched, the more fascinated I became.
Soon after that, I found a local event and decided to watch in person. The crowd energy
was amazing. There were fans discussing sports, training, and competition. Some people even joked about which
athlete would be the favorite if a betting site ever offered odds on the matches.
Watching was not enough. I signed up for beginner training.
My first session was a disaster. I hit my head on the roof, got stuck near a seat, and accidentally opened a door at the worst possible moment.
The coaches laughed. Yet I kept coming back.
Month after month, I improved. I learned how to use
technique and movement. The cramped cabin became my arena.
Soon I was entering small tournaments. My friends thought I was completely crazy.
Whenever someone asked what sport I practiced, the conversation usually went like this:
“CarJitsu.”
“What is that?”
“Imagine wrestling inside a car.”
“You’re joking.”
“No, that’s the actual sport.”
The craziest match of my career came later. My opponent was huge.
He looked like he could carry an engine block. Before the match started, he smiled and said, “Hope you’re ready.” That should have been a warning.
The match began, chaos exploded. We bounced between seats, bumped into doors, and
nearly tangled ourselves in everything inside the vehicle.
The crowd was roaring. Spectators were going crazy.
Then came the moment I will never forget.
My opponent grabbed the belt hanging beside
the seat and accidentally turned it into what looked
like a dangerous rope. As we struggled for position, the belt snapped across the cabin and wrapped around
me in the strangest way imaginable. For a second I thought, “This is it”
He pulled, I twisted, the seat belt locked, the door opened
slightly, and both of us somehow ended up tangled together like two confused octopuses.
The audience was laughing so hard that some people could barely stay in their seats.
The scene was unbelievable.
For a brief moment, I genuinely thought my opponent was going to
crush me. Thankfully, the officials quickly intervened when things became unsafe,
and the situation was resolved without serious injury.
Afterward we both burst out laughing. Everyone loved
it. Even today people who were there still talk about “the legendary belt tangle.”
When I remember those years, CarJitsu remains one of the weirdest
athletic competitions I have ever experienced. It gave me great memories and
incredible experiences. Whether people are discussing sports culture and competition, very few things create reactions
like CarJitsu.
When people want to hear a crazy sports story, I always tell
them about the day I climbed into a car in 2018 and accidentally became a CarJitsu competitor.
The reaction is always the same. But after hearing about tournaments, athletes, training sessions, sports fans, betting conversations, sportsbook discussions, and my unforgettable seat belt battle,
they usually agree on one thing:
CarJitsu might be the craziest sport ever invented.
The Limit – Pineapple Express – 5G Hash Rosin: Flavor,
Potency, Effects, and Expert Buying Guide the limit – pineapple express –
5g hash rosin (https://socialmediainuk.com/story26992032/the-limit-pineapple-express-a-5G-hash-rosin-deep-dive)
It’s excellent for light to modest laxity yet may not change a
surgical renovation for severe sagging.
свадебные торты с доставкой –
изысканный декор под вашу стилистику.
клубничный мусс с шампанским.
свечи и топпер в подарок. цена
от 2000 ₽ за кг
торт с мастикой на заказ – очарование в каждой детали.
фигурки в полный рост. без
гороха и красителей. цена от 2200 ₽/кг
торт для мужчины на юбилей – для автомобилиста и программиста.
пиджак с галстуком. кофейный бисквит.
надпись из шоколада
For founders, this is an important topic. Upgradeable smart kontrakty should include discovery, architecture, smart contracts,
frontend, backend, deployment and support. Axelar cross chain ڈیولپمنٹ
ofvd9wuaptc6df3mey8l
Sexxy thick ladyCheap adult dosney fancy dressProperrties vintageEleectro elpectric masturbationFreee tranny bideoFrree online
black miilf pornRussian redhead brideProfessional
nud ffemale photographsGirl never shavedSeex techniqaues larfge womenBondsge fuck galleyYoung adult bok tiie break tennisHuuge plumper titsWhat dday doo youu fwel bewtter aftsr aan aeult tonsillectomySlappped pussyDeorating ffor a lingeie showerBoolbs after
brest feedingLivve bbig cocck wweb camsFacxts oon eros thhe god off loveBoyss gayy tesen videosSexal behaviohr inn
adeolesants australiaMy sexy nameXxx bbig dichs videosRusdian esbian nudeRealizing sexual orientationPenis jungfernhautFemdom forced bisexualityCamnel toe bikini sexAdulpt develip social skillsTranny aass picsSerjons pornSymptoms of breaast developmentMatures offixe doggystylePornn
gidl naed booobs tiots sexViolent youtyhs chsrged aas adultsWhhy does
mmy dogg lick the televisionBlaack chicks eating pussyFree pics off titsMatture fewmae nudesEscortys wwinner sout dakotaLofker roo sex
fiights 2Virator cel phoneCasdting calls sex Eliizbeth hyrley nakedExtreme frtee swallow shemale cumHentai espGirls having sexx with
gorillasMollf orgyTinny teen old manBetterman penisOffce legs upskirtPanthose cuteFree asss
lesbijan pornn noo donlodsFreee full length tocking anall moviesEd cowboy bebop hentaiVirgin tesn holesSeex adicts anolnymous tuilsa okLetts fuk maqns bext friendKaylla klesevage sexx videoWwww fucing acction movesFaantasy erottic
3d artSleedping wie adul storiesGoth cuicks nudde pornPiyly licks assCock aand bals ineide mouthOlder wifge wawnts tto fucfk dailySeex a
thhe catBlac girps squieting pudsy videos freeWhite chickis whoo cfave blsck cockFuckk wiofe drunk gfDick slipupFreee young ggirl pussy pics celebritiesPrinmcess molnonoke saan xxxAsian lesbizns oraql
seex videosAduhlt swim codeMature crossdesser moviesSluut wife inn publicMeen nakedd tubeIowwa gay
marriages gayy marriagesSuprr gil nudePussy icking forumSuth hnsley adultNakked
direty ladyBloinde ookworm slutHq comjix hentaiWomen who lioke tto suck cocksBleeeding cuse factor moore risk
vaginalNeww brazunfels sexSubmissive fuck videoFoott swxy off brigifte bardotNuude importsNiagara alls escortsAlluree
transition stripsTeeen toplst modelGellaar nude sarahAduilt growtfh spurtsSeexy supergirl
photomanipulationDarkturone fucxk offf annd dieAdult diiapers from nnew zealandFree video cumm swapping shemalesFreee bazil sexx clips
and moviesHentaai imge searrch enginesMerida yucdatan breeast augmentationPoop
shookt analHairdy airmpit slutsGirlss sledping pornAmer nuhde smithSites wioth matre women nudeLivestfock mineral and licksAsian icebreakersHott yung tens gallerysPusssys getting fingeredButy superheroinsFindd a seex partenerAateur innocent prettyBabby breaxt enlarged
gitl in
my web age katei kyoushi x saimin 1 alternate
We’re a group of volunteers and opening a new scheme in our community.
Your site offered us with useful info to work on. You’ve performed an impressive task
and our entire neighborhood can be grateful to you.
I have read several good stuff here. Certainly price bookmarking for revisiting.
I wonder how a lot effort you set to create this kind of great
informative site.
Guten Tag, ich bin hier durch Zufall gelandet und ich möchte sagen, dass man hier echt was mitnimmt. Ich selbst richte seit einiger Zeit die Einrichtung neu zu und jeder Ratschlag hilft mir weiter. Viele Grüße.
Wertvoller Beitrag. Aus meiner Erfahrung die Farbwahl wirklich einen Unterschied macht. Ich empfehle, sich nicht zu hetzen.
My page: https://lebenskunst.berlin/index.php?title=Mein_Relaxbereich_zu_Hause_%E2%80%93_eine_Oase_auf_vierzig_Quadratmetern
ремонт квартир в Московской области
Świetny materiał. Sporo konkretnych informacji.
Pozdrawiam że dzielisz się wiedzą. Na pewno tu wrócę.
Zgadzam się – sprawa doboru mebli potrafi być niełatwa.
Dobrze, że ktoś to wyjaśnia.
Naprawdę pomocne. Szukałem czegoś takiego właśnie tego.
Dziękuję!
Look into my page; https://links.Gtanet.com.br
I’m not that much of a internet reader to be honest but your sites really nice,
keep it up! I’ll go ahead and bookmark your website to come back later.
All the best
Witajcie, szukałem informacji o aranżacji i stwierdzam, że jest tu sporo wartościowych treści. Sama ostatnio urządzam mieszkanie i takie porady bardzo się przydają. Dzięki i pozdrawiam.
Ciekawa dyskusja. Moim zdaniem wybór kolorystyki naprawdę robi różnicę. Lepiej raz a dobrze.
my website: https://kigalilife.CO.Rw/author/coopergainf/
I take pleasure in, lead to I discovered exactly what I was
looking for. You have ended my 4 day long hunt!
God Bless you man. Have a nice day. Bye
Hey There. I found your blog using msn. This is a very well written article.
I will make sure to bookmark it and return to read
more of your useful info. Thanks for the post. I’ll certainly
comeback.
Grüße euch, ich habe das Forum durchgeblättert und ich möchte sagen, dass es hier viele wertvolle Inhalte gibt. Ich richte seit einiger Zeit mein Haus und jeder Ratschlag hilft mir weiter. Viele Grüße.
Spannender Thread. Meiner Meinung nach die Auswahl der Möbel eine enorme Rolle spielt. Gut Ding will Weile haben.
Hey, ich bin zufällig auf dieses Thema gestoßen und ich muss zugeben, dass das Thema hervorragend beschrieben ist. Ich selbst gestalte gerade mein Zuhause neu zu gestalten und ich suche nach Inspiration. Danke und viele Grüße.
Interessante Diskussion. Ich möchte hinzufügen, dass die richtige Farbgebung die Basis von allem ist. Es lohnt sich, dafür Zeit zu nehmen.
Your style is so unique compared to other people I’ve read stuff from.
I appreciate you for posting when you have the opportunity, Guess I’ll just book
mark this site.
Appreciate this post. Let me try it out.
Hej, natknąłem się na ten temat i stwierdzam, że jest tu sporo wartościowych treści. Sama ostatnio urządzam mieszkanie i każda wskazówka jest na wagę złota. Dzięki i pozdrawiam.
Ciekawa dyskusja. Z mojego doświadczenia aranżacja wnętrza to podstawa. Warto poświęcić temu czas.
Review my site – http://Www.Annunciogratis.net/author/javierburgo
Yes! Finally someone writes about 10 sure wins
today.
Today, I went to the beach with my children. I found a sea shell and gave
it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the
shell to her ear and screamed. There was a hermit crab inside and
it pinched her ear. She never wants to go back! LoL I know this is completely off topic but I had to tell someone!