COPYTOPOINTS with growing pointcount

   454   2   0
User Avatar
Member
2 posts
Joined: 3月 2022
Offline
Hello all,

I am currently trying to copy to points onto an advected spline simulation. The curves are growing and the point count is continuously changing as the splines are being resampled.

When I copy the object onto the points, the objects are constantly shifting/moving/jittering due to the new point count every frame. Is it possible to copytopoints and have each copied object stick to its designated point even as the splines grow bigger and more points are added?

Any help is appreciated

Thanks!
User Avatar
Member
2 posts
Joined: 8月 2020
Offline
You can create an ID attribute on your points :
Image Not Found
This one will never changed

Or you can simply use a group transfer :
Image Not Found

Attachments:
IdMaker.JPG (21.3 KB)
GrpTransfer.JPG (8.5 KB)

User Avatar
Member
9078 posts
Joined: 7月 2007
Offline
First of all make sure your Resample has
- Even Last Segment Same Length: Off
- Maintain Last Vertex: On

So that the segment length dont jitter

Then it's all about attributes on those points

Are you computing those during the sim or post sim?
Are they supposed to evolve aligned to curves or randomized?

If post sim you can base randomness of your instancing attributes based on point's prim vertex number per curve, rather than on global @ptnum and everything should be stable, for example:
i@id = vertexprimindex( 0, @vtxnum ) + 1000 *  @primnum;

If during sim the same applies, just instead of generating copy them from the same curve from matching prim vertex number and generate just on not matching ones
That will allow you to update and evolve such attribs during the sim
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links