Snow and rain VFX move with the player
In OpenMW the snow effect moves with the players view, which gives it a cheap overlay look, see video for comparison with vanilla Morrowind:
Steps to reproduce:
1. changeweather [YourRegion] 8
OpenMW version: 0.36.1
Note: The snow in OpenMW also sometimes has kind of a patchy look, which can be seen in the video too
#2 Updated by Lars Söderberg over 2 years ago
Jannik Heller wrote:
Looks like MW isn't using snow.nif at all. The snow is a manual simulation like the rain is.
Not sure how relevant this is, but I remember having a mod that changed how the snow looked. It changed it from dots to flakes . A quick search says BM_Snow01.nif might be it.
#5 Updated by Miloslav Číž 8 months ago
This issue also applies to rain (I tested it by slowing down the rain by changing
mRainSpeed). It's caused by appending the rain node to the sky root node in
SkyManager::createRain(), so the rain moves with the sky, which moves with the player. Any idea about a simple approach to fixing this?
#12 Updated by Miloslav Číž 5 months ago
So basically the issue is not that the emitter moves with the player, but that the particles it emits move with the player. The solution would be to tell the particles to parent themselves to the scene, not the sky, when they're spawned. Does anyone know how this would be done with OSG?
#14 Updated by Miloslav Číž 5 months ago
Update: I reparented the rain emitter from sky node to the root scene node and made a custom Placer class inherited from BoxPlacer that places each new particle relatively to the camera position. This solves the issue, the rain drops now move independently of the camera, but the fact that the emitter is not parented to sky causes other problems. If I figure out how to make the emitter NOT inherit its parent's position, I can reparent it back to sky and the issue will be solved.