-1
\$\begingroup\$

How to make the wind blow with randomized patterns? Like for storms and calm breezes?

\$\endgroup\$
  • 1
    \$\begingroup\$ How are you handling your physics so far? Are you in 2D or 3D? What does your wind need to do? What pseudorandom/noise techniques have you tried so far? \$\endgroup\$ – DMGregory Apr 25 '19 at 20:33
  • \$\begingroup\$ What's your technology stack? In what way is the wind supposed to affect gameplay? How accurately do you need the simulation to be? Do you need help with visualizing the wind patterns? I'm sorry, but this question does not contain nearily enough information to write any useful answer. \$\endgroup\$ – Philipp Apr 26 '19 at 8:44
0
\$\begingroup\$

Your question is quite broad, but I think I can point you in the right direction. You have two approaches each with its pros and cons.

1.) Simulate real physics

Pros: the most close to reality.

Cons: computationally expensive, hard to program.

2.) Use noise

Pros: faster to implement and runs fast also.

Cons: not so close to reality

If you go with the first one you have to implement 3/2 dimensional Computational Fluid Dynamics CFD, I would go with a shader approach. GPU Gems is an excellent source. If you go for the second option I recommend Curl Noise for nice swirly patterns. I think that you better implement either of the approaches on the GPU for performance.

| improve this answer | |
\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.