ktt8788
ktt8788 on Hacker News
Basically possible. You have to remove all Cuda code and port C++ code to use glfw with specific library for web. The shader can be reused.
Thanks for your advice. I will update more in the next version.
This is brilliant. Thanks for sharing.
Thanks. It's a nostalgia app haha.
This is supercool and beyond what I've done. Thanks for sharing.
Yeah they should be interact to each other. Right now I just started with it and want to share so everyone can take advantage in their ways.
This's awesome. Happy to know that you're doing the same.
Wow it's amazing visualization. Thanks for suggestion.
Right now it's independent. I just want to provide a playground and people can make more with it. Loves your idea though.
Hi, thank you for your interest. Agent based model is a term refers to an interaction between multiple object (called agent) with its own property.
The triangle is one agent in this case and in this example it moves along a random trajectory (just like people in a crowd). Each triangle also has its own color of its population so agents in the same population will have the same color.
Posted by
ktt8788 on Monday December 04, 2023 @02:34PM
from the show-hn dept.
https://github.com/KienTTran/ABMGPU
Demo of agent based model on GPU with CUDA and OpenGL (Windows/Linux)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(https://github.com/KienTTran/ABMGPU)