c172p icon indicating copy to clipboard operation
c172p copied to clipboard

Shadows at fixed altitude after resetting sim

Open gilbertohasnofb opened this issue 10 years ago • 9 comments
trafficstars

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: fgfs-screen-001

When the sim is reset, the shadow starts much below its regular position: fgfs-screen-002

It will stay at this position relative to the aircraft for the whole flight: fgfs-screen-004

gilbertohasnofb avatar Jul 11 '15 19:07 gilbertohasnofb

@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.

gilbertohasnofb avatar Jul 11 '15 19:07 gilbertohasnofb

looks like the shadow position needs to be reset like we rest the engines and switches and such...

wkitty42 avatar Jul 11 '15 19:07 wkitty42

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.

wlbragg avatar Jul 12 '15 04:07 wlbragg

This is something that Thorsten needs to take a look at.

onox avatar Jul 12 '15 09:07 onox

Ok!

gilbertohasnofb avatar Jul 12 '15 11:07 gilbertohasnofb

@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.

gilbertohasnofb avatar Sep 11 '16 13:09 gilbertohasnofb

has Thorsten been asked about looking at it (yet)?

wkitty42 avatar Sep 11 '16 16:09 wkitty42

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 avatar Sep 11 '16 19:09 wlbragg

@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.

gilbertohasnofb avatar Sep 12 '16 11:09 gilbertohasnofb

Obsoleted by Compositor

hbeni avatar Nov 14 '23 21:11 hbeni