I’m really having some fun with Frost and I think I can use it to crack a long standing problem making foam for beer/liquid tops. I have a result I’m pretty happy with but one thing it could use is a few much larger “bubbles” scattered among the majority.
At the moment I can only affect the size range between 0-99. Is there any way to have a few (some small percentage) be more in the range of 300-400 percent of size? I can experiment with manually adding them, but it would be nice to have them scaling automatically with the rest as I adjust the overall size etc.
The best and most powerful way is to add a Magma modifier to a PRT Loader and set a Radius channel with the distribution you want. For example, you can assign a Radius of 2.0 to all particles except for every Nth where the value could be 5.0. Then you can use the built-in variation option in FROST to scale down the particles by ID, but the general size difference would be coming from the Magma.
Here is the flow which gives every 10th particle Radius of 5.0, all others are set to 2.0:
Sorry - is this method only going to work with Kt MX by any chance? I am still on 1.6 and I don’t see a Magma modifier, and I can’t find some of the nodes you are using in the Magma editor when I try to rebuild it from the png.
The source code I posted won’t work unless you have 2.0, but you should have all operators necessary in 1.6.
Attached is the flow in 1.6 KMF format. BubbleSizeByNth.zip (615 Bytes)
Also, you can rename your Krakatoa folder to “Krakatoa16” and then install Krakatoa 2.0 in Evaluation mode.
This way, you will have both and can simply change your plugin.ini to point to the 1.6 for rendering and 2.0 for everything else, like running the latest Magma modifiers. Just if you want.
That’s working like a charm. This has finally cracked a long standing problem I’ve had with creating CG foam. Frost/and PRT Volumes using the “union of spheres” meshing method is a great solution. It’s not perfectly physically accurate of course, but it looks pretty realistic IMO and is the best workable option I’ve yet to come across.
Thanks for all the help with it!
(this is just a lower quality render test - it’s renders painfully slowly due to all the overlapping transparency, but not much I can do about that )
Unfortunately I am not the man for that job - I am a stills guy and wouldn’t know where to start Not sure if this exact setup is even animation-friendly, but I don’t see why it couldn’t be adapted.