HHS81 / c182s

Cessna C182S (1996 model) for FlightGear
GNU General Public License v2.0
27 stars 9 forks source link

shadow on propeller (fgfs next as of 19.11.2021) #470

Open hbeni opened 2 years ago

hbeni commented 2 years ago

On yesterday next I got this by chance. In the propeller I have seen the interiour shadow of the plane. Is that intentional? Sun was in my back, fair weather setting, afternoon.

grafik


Steps to reproduce:


SF FGFS Issue ticket: https://sourceforge.net/p/flightgear/codetickets/2713/

HHS81 commented 2 years ago

that`s new behavior and not intended. Probably a graphic glitch some where in the hardcode.

hbeni commented 2 years ago

Ok, I think I remember others having similar problems and it’s been worked on. There was some traffic in the forum and mailing list i think: https://forum.flightgear.org/viewtopic.php?f=37&t=39632&hilit=Clipping#p391662

there it was the DDS cache corrupted.

hbeni commented 2 years ago

I mark this as WONTFIX for now, but keep it open, so we don't forget that we test once in a while...

hbeni commented 2 years ago

C172p has the same issue.

hbeni commented 2 years ago

asked the mailing list.

hbeni commented 2 years ago

Opened an FGFS issue ticket: https://sourceforge.net/p/flightgear/codetickets/2713/

hbeni commented 1 year ago

asked again on the list....

hbeni commented 1 year ago

On the Mailing List James Turner wrote:

A quick searching: model-interior-ALS defines a 'shadow-mapping-enabled' flag, which eg the C172 sets in a few places, eg: ./Aircraft/c172p/Models/Effects/interior/c172p-interior.eff: true

And the compositor shadows use the uniform 'shadows_enabled' which is controlled by modef-default.eff,

<shadows_enabled>
<use>/sim/rendering/shadows/enabled</use>
</shadows_enabled>

What you might need is to subclacc model-default.eff and make a model-unshadowd.eff for your prop disc? I don't know if this is something which makes sense to include in FGData effects.

@TheFGFSEagle Hi Eagle, does that make sense to you? Do you have some spare time to assist?

TheFGFSEagle commented 1 year ago

Yeah, I think too what you're seeing on the prop is not the shadow from the shadow map from the interior effects, but simply the compositor shadow - in which case James' idea should work fine.

hbeni commented 1 year ago

Hm what still puzzles me a bit - when we have no shadow on the fast propeller disc, where does the light come from, when the sun is behind the plane. Shouldn't there be a shadow in the disc, even for fast rotating blades?

I think we probably need to do real life investigation.

hbeni commented 1 year ago

Asked on the forums: https://forum.flightgear.org/viewtopic.php?f=34&t=41161

TheFGFSEagle commented 1 year ago

IMO the shadow should on the prop disc too, but faded by the same amount as the prop - which is just what we have right now, right ?

hbeni commented 1 year ago

So - I decided to merge Eagles fix. The reasoning is that this restores the years-old previous behaviour which sounds more sensible currently.

The shadowing was definitely wrong, and if we get better details on how a real shadow would look like, we now can model that properly trough the new separated effect.

hbeni commented 9 months ago

Looks like its again here.... Tried by spawning on Keflavik RW02, Noon time, so the sun is in the back. Idling on the threshold, the shadow is to be seen on the disc.

TheFGFSEagle commented 9 months ago

Hmmmmm, that's weird … I think I should be able to take a look later in the afternoon / evening.

TheFGFSEagle commented 9 months ago

With FGFS from 17.10., it is still working - just noting that here to facilitate the search for the offending commit.