Proyek
Lihat di GitHub
marichardson137/VerletIntegration
Tentang
Simulasi partikel real-time yang menggunakan Verlet Integration.
Sains dan teknikYang dapat Anda lakukan
- Simulate thousands of particles (at 60 FPS) experiencing real-time collisions, arbitrary forces, constraints, and linking.
- First person camera that can be controlled using the mouse and keyboard or animated along a path (Bézier curve).
- Custom OBJ file parser to import models from external applications and convert mesh data into an OpenGL-friendly data structure.
- Substeps, mathematical approximations, and sampling for improved simulation accuracy and stability.
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- 0
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliVerlet Integration (C)
Synopsis
This is an implementation of Verlet Integration, a numerical method commonly used for approximating trajectories. It's made with the C programming language and OpenGL, a popular API for GPU rendering. See here for the Python version (outdated).
Key Features
- Simulate thousands of particles (at 60 FPS) experiencing real-time collisions, arbitrary forces, constraints, and linking.
- First person camera that can be controlled using the mouse and keyboard or animated along a path (Bézier curve).
- Custom OBJ file parser to import models from external applications and convert mesh data into an OpenGL-friendly data structure.
- Substeps, mathematical approximations, and sampling for improved simulation accuracy and stability.
- Algorithms to generate structures like recursive Icospheres.
- Mouse picking with a custom frame buffer to interact with objects in a 3D scene.
Optimizations
- Instance rendering
- Multithreading (deterministic vs. non-deterministic)
- KD-Tree or Octree spatial partitioning
References
- Math module by Felipe Ferreira da Silva for working with vectors, matrices, and common mathematical functions.
- Implementation of KD-Tree spatial partitioning by John Tsiombikas.
- GLEW for "wrangling" OpenGL functions and GLFW for window management.
Applying/releasing an attractive force w/ the Keyboard
Linking particles into a "Net"
Icosphere which maintains its pressure using Ideal Gas Law
System Specs.
- MacBook Pro (13-inch, M1, 2020)
- Chip - Apple M1
- Memory - 8 GB
- OS - Monterey Version 12.1
I have no idea if this will run on your machine but you're welcome to try by calling make in the root directory followed by ./app
Jelajahi proyek terkait
Memuat…