j
jaipkg.dev
packages / library / life

life

c26125blibrary

Particle Life JAI implementation

No license · updated 2 months ago

Efficient particle life implementation, writen in JAI with OpenGL, SDL and ImGui.

demo

Instructions

$ jai life.jai -o +Autorun

Gallery

GUI demo

Progress

Featues

  • remove radius and maybe color from instance, maybe bake them into the shader?
  • implement 2D Camera, switch to world coordonates
  • attraction laws
  • gui & tools
  • wasm port?

Performance:

  • push update to compute shader
  • async simulation thread
  • hierarichal structure

Quality:

  • fix render to texture pipeline, think about how to tie tile resolution to camera zoom
  • break the monolith, refactor game loop
  • betteer attraction / reppeler force profile
  • refactor tiling logic, i think it should be slightly simpler
  • async logging
  • fix flickering at large zoom out
  • add bloom in post?