1
\$\begingroup\$

I am making a city builder, which has the classic camera features of any other city builder, move around, zoom, rotate, etc.

The problem Im facing atm is with snow. Snow falls really slowly, so if I make my snow vfx follow my camera and set it to "world" space, the camera outruns the snow (i.e there is no snow in the view for a few seconds until the vfx catches up) unless I make the vfx cover the entire world, which would be horrible for performance.

If I set the snow vfx to "local space" it just looks awful since the snow particles then actually follows the camera.

Is there some solution to this I'm missing where I can use a smaller bounds vfx to save on performance, while still keeping snow in camera view at all times?

\$\endgroup\$
4
  • \$\begingroup\$ As I write this I realized I can probably just activate/disable pre-warmed vfx across the map in chunks as the camera moves. I dont see any other way \$\endgroup\$
    – Majs
    Commented Dec 18, 2021 at 20:20
  • \$\begingroup\$ That option sounds like it's worth trying, and posting as an answer if you find that it works for you. \$\endgroup\$
    – DMGregory
    Commented Dec 18, 2021 at 20:21
  • 1
    \$\begingroup\$ It may also help to show a mock screenshot or example of what your ideal snow effect should look like in your game's perspective. Then answers can focus on ways to achieve that look. \$\endgroup\$
    – DMGregory
    Commented Dec 18, 2021 at 23:28
  • \$\begingroup\$ @DMGregory chunks didnt really work. since they need to be pre-warmed it caused a huge spike when going between chunks. As for the type of snow, just the most basic, standard snowfall u can imagine, you can see an example of a simple snowfall here: youtube.com/watch?v=4wzubisvcyI \$\endgroup\$
    – Majs
    Commented Dec 19, 2021 at 21:08

1 Answer 1

2
\$\begingroup\$

As usual, the easiest option was the one that worked best.

My issue at first was that I had the snow fall from a rectangle above the camera. When I changed it to a 200x200 box around the camera with volume spawning instead, it looks quite natural and now moves quite well with the camera.

\$\endgroup\$
1
  • 1
    \$\begingroup\$ Don't forget to mark this answer as Accepted if it worked for you. \$\endgroup\$
    – DMGregory
    Commented Jan 18, 2022 at 22:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .