摘要 |
Methods and systems for simulating and visualizing a flowing fluid when interacting with an intersecting object are provided. The simulating of falling fluid as a two-dimensional plan and rendering first and second depth buffers corresponding to current depth information for, respectively, a top surface and a bottom surface of an object is rendered. The values of first and second current simulation textures are rendered for the top and bottom surfaces of the object, where for a given frame each of the first and second current simulation texture values is set to either a corresponding value of the first and second current simulation texture values is set to either a corresponding value of each or second depth buffer or a corresponding, velocity-offset value of the previous frame's first or second simulation texture respectively. A visible fluid mesh is rendered in the two-dimensional plane based on the current simulation textures. |