bruce965 / godot-gpu-cellular-automata

GPU-accelerated cellular automata template in Godot (OBSOLETE: could be done in better ways in Godot 4)
MIT License
16 stars 2 forks source link

magic effects simulation #3

Closed zhaishengfu closed 3 years ago

zhaishengfu commented 3 years ago

Hello, I think you should know noita. I see the videos about noita, and that is amazing! you can see some magic effects fly around the screen. I think they have similar logic with the sand simulation, but have no clear ideas. Do you have any idea to simulate such magic logic with sand simulation? such as :

  1. spawn fire magic to hit wood and explode the wood
  2. spawn laser to stone and later logic
bruce965 commented 3 years ago

Yes, I know Noita and I love it. This project is actually partially inspired by Noita.

If you are curious to know how they approached the problem in Noita, I'd recommend you to watch the Exploring the Tech and Design of Noita presentation at the 2019 GDC. It's quite different from this project, as everything runs on the CPU.

I think a valid approach to simulate that kind of special effects could be based on particle physics as described in the video you linked from https://github.com/bruce965/godot-gpu-cellular-automata/issues/1#issuecomment-947229275. After implementing particle physics, you could add a "fire magic" particle to the simulation and make it behave in whatever way you want.