CGTalk > Software > Autodesk 3ds max > Plugins & Add-ons
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 12-06-2012, 12:48 AM   #1
Krispo
New Member
portfolio
Eduardo Aguirre
Particle dude
Guadalajara, MX
 
Join Date: Jun 2007
Posts: 29
TP - Trace a line to closest particle

Hi guys, I'm currently working on a shot where I need some particles to draw a line between them and the closest particle to them. I've already worked this out, using a Psearch operator and an Iterator for the lines. The issue is that I need the particles to connect to the particle closer to itself and never break that link, even if a new particle comes closer, in wich case, it would create a new link between itself and the new closest particle, but all the old conections should remain.
I've attached an image with the general idea, I hope I made myself clear. Any ideas on how to solve this issue would be greatly appreciated

http://i1307.photobucket.com/albums...articleLine.jpg
 
Old 12-06-2012, 09:09 AM   #2
3ak
Know-it-All
 
Join Date: Dec 2002
Posts: 495
you can store nearest particles as references and then in every frame create lines of points (iterator node) between particle and all its references.

Last edited by 3ak : 12-06-2012 at 09:42 AM.
 
Old 12-06-2012, 02:50 PM   #3
Krispo
New Member
portfolio
Eduardo Aguirre
Particle dude
Guadalajara, MX
 
Join Date: Jun 2007
Posts: 29
Yup! works like a charm now! Thanks 3ak, I owe you one
 
Old 12-06-2012, 02:50 PM   #4
CGTalk Moderation
Expert
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,478
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 03:44 PM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.