Live data from Hacker News

Show HN: Demo of Agent Based Model on GPU with CUDA and OpenGL (Windows/Linux)

github.com

11–20 of 22 posts

Re: Show HN: Demo of Agent Based Model on GPU with CUDA and OpenGL (Windows/Linux)

#11

Are the agents independent or are they affected by neighbors? It would be nice to see some classic ABM examples like wolf-sheep population, flocking, and wildfire spread to demonstrate the utility of this.

Right now it's independent. I just want to provide a playground and people can make more with it. Loves your idea though.

Re: Show HN: Demo of Agent Based Model on GPU with CUDA and OpenGL (Windows/Linux)

#12

You should work on inter-agent interaction next! It's so much fun. 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?...

Wow it's amazing visualization. Thanks for suggestion.

Re: Show HN: Demo of Agent Based Model on GPU with CUDA and OpenGL (Windows/Linux)

#13
post #9

Super cool, curious to see where you take this! I did some work on GPGPU for agent simulations for an RTS years ago ( https://www.youtube.com/watch?v=P4fKJIrv0J8 ). Doing things like pathfinding on the GPU gets tricky, especially taking into account how agents affect paths of other agents. Happy to jam anytime if you're brainstorming applications.

This's awesome. Happy to know that you're doing the same.

Re: Show HN: Demo of Agent Based Model on GPU with CUDA and OpenGL (Windows/Linux)

#14
post #7

Are the entities interacting in any way here? That's pretty critical for agent based models as they enable complicated/unexpected emergent behavior from simplified rules due to the interactions of the entities.

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.

Re: Show HN: Demo of Agent Based Model on GPU with CUDA and OpenGL (Windows/Linux)

#18
If you want to create some pretty effects, add the concept of a velocity-texture which is added to agents velocity as they pass over it. Then let the user draw on the texture. Very cheap way to get interactivity. My own version from before compute shades were a thing (https://moritonal.github.io/force-particles/)

Re: Show HN: Demo of Agent Based Model on GPU with CUDA and OpenGL (Windows/Linux)

#20

If you want to create some pretty effects, add the concept of a velocity-texture which is added to agents velocity as they pass over it. Then let the user draw on the texture. Very cheap way to get interactivity. My own version from before compute shades were a thing ( https://moritonal.github.io/force-particles/ )

Thanks for your advice. I will update more in the next version.
Post reply on HN