ntashev
Hi folks,
I'm trying to develop some RiFilters for upresing particles pre render, and was just wondering if someone can point out some algorithms that can fit the task. I don't think that it' s gonna beat Krakatoa or JJ's Particle Porn, for example, but any idea, that can get me going in some direction would be welcome.
<< aut inveniam viam aut faciam >>
Reply 0 0
pshipkov
First thought:

at the first frame of the simulation randomly place new particles within the radius of each original particle. After that start transferring properties from the original to the new ones - mostly color, opacity, mass, velocity, ...
Advect the new particles according to mass/velocity/etc.
That's the basics.
Depends on the scatter radius you may loose the outline of the original particle sim. If you want to preserve that build a iso surface and trim the new particles that are outside of it. This way you mimic signed field.

More advanced way is to partition the volume defined by the original particles by using octree/kdtree/voxelGrid. And base  the number of new particles on density of original ones per cell/voxel.

Thinking about this - i may extend the scatter node so we can provide another point cloud on the input and the distribution of the newly created points will respect that.

Reply 0 0
noizfactory
@ntashev : If you haven't seen this already then this link could provide a few pointers.
Reply 0 0
saber
A Library for
Approximate Nearest Neighbor Searching
http://www.cs.umd.edu/~mount/ANN/

very useful library,that come with c++ codes too ,

hope this helps
Reply 0 0
pshipkov
i agree, this is really useful. thanks.
Reply 0 0
Reply