Share your scripts with other members
Is there an example RF file somewhere that shows exactly what parameters to use in order to make the beerfoam look realistic?
Generally with these exchange scripts (as both of the examples you've cited are) you have the option of altering all parameters of the "dummy" emitter (the one that will contain the foam particles once they've been removed, or generated by the other emitter plus the script) with a few things to remember. Its advised that you always keep the resolution common betwen emitters in this scenario. So make sure your foam emitter and liquid emitter are the same res. All other settings are up for grabs but bear in mind what might happen to a particle when you suddenly change it's pressure setting for instance. Density is the important one as lower density means lighter particle, and as you want your foam to collect on the top of your fluid, you need to ensure the density of the foam emitter is less that that of the liquid emitter. How much? Well that's up to you and your testing for speed of ascent of the particle through the liquid volume.
Within the script you'll often have condition statements that control when a particle is moved from one emitter to the other. These can be velocity or pressure for example. I think both scripts have a return condition also that changes the foam back to the liquid emitter when the particle reaches another condition such as very low velocity and this'll give you that nice cyclical change of the liquid to foam back to liquid again. The rate of which is again down to you and your testing. I believe Robb's script also has a height condition controlled by a null (can't remember off the top of my head)
The look of the particle is obviously down to how you simulate it and then how you render it.
The second script is Bealobo's, and if you search the forum under beer foam you will see many threads discussing it's use.
Who is online
Users browsing this forum: No registered users and 1 guest