ZHFish is used for simulating fish swimming and rendering a mass of fish.Each school of fish has their own features about swimming and shape,and each fish in a school has a different swimming trail than the others.ZHFish solved these complexities efficiently.It has the following features:
- Animating fish using multithreading on CPU.
- Using the instanced indirect draw function to minimize drawcall.
- Combining all the fish meshes into a single mesh,and only using one material to render all the fish.
- Fish animations are fluid and natural.
- Supporting Direct3D and OpenGL.