Animation of Tea Pouri Course: Computer Graphics
Introduction
This is the course project for Computer Graphics class. In this project, the SPH(Smoothed Particle Hydrodynamics) method is implemented to simulate the fluid. Apart from fluid simulation, rendering techniques are implemented such as: cube mapping, texturing, blending, etc. Cg(C for graphics) is also used to render the fluid and a particle system is developed for displaying steam from the hot tea.
The project report for fluid simulation can be found here, and the report for rendering part can be found here. Note that the reports are both in Chinese.
The project report for fluid simulation can be found here, and the report for rendering part can be found here. Note that the reports are both in Chinese.
SPH Fluid Simulation
The SPH method is used to solve the Navier-Stokes equation and update the particles that represents the fluid. A detailed discussion of the SPH method can be found in this paper.
In this project, the SPH method is implemented in CPU. Thus the speed is limited. After optimizing the program using multi-threading, the program can run at 10fps with 3500 particles.
In this project, the SPH method is implemented in CPU. Thus the speed is limited. After optimizing the program using multi-threading, the program can run at 10fps with 3500 particles.
Particle System For Steam
To simulate the steam from a cup of hot tea, a particle system is implemented that can created cubes translating, rotating and scaling with time.
Fluid Rendering
A screen space fluid rendering technique is used to render the fluid particles. The method can be found here. In this project, I couldn't recover the normal vectors from the depth cache, thus I didn't blend the normal field.
Scene Rendering
I used the cube mapping technique for the reflection of the teapot and the blending technique to combine the reflection part with the texture. The scene is modeled using 3ds Max.