Skip to content

Optimised n-body gravity system with many particles and volumetric lighting

Notifications You must be signed in to change notification settings

Tachytaenius/particles-3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Particles 3D

This is an optimised n-body gravity simulation with smooth volumetric raymarched lighting and thousands of particles. It uses Newton's laws of motion, has dark energy to resist the collapse of the system and allow structure to last for longer, is consistent on units/dimensions for calculations, etc.

It runs using the LÖVE framework, requires at least LÖVE 12.

Controls:

  • Move right: D
  • Move left: A
  • Move up: E
  • Move down: Q
  • Move forwards: W
  • Move backwards: S
  • Pitch down: K
  • Pitch up: I
  • Yaw right: L
  • Yaw left: J
  • Roll anticlockwise: U
  • Roll clockwise: O

Here is a screenshot of it running on an integrated graphics card. Without linearly filtering the volumetric data, it runs at 60 Hz.

A screenshot of the simulation

About

Optimised n-body gravity system with many particles and volumetric lighting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published