Skip to content

PixelDoted/particle_simulation

Repository files navigation

Gpu Particle Simulation

16384 Particles preview banner A Newtonian Gravity particle simulation on the GPU

Keybindings

Format: Key Description [default] (extra info)

Space Pause/Unpause simulation [paused]
f Enable/Disable following center of mass [disabled]
c Enable/Disable capture [disabled] (Requires the capture feature)

Capture

When the capture feature is enabled (default) a frame_buffer.bin file is created.
when capturing the frame_buffer.bin file will get filled with raw frames.
stdout will contain the used parameters (Width, Height and Format)

NOTE:
The frames are not seperated by any header or byte sequence.
use frame_buffer_to_video.sh and input the parameters given from stdout when asked

Low Framerate (FPS)?

the frames will be captured at a locked framerate
if 30 fps is selected you'll get a 30 fps output.