c172p
c172p copied to clipboard
Shadows at fixed altitude after resetting sim
When I load the sim, the 3D shadows work perfectly well. But if I click on the Reset option in the File menu, the shadow will then be fixed at the last position it had. Example:
First I took off and then at this is the moment I reset the sim:

When the sim is reset, the shadow starts much below its regular position:

It will stay at this position relative to the aircraft for the whole flight:

@onox feel free to move this to the 3.8 release milestone if you think the fix is something complex that can't be done in time.
looks like the shadow position needs to be reset like we rest the engines and switches and such...
This has been a know issue since the shadow was first introduced. I don't think there is a fix for this without looking at the c++. This isn't a c172p bug.
This is something that Thorsten needs to take a look at.
Ok!
@wlbragg sorry to bother you again with the forum, but I just came across this: https://forum.flightgear.org/viewtopic.php?f=37&t=30381
Maybe the user is experiencing something related to this issue here (that is, the "giant" shadow he sees from the cockpit is simply the shadow at a fixed distance from the aircraft). If this theory is correct, a screenshot from outside would make the matters clear. It also would be much easier if she or he would describe how to reproduce the bug, or if the bug is always present in his sim.
has Thorsten been asked about looking at it (yet)?
I asked for a little clarification and also informed the user about the shadow off switch.
has Thorsten been asked about looking at it (yet)?
I know he is aware of it. I really don't remember the details, has to do with re-init. It might be worth looking at it with fresh eyes and see if we can catch it in our code, but it seems like it has to do with order of operation in re-init, it may be different that startup, in which case it would probably require a C++ fix. It's like all other shader effects. You can't re-init and see the changes, you must restart the sim.
@wlbragg About that forum thread, there is one more possible explanation why this user is the single one having issues: is he taking off by himself or is he using the "position aircraft in air" option? Because if he is doing the latter, there is nothing new to it.
Obsoleted by Compositor