https://github.com/githubharald/particlesystem
A simple particle system implemented with Python and OpenCL.
https://github.com/githubharald/particlesystem
computer-graphics opencl opencv particle-system python
Last synced: about 2 months ago
JSON representation
A simple particle system implemented with Python and OpenCL.
- Host: GitHub
- URL: https://github.com/githubharald/particlesystem
- Owner: githubharald
- Created: 2018-12-09T18:34:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-09T18:44:27.000Z (over 6 years ago)
- Last Synced: 2025-01-20T06:13:48.434Z (4 months ago)
- Topics: computer-graphics, opencl, opencv, particle-system, python
- Language: Python
- Homepage:
- Size: 835 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Particle System
A simple particle system implemented with Python and OpenCL.
## Run demo
Go to the `src/` directory and run ```python main.py```.
This opens a window showing firework-like particle behavior as seen in the animation below.
Exit by pressing ESC.
Requirements:
* Python 3
* NumPy
* OpenCV
* OpenCL## Program options
Use the help option to see all program options.
```
> python main.py --help
usage: main.py [-h] [--number NUMBER] [--fire] [--dump]Particle system.
optional arguments:
-h, --help show this help message and exit
--number NUMBER number of particles (default value is 200)
--fire use fire-like color
--dump dump frames
```The following illustration shows three possible settings.
