Show HN: Demo of Agent Based Model on GPU with CUDA and OpenGL (Windows/Linux)
55 points| ktt8788 | 2 years ago |github.com
Agent instances on GPU memory Uses SSBO for instanced objects (with GLSL 450 shaders) CUDA OpenGL interops Renders with GLFW3 window manager Dynamic camera views in OpenGL (pan,zoom with mouse) Libraries installed using vcpkg
blurbleblurble|2 years ago
ktt8788|2 years ago
3abiton|2 years ago
jasonjmcghee|2 years ago
I have played with this a fair amount and put a couple of my experiments in a repo- both slime mold simulation and "particle life".
Here's the repo: https://github.com/jasonjmcghee/compute-shaders
And a video of the slime mold: https://twitter.com/_jason_today/status/1663378736098738177?...
ktt8788|2 years ago
TheHideout|2 years ago
ktt8788|2 years ago
TheEzEzz|2 years ago
ktt8788|2 years ago
moritonal|2 years ago
ktt8788|2 years ago
posnet|2 years ago
https://youtu.be/dSkxvi9igqQ
https://github.com/chrxh/alien/
ktt8788|2 years ago
m-murphy|2 years ago
ktt8788|2 years ago
m-murphy|2 years ago
ktt8788|2 years ago
sgt101|2 years ago
ktt8788|2 years ago
westurner|2 years ago
https://stackoverflow.com/questions/48228192/webgl-compute-s...
https://github.com/conda-forge/glfw-feedstock/blob/main/reci...
pyglfw: https://github.com/conda-forge/pyglfw-feedstock/blob/main/re...
- [ ] glfw recipe for emscripten-forge: https://github.com/emscripten-forge/recipes/tree/main/recipe...
Emscripten porting docs > OpenGL ES 2.0/3.0 *, glfw: https://emscripten.org/docs/porting/multimedia_and_graphics/...
WebGPI API > GPUBuffer: https://developer.mozilla.org/en-US/docs/Web/API/WebGPU_API
gpuweb/gpuweb: https://github.com/gpuweb/gpuweb
https://news.ycombinator.com/item?id=38355444 :
> It actually looks like pygame-web (pygbag) supports panda3d and harfang in WASM
Harfang and panda3d do 3D with WebGL, but FWIU not yet agents in SSBO/VBO/GPUBuffer.
SSBO: Shader Storage Buffer Object: https://www.khronos.org/opengl/wiki/Shader_Storage_Buffer_Ob...
/? WebGPU compute: https://www.google.com/search?q=webgpu+compute
"WebGPU Compute Shader Basics" https://webgpufundamentals.org/webgpu/lessons/webgpu-compute...
ktt8788|2 years ago