this post was submitted on 25 Sep 2023
11 points (100.0% liked)

Game Development

3476 readers
1 users here now

Welcome to the game development community! This is a place to talk about and post anything related to the field of game development.

Community Wiki

founded 1 year ago
MODERATORS
 

I'm working on a simulation toy, and I want to model wind on my world/levels.

I'm currently using playrho (a box2d fork) with gravity set to 0 to model a top down view.

I assume the wind will be represented as a vector field. But I'm unsure what method to use to get this field.

Could someone point me in the right direction? Should I be looking at the navier-stokes equation? Does anybody know of any relevant tutorials?

Thanks in advance!

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 1 year ago

If you want to write it as a fluid sim, you can take a look at "Real-Time Fluid Dynamics for Games" by Jos Stam.

There was also a series of articles by Michael J. Gourlay on Intel's website (maybe about a decade ago?) called "Fluid Simulation for Video Games". I'm having trouble finding an index of it, but individual PDFs for some of the entries show up in Google -- you might need to go digging around archive.org for that one, but it had a lot of interesting info in it. I think there were somewhere around 20-ish parts and some of the later entries discussed things like modeling heat.

That might be more detailed than what you're interested in, though; the rabbit hole on this subject goes deep...