百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

sparkle

> 编程语言
开源

:sparkler: GPU 粒子模拟引擎,灵感来自 Agni 的哲学。

196 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

:sparkler: GPU 粒子模拟引擎,灵感来自 Agni 的哲学。

Spärkle

Spärkle is a particle engine running entirely on the GPU, inspired by the work of SquareEnix Advance Technology Division on Agni's Philosophy.

It is written in C++ 14 and OpenGL 4.4.

Features

  • Complete Compute Shader based GPU pipeline,
  • Bitonic Sorting for alpha-blending,
  • Curl Noise,
  • 3D Vector Field,
  • Structure of Arrays and Array of Structures data layout patterns.

For more images, check the gallery.

Quickstart

We will be using the command-line on Unix and Git Bash on Windows.

Dependencies

The following dependencies are pulled in as submodules.

  • GLFW 3.2.1 as window manager,
  • GLM 9.8 as mathematics library.
  • imgui 1.6 as user interface.

To retrieve them, type the following command line in the project directory :

bash
git submodule init
git submodule update

Build

We will first create a build directory then generate the CMake cache depending on your system.

bash
mkdir BUILDs && cd BUILDs

On Unix, using Makefile (replace $NUM_CPU by the number of core you want to use) :

bash
cmake .. -G Makefile -DCMAKE_BUILD_TYPE=Release
make -j$NUM_CPU

On Windows, using MSVC 15 for x64:

bash
cmake .. -G "Visual Studio 15 2017 Win64"
cmake --build . --target ALL_BUILD --config Release

Notes:

  1. Using CMake, the build configuration type (ie. Debug, Release) is set at Build Time with MSVC and at Cache Generation Time with Makefile.

  2. OpenGL extensions are generated automatically by a custom Python script. Alternatively GLEW can be used by specifying the option -DUSE_GLEW=ON to CMake. If something does not compile due to OpenGL functions, try to use GLEW.

Run

The binary can be found in the project ./bin/ directory:

bash
../bin/sparkle_demo

Dev Note:

  • The development being done on GNU/Linux, it is primarly optimized for it. The MS Windows version is at this moment quite slow.

References

  • Practical Applications of Compute for Simulation in Agni's Philosophy, Napaporn Metaaphanon, GPU Compute for Graphics, ACM SIGGRAPH ASIA 2014 Courses,
  • Curl noise for procedural fluid flow, R. Bridson, J. Hourihan, and M. Nordenstam, Proc. ACM SIGGRAPH 2007,
  • Noise-Based Particles, Philip Rideout, The Little Grasshoper,
  • Implementing Improved Perlin Noise, Simon Green, GPU Gems 2

License

Spärkle is released under the MIT license.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++compute-shadercpp14glslgpu

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言