![]() |
Help How to put the water into the cup beforehand - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html) +--- Thread: Help How to put the water into the cup beforehand (/thread-2631.html) |
How to put the water into the cup beforehand - TheFlyHawk - 13-12-2020 already water in the container [attachment=838] RE: How to put the water into the cup beforehand - josemendez - 14-12-2020 (13-12-2020, 05:36 AM)TheFlyHawk Wrote: already water in the container Hi there, Just use BURST emission mode together with a volumetric shape emitter (ObiEmitterShapeCube, ObiEmitterShapeMesh, etc, or write your own in case of need). See: http://obi.virtualmethodstudio.com/tutorials/emitters.html Quote:Emission method RE: How to put the water into the cup beforehand - TheFlyHawk - 10-01-2021 I didn't achieve it Can you record the current state, and then load it next time RE: How to put the water into the cup beforehand - josemendez - 11-01-2021 (10-01-2021, 02:56 AM)TheFlyHawk Wrote: I didn't achieve it You can store all particle positions in a blueprint and then load them, using emitter.SaveStateToBlueprint() and emitter.LoadBlueprint(). However this can result in pressure spikes in the case of fluids, as fluid density is not guaranteed to be equal to rest density at startup. Using ObiEmitterShapeMesh.cs (VoxelMesh component) and burst emission mode is both simpler and more robust. Here's a beaker mesh starting out filled with particles (I used a slightly smaller version of the beaker mesh to generate the particles inside of it): ![]() RE: How to put the water into the cup beforehand - TheFlyHawk - 14-01-2021 Thanks, very helpful RE: How to put the water into the cup beforehand - JskT01 - 09-03-2021 (11-01-2021, 10:21 AM)josemendez Wrote: You can store all particle positions in a blueprint and then load them, using emitter.SaveStateToBlueprint() and emitter.LoadBlueprint(). However this can result in pressure spikes in the case of fluids, as fluid density is not guaranteed to be equal to rest density at startup.When using burst it only emits 44 particles. How can I increase this number? These are my settings capcity 500 resolution 0.18 RE: How to put the water into the cup beforehand - josemendez - 09-03-2021 In BURST emission mode, it will emit one particle per spawn point in the shape. That's what it is for: a single burst of particles from the emitter shape. How many points there are in the shape is controlled by the fluid resolution: more resolution, more spawn points per volume/surface unit. |