XML Feeds

.

[jitter] Re: jit.matrix help

Robert Ramirez rob at robtherich.org
Tue Apr 1 12:12:15 MDT 2008


iter doesn't know or care about differentiating particles. all it does is spit the values contained in a matrix out, one after the other.

the jit.p.* objects differentiate particles based on particle id, and they store that id in the first plane of the matrix.
so for three particles, it's something like this:

0 | life0 | x0 | y0 | z0
1 | life1 | x1 | y1 | z1
2 | life2 | x2 | y2 | z2

this is a 5 plane 3x1 matrix. the p objects would actually store it as a 3x2 matrix.  the second dimension is the previous values from the previous iteration of the system.

you can retrieve the particle id by using the left most outlet from the unpack.


More information about the jitter mailing list