这是一个流体模拟程序。 使用Euler方法(基于网格的方法)模拟烟雾,并使用体积射线投射进行渲染。 观看。
先决条件:
opengl
glew
glfw
Eigen
如何运行:
1. make
2. ./main
控制:
Mouse:
1. Change angle of view with mouse left key, and zoom with middle key.
2. Select the Light and drag to change light position.
Keyboard:
1. R to reset the scene.
2. S to switch between rendering and none rendering mode.
3. W to toggle slices outline on/off.
4.
2021-09-21 15:22:04
335KB
C++
1