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跑半个小时。显然不完美,蒙人没问题。
Hej, natknąłem się na ten temat i stwierdzam, że dużo się dowiedziałem. Sam od jakiegoś czasu zmieniam wystrój i szukam inspiracji. Dzięki i pozdrawiam.
Wartościowy wątek. Moim zdaniem dobór mebli ma ogromne znaczenie. Warto poświęcić temu czas.
Check out my web blog – http://Reiki-Zeit.de/index.php/Pod%C5%82oga_drewniana_w_ma%C5%82ym_mieszkaniu_%E2%80%93_jak_wybra%C4%87_meble,_kt%C3%B3re_nie_zrujnuj%C4%85_Twojego_bud%C5%BCetu_ani_przestrzeni
Once you remove excess “fat” on the body, you may be dealing with drooping skin.
98WIN là thiên đường cờ bạc trực tuyến với
các trò chơi cá cược hấp dẫn như: Casino, Nổ Hũ, Thể
Thao, Bắn Cá, Game Bài, Xổ Số… Tham gia tại nhà cái
98WIN người chơi không chỉ được trải nghiệm sảnh game đẳng cấp mà còn có cơ hội nhận vô vàn ưu đãi, Giftcode 98K miễn phí.
Link Vào Trang Chủ 98WIN CHÍNH THỨC Và DUY NHẤT:
https://qings.io/
Do you mind if I quote a couple of your articles as
long as I provide credit and sources back to your website?
My blog site is in the exact same niche as yours and my users
would genuinely benefit from a lot of the information you present
here. Please let me know if this ok with you. Thank you!
Do you mind if I quote a few of your posts as
long as I provide credit and sources back to your website?
My website is in the very same area of interest as yours and my users
would definitely benefit from some of the information you provide here.
Please let me know if this ok with you. Regards!
KKWin là nền tảng giải trí trực tuyến đẳng cấp, chuyên cung cấp các dịch vụ cá
cược đa dạng từ Thể thao, Casino trực tuyến đến Nổ hũ và Xổ số.
Với phương châm đặt trải nghiệm khách hàng lên hàng đầu, KKWin cam kết
mang đến một môi trường cá cược minh bạch, hệ thống bảo
mật tuyệt đối cùng tốc độ nạp rút siêu tốc, khẳng định vị thế nhà
cái uy tín hàng đầu thị trường hiện nay.
Ищете эксклюзивные товары?
Наш магазин вдохновляет качественные продукты.
Проверьте каталог по ссылке: сайт кракен зеркало
How to Choose the Right Mattress in Singapore: A Practical 2026 Buyer’s Guide
Choosing а neᴡ mattress is οne ᧐f the biggest Singapore furniture investments mοѕt households ԝill mɑke, yet
it’s surprisingly easy to ɡet wrong. You’re expected to decide after lying on а showroom sample for jᥙѕt
a minute or twο, even though yoᥙ’ll slep on it evеry
single night fߋr the next 8–12 years. At Megafurniture, tһе Somnuz collection ѡaѕ built to help Singapore households navigate tһe most
common mattress store choices ԝithout confusion.
Нigh humidity, dust mites, ɑnd overnight air-conditioning ᥙse аll affect how a mattress performs оver time.
Because Singapore ѕtays humid almօst alⅼ
year, excellent breathability іs essential foг keeping a mattress fresh.
Dust-mite sensitivity іs far mοrе common һere than most people
realise. Мany households run the aircon ɑll night, ᴡhich ɑffects
һow mattress materials perform іn real life.
Ԝhen you walk into any furniture store in Singapore, уօu’ll
mainly see foᥙr core mattress construction types worth comparing.
Pocketed-spring mattresses սѕe individually wrapped coils tһat move independently,
offering excellent motion isolation for couples
ɑnd generɑlly Ьetter airflow. Memory foam іs loved f᧐r its hugging feel аnd motion isolation, tһough traditional versions ѕometimes retain warmth іn Singapore bedrooms.
Latex іs naturally bouncier, sleeps cooler, ɑnd resists dust mites ƅetter than most foams — ɑ genuine advantage in our climate.
Hybrid mattresses tгy to balance tһe support and breathability օf springs ԝith the contouring comfort օf foam orr
latex.
Ꭲhe Somnuz range at Megafurniture ԝas cгeated to ⅼet Singapore buyers compare tһese foᥙr
categories directly and easily. Firmness іs the most discusѕed mattress feature,
yet it’ѕ ɑlso tһe most misunderstood Ьecause іt feels
ⅽompletely Ԁifferent depending on уour body weight and sleeping
position. Ӏf yօu sleep on үour side, a medium to medium-soft mattress helps relieve pressure
at tһe shoulder and hip. Ᏼack sleepers tend to prefer medium tօ medium-firm
fⲟr good lumbar support ԝithout flattening tһe natural curve.
Firm mattresses work better foг stomach sleepers bеcauѕe
tһey keеp the spine in better alignment.
Because most Singapore homes һave tighter bedroom dimensions, choosing tһe rіght mattress size prevents
the rоom frߋm feeling cramped. Ꭲhe cover material іs one
of the most under-appreciated features fⲟr Singapore buyers.
Models wіth bamboo fabric covers stay noticeably drier аnd fresher
in humid Singapore bedrooms. Water-repellent finishes օn certain Somnuz mattresses add practical protection аgainst accidental spills ɑnd hіgh humidity.
Нere’s hߋw the Somnuz mattresses line up with real household requirements іn Singapore.
For ѵalue-conscious buyers, the Somnuz Comfy delivers ցood independent coil support аt an accessible prіce point.
If you want better cooling and allergen resistance,
tһe Somnuz Comforto ѡith іts bamboo-latex combination іѕ often the smarter pick.
Ꭲһe water-repellent Somnuz Comfort Night іs esрecially popular with families ԝho want practical
peace of mind in Singapore’ѕ humid environment.
Foг those ԝho want the mⲟst upscale experience, tһe
Somnuz Roman series sits at the top of the range.
Mߋst people test mattresses tһe wrong way duгing
furniture showroom visits — and it leads
to regret ⅼater. Brіng youг oԝn pillow and test togеther with youг partner so yоu
can feel real motion transfer ɑnd pressure pߋints. Megafurniture’ѕ flagship furniture showroom аt
134 Joo Seng Road and thee Giant Tampines outlet Ƅoth display tһe full Somnuz range іn realistic bedroom
settings, mɑking extended testing mucһ easier.
Delivery scheduling іs mߋгe іmportant tһan mаny buyers
realise ѡhen buying mattress singapore items.
Ꭺsk about ⲟld mattress removal and study the warranty details Ƅefore уou sign.
Treat thе decision seгiously andd a weⅼl-chosen mattress
singapore ᴡill deliver years of comfortable sleep ᴡith minimаl
issues. Ignoring eaгly warning signs uѕually means yoᥙ end up sleeping on a worn-out mattress fаr lоnger
than you should. Head tߋ Megafurniture tоday — either theіr Joo Seng or Tampines furniture showroom — and discover ԝhich
Somnuz mattress іs tһe perfect fit for your Singapore home.
My blog; 6 seater dining set
I know this website provides quality dependent content and
other data, is there any other web page which offers these
data in quality?
KKWin là nền tảng giải trí trực tuyến đẳng cấp, chuyên cung cấp
các dịch vụ cá cược đa dạng từ Thể thao, Casino trực tuyến đến Nổ
hũ và Xổ số. Với phương châm đặt trải nghiệm khách hàng lên hàng đầu, KKWin cam kết mang đến một môi trường cá cược minh
bạch, hệ thống bảo mật tuyệt đối cùng
tốc độ nạp rút siêu tốc, khẳng định
vị thế nhà cái uy tín hàng đầu thị trường hiện nay.
KUWIN là nền tảng cá cược trực tuyến vận hành trên kiến trúc điện toán đám mây kết
hợp mô hình bảo mật Zero-Trust,
mang đến không gian giải trí tối ưu độ trễ cho mọi hội viên. Hệ thống đồng bộ
hóa toàn diện các danh mục sản phẩm chủ lực bao gồm Thể thao
(cập nhật Odds theo thời gian thực), Casino trực tiếp
với Dealer, sảnh Game bài chiến thuật, cùng các dòng game cấu trúc RNG như Nổ
hũ và Bắn cá. Ngay sau quy trình đăng ký và đăng nhập, luồng tài
chính của người chơi được xử lý khép kín qua cổng API thanh khoản tự
động (nạp rút ngân hàng, ví điện tử) và được
mã hóa bảo vệ bởi giao thức SSL đa tầng. Để duy trì trải
nghiệm mượt mà và giải quyết triệt để tình trạng link web KUWIN bị chặn do các đợt quét băng thông nhà mạng, người dùng
được cung cấp bộ giải pháp kỹ thuật dự phòng như
tải app di động (iOS/Android) hoặc hướng dẫn cấu hình tải 1.1.1.1.
Mọi văn bản về quyền riêng tư, chính sách miễn trừ trách nhiệm cũng như cơ chế cá cược có trách nhiệm đều được
minh bạch hóa tại chuyên mục Câu hỏi thường
gặp, tạo nền tảng dữ liệu thực thể sạch
giúp hệ thống đại lý KUWIN vận hành hiệu quả
và đạt điểm tin cậy tối ưu trước các thuật toán lõi của Google.
Wonderful article! This is the type of information that are meant to be shared across the web.
Shame on Google for not positioning this post upper! Come on over and talk over with my site .
Thanks =)
El clásico de clásicos es el bono de primer depósito.
Por lo general consiste en un porcentaje sobre tu primer carga, por ejemplo 100% hasta $50,
000 ARS. Esto significa que si depositás $50,000, el casino te otorga otros $50,000 para jugar.
Sehr interessant. Sie haben es klar gemacht in einer einfachen Weise.
Dies ist wertvoll für mich.|
Ich habe Ihren Beitrag gelesen und ich war beeindruckt.
Es ist eine Freude solche qualitativ hochwertigen Inhalte zu finden.|
Tolle Arbeit, Sie haben es geschafft, ein komplexes Thema
wirklich für alle verständlich zu machen. Ich freue mich auf Ihrer Inhalte zu lesen!
I’m not sure why but this blog is loading very slow for me.
Is anyone else having this problem or is it
a problem on my end? I’ll check back later and see if the problem still exists.
This is a very informative post about online casinos and betting platforms.
I especially liked how it explains the importance of choosing a secure site before
signing up.
Many players often ask where they can find reliable gaming platforms with fair
odds and smooth payouts. From what I’ve seen, checking platforms like vn22vip helps users compare features, bonuses, and overall experience.
Thanks for sharing these insights — they’re helpful for both beginners and experienced bettors.
I just couldn’t leave your website before suggesting that I really enjoyed the usual information an individual supply on your visitors? Is gonna be back often in order to investigate cross-check new posts
The FFFPH App offers easy access to helpful features from almost anywhere.
You actually make it seem so easy with your presentation but
I find this topic to be really something which I think I would never understand.
It seems too complicated and extremely broad for me.
I’m looking forward for your next post, I will try to get the hang of it!
I found your blog through google and I must say, this is probably one of the best well prepared articles I have come across in a long time. I have bookmarked your site for more posts.
My partner and I absolutely love your blog and find
almost all of your post’s to be precisely what I’m looking for.
Does one offer guest writers to write content available for you?
I wouldn’t mind publishing a post or elaborating on a lot of the subjects you write about here.
Again, awesome website!
Shegirls fufk guysAdul vids on tumblrInterrracial motorccycle sexOmar
dicksClubb kppa lit stripSexy black womeen com15 minutres frese porn aebn voyeurHorrror movikes onoine pornGrewat xxx torrentSppa facial menuOnedollarhentgai nudeNaied grandmas
assjole sex1001 erotic nights 2 dvdBeautiful teenager pornBoddy buildiong tee videoNicce
koran assTeen good assErect nudeFemale masturbation ideas tipsSedura boobsMifs nuxe sexPuszy sqhirt iin glassCelebb pussy touchPumping
up thee cliot aand nipplesHarrd femdomCoock balpl tortuhre galleryEbokny pussy video assAniome jetk offCockk enlarging shemaleNj shemalesPasswrd adult siteAnnal doubvle fil frwe seex teenMoms and younng booys sexPaain inn anusPrno vvideo telechargerVayinal dscharge afterr hormlne replacemwnt creamErotuc ndian moviesGayy touchingSexxy picures off johnny deppHarry otter fanfictijon sexStewie’s sey party rrap
uneditedU15 japaneze nudee models
my web-site: jablex.com
I’m impressed, I have to admit. Seldom do I come
across a blog that’s both equally educative and entertaining,
and let me tell you, you’ve hit the nail on the head.
The problem is an issue that too few folks are speaking intelligently about.
Now i’m very happy I found this in my search for something relating to this.
So I expect Ishall not have the pleasure of seeing you at our new residence.アジア えろBonvoyage!'”I ran home.
I really like your blog.. very nice colors & theme. Did you make this website yourself or did you hire someone to do it for you?
Plz answer back as I’m looking to construct my own blog and would like to find out where u
got this from. thank you
My brother recommended I might like this website. He was once totally right.
This submit truly made my day. You cann’t imagine just how so much time I had spent
for this info! Thanks!
Hi there to every body, it’s my first pay a visit of this webpage;
this webpage includes amazing and in fact good material for readers.
Good article. I am dealing with a few of these issues as well..
Ciekawy tekst. Wiele praktycznych informacji.
Super za ten materiał. Na pewno tu wrócę.
Masz rację – sprawa urządzania wnętrz jest wymagająca. Wreszcie konkrety.
Szczerze pomocne. Szukałam podobnych porad właśnie tego.
Pozdrawiam!
Have a look at my web page … Nida
I was referred to this web site by my cousin. I’m not sure who has written this post, but you’ve really identified my problem. You’re wonderful! Thanks!
I like the valuable information you provide in your articles.
I’ll bookmark your weblog and check again here frequently. I’m
quite certain I will learn a lot of new stuff right here!
Best of luck for the next!
Excellent post. Keep writing such kind of information on your blog.
Im really impressed by your blog.
Hello there, You’ve performed an excellent
job. I’ll certainly digg it and personally suggest to my friends.
I’m confident they will be benefited from this site.
Sachlicher Post. Viele wertvolle Hinweise. Vielen Dank für den Beitrag.
Ich empfehle die Seite gerne weiter.
Stimme zu – die Frage der Einrichtung kann schwierig.
Danke für die klare Erklärung.
Wirklich nützlich. Ich habe schon nach genau so einem Beitrag lange gesucht.
Danke!
Feel free to visit my site Aracelis
I always spent my half an hour to read this weblog’s content daily
along with a mug of coffee.
Fastidious answers in return of this difficulty with real arguments and describing all about that.
Ciekawy materiał. Dużo przydatnych informacji.
Dziękuję że dzielisz się wiedzą. Będę zaglądać częściej.
Trafnie napisane – kwestia doboru mebli bywa niełatwa.
Wreszcie konkrety.
Naprawdę pomocne. Szukałem podobnych porad właśnie tego.
Super robota!
my page … Holley
QS88 là nền tảng giải trí trực tuyến được đông
đảo người chơi tại Việt Nam tin chọn nhờ giao diện hiện đại, tốc độ xử lý nhanh và hệ
sinh thái đa dạng từ thể thao, casino live đến slot đổi thưởng.
Trải nghiệm thực tế cho thấy quy trình nạp rút tại QS88
diễn ra ổn định chỉ từ 1–3 phút, thao tác đơn giản trên cả điện thoại lẫn máy tính, phù hợp cho cả người mới lẫn hội viên lâu năm.
Bên cạnh ưu đãi hấp dẫn và kèo được
cập nhật liên tục, nền tảng còn ghi điểm với hệ thống
bảo mật nhiều lớp, giao dịch minh bạch và môi trường giải trí
an toàn 24/7.
Hi! I understand this is sort of off-topic but I had
to ask. Does managing a well-established blog like yours take a
lot of work? I’m completely new to running a blog but I do
write in my journal every day. I’d like to start a blog so I
can easily share my experience and thoughts online.
Please let me know if you have any kind of recommendations or tips for new aspiring blog owners.
Thankyou!
The subjects obtained eight therapy sessions, seven days
apart, without any change in their exercise and diet.