r/howdidtheycodeit • • Jun 22 '23

Question How did they code this voxel-based fog simulation in this CS:GO2 trailer?

https://www.youtube.com/watch?v=kDDnvAr6gGI

I want to implement something similar for my graduation project. Hearing some opinions might help me in doing some research since fluid simulation is a huge field. Thanks in advance.

27 Upvotes

5 comments sorted by

View all comments

Show parent comment

7

u/rio_sk Jun 23 '23

I bet this is how Guerrilla implemented clouds in the new Horizon dlc. There is a paper on their blog explaining the method.

6

u/robbertzzz1 Jun 23 '23

It is. Ray marching through clouds and using Mie scattering to determine the amount of light that reaches the player.