TP - Trace a line to closest particle

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  12 December 2012
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
  12 December 2012
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 December 2012 at 09:42 AM.
  12 December 2012
Yup! works like a charm now! Thanks 3ak, I owe you one
  12 December 2012
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

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
Society of Digital Artists

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

All times are GMT. The time now is 08:07 PM.

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