Flex is a particle-based simulation library designed for real-time applications. Please see the programmer's manual included in this release package for more information on the solver API and usage.
A D3D11 capable graphics card with the following driver versions:
To build the demo at least one of the following is required:
And either:
Use the run_cuda.bat
or run_d3d.bat
files to launch the demo.
For running the Linux binaries you will need to export the path to where the CUDA run time libraries are For example, you may add to your .bashrc file the following:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
The following commands may be passed to the demo application to modify behavior:
-fullscreen=wxh Start fullscreen e.g.: -fullscreen=1280x720
-msaa=0 Disable multisampling (default is on)
-device=n Choose GPU to run on
-d3d12 Enable D3D12 compute
-benchmark Enable bencmark mode, will write a benchmark.txt to the root folder
-vsync=0 Disable vsync
w,s,a,d - Fly Camera
right mouse - Mouse look
shift + left mouse - Particle select and drag
p - Pause/Unpause
o - Step
h - Hide/Show onscreen help
left/right arrow keys - Move to prev/next scene
up/down arrow keys - Select next scene
enter - Launch selected scene
r - Reset current scene
e - Draw fluid surface
v - Draw points
f - Draw springs
i - Draw diffuse
m - Draw meshes
space - Toggle fluid emitter
y - Toggle wave pool
c - Toggle video capture
u - Toggle fullscreen
j - Wind gust
- - Remove a plane
esc - Quit