Well metaballs are simply based on distance to point cloud. If I would implement distance to mesh it would be the same things as dimos iso plugin. However computing distance to triangle cloud (mesh) isn’t that easy, when it has to be very very fast. If you guys run into some nice algorithm to do it fast I’d be happy to implement it.
simmsimaging, I’ll check that on monday when I get back to work. Using DR through VPN is pretty slow.
Thanks for the plugin, you are a genius!
In these days I’m playing with pflow and and I can say that your plugin can change the way to render liquids.
The geometry generated is like a cream, is very hard to control the elasticity or relaxation (like realflow does). Do you think is possible to add this feature?
Unfrotunately since the plugin is not working with a mesh, you can’t relax it. The only way to get similar effect is to play with the Threshold value and Radius. Using high threshold (2.0 for example) and large radius should give you something relax-like but its not the same thing.
You can also try the Use average mode and play with cutoff/trim values.
I still haven’t found any problems with the DR. I wonder if the problem might be pflow not computing Size for the particles…
I’ve now managed to complete the 1.11 version and I’ll just have to compile it for all max versions.
New features currently:
- Support for simple particle systems (basically all particle systems that come with max)
- Supports >1.0 values in texture strength in Multiply mode
- Slightly faster (Sorting bounding boxes along the ray is no longer brute force, this is most noticable with >1 000 000 particle counts)
I can’t think of anything else to add, fix or improve so it should also be the final version.
So I asume this bug is not related to the metaballs but has something to do with pflow and different machine setups.
EDIT: With 10 000 000 particles the render time decreased from 34 seconds to 27 seconds. This is a lot considering the preperation time (which is resolution independent) is quite long with that many particles. The new BB sorting affects only the actual rendering process so it might actually cut the rendertimes by 25-50% in some rare situations. I didn’t bother doing any extensive testing on it.
It might be possible to alter the metaball algorithm to produce something like that. However it would be insanely slow. First the algorithm itself would be heavier and second the huge number refractions to get anything near that would completly kill the rendertimes.
Hmm…
But we can limit number of refraction by material “Max depth” or renderer “Max transp. levels” parameters?
If only BerconMetaball could generate this kind of geometry…
that wouldnt work i guess as you’d get a lot of flatspots instead of deep foam (after max refractions are reached exit color is used). Anyways. Why not create that kind of geometry using PFlow directly ?