BoyBaykiller / Newtonian-Particle-Simulator

C# OpenGL Particle Simulation, GPU accelerated

Home Page:https://youtu.be/NhnoNYqIhTI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C# OpenGL Newtonian-Particle-Simulator

gif img1

This is a very simple interactive particle simulator. The whole pipeline consists out of a single shader program. The vertex shader computes and renders particles at the same time. The fragment shader just outputs the computed colors with blending enabled. The actual particles are stored in a Shader Storage Buffer which is a really useful arbitrary read/write interface of global GPU memory.

Requires OpenGL 4.5.

Also see https://youtu.be/NhnoNYqIhTI.

KeyBoard:

  • W, A, S, D => Movment
  • E => Toggle cursor visibility
  • T => Toggle simulation
  • V => Toggle VSync
  • F11 => Toggle fullscreen
  • LShift => Faster movment speed
  • LControl => Slower movment speed
  • Esc => Close

Mouse:

  • LButton => Set point of mass

About

C# OpenGL Particle Simulation, GPU accelerated

https://youtu.be/NhnoNYqIhTI


Languages

Language:C# 89.4%Language:GLSL 10.6%