Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Might be a dumb question
#6
(03-05-2022, 08:24 PM)snowtv Wrote: That's wonderful news to know. I think that's enough info for me to keep working on my algorithm, but just to "future-proof", is it possible to get the index of a mesh vertex that is the closest to a particle? Maybe I can use the particle's start position to compare with each vertices' position?

Obi stores a particle index for each vertex, since there's always more vertices than particles. This results in efficient storage and efficient mesh updated for either simulation or tearing, since each vertex knows which particle it should pick its position from.

Doing it the other way around is rather inconvenient, since there may be multiple vertices equally distant from a particle. The only way to do that is just iterate trough all particle positions in the blueprint and compare them with the vertex position to find the closest one.

kind regards,
Reply


Messages In This Thread
Might be a dumb question - by snowtv - 28-04-2022, 08:31 PM
RE: Might be a dumb question - by josemendez - 28-04-2022, 11:02 PM
RE: Might be a dumb question - by snowtv - 29-04-2022, 03:58 PM
RE: Might be a dumb question - by josemendez - 02-05-2022, 08:52 PM
RE: Might be a dumb question - by snowtv - 03-05-2022, 08:24 PM
RE: Might be a dumb question - by josemendez - 04-05-2022, 09:48 AM
RE: Might be a dumb question - by snowtv - 05-05-2022, 07:49 PM
RE: Might be a dumb question - by josemendez - 06-05-2022, 08:01 AM
RE: Might be a dumb question - by snowtv - 11-05-2022, 04:37 PM
RE: Might be a dumb question - by snowtv - 12-05-2022, 09:39 PM
RE: Might be a dumb question - by josemendez - 13-05-2022, 09:05 AM