Board index FlightGear Development Effects and shaders

ALS mode shadow glitch

An exciting "new" option in FlightGear, that includes reflections, lightmaps, the particle system etc.. A lot is yet to be discovered/implemented!

ALS mode shadow glitch

Postby wlbragg » Tue Mar 18, 2014 1:17 am

This may be a know problem but it is the first time I noticed it.
Superbuild-next git pull from a couple weeks ago.

Image
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7609
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: ALS mode shadow glitch

Postby Johan G » Tue Mar 18, 2014 1:26 am

Strange.

I assume that you are not using Rembrandt, but that the shadow is an animated model object and/or a texture. I do not see how ALS could change the animation like that. I guess you could pause and toggle ALS and see what happens.
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Some YouTube videos
Johan G
Moderator
 
Posts: 6634
Joined: Fri Aug 06, 2010 6:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.4
OS: Windows 10, 64 bit

Re: ALS mode shadow glitch

Postby Philosopher » Tue Mar 18, 2014 1:30 am

Yeah, it's just related to the simple shadow textures/animations that have been used after the migration from PLIB to OSG, so it's not new at all. AFAIK little can be done about it, and if there was something, it would require changing almost every aircraft...
Philosopher
 
Posts: 1593
Joined: Sun Aug 12, 2012 7:29 pm

Re: ALS mode shadow glitch

Postby wlbragg » Tue Mar 18, 2014 2:15 am

I didn't mean to tie it to the ALS system other than the fact that it is not Rembrant shadows.
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7609
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: ALS mode shadow glitch

Postby wlbragg » Tue Mar 18, 2014 3:25 am

OK, I obviously don't understand lots of the technical details about how FG renders its elements to the screen. With that said, I dug a little deeper and noticed that I got that shadow when the AI was an actual working airplane model vs an AI model. I had changed it to an AI model after I realized the plane had no spinning prop.and when I checked it again there was no shadow. So that explains a few things to me anyway.
I take it the shadows cast on the ground are handled by the planes xml both in ALS and Rembrant modes?
I assume one could add the shadow effect to an AI model if they so desired?
What exactly is causing the shadow to be viewed at a different altitude based on the viewers altitude?
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7609
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: ALS mode shadow glitch

Postby Thorsten » Tue Mar 18, 2014 7:24 am

I take it the shadows cast on the ground are handled by the planes xml both in ALS and Rembrant modes?


They're actually really different.

ALS does not draw any 'real' shadow of an airplane (or any other scene element) - every shadow you see in ALS is an illusion of some sort. Rembrandt has a genuine camera pass in which objects are rendered from the perspective of the light source, creating a so-called shadow map, which is then used in a second pass rendered from the position of the eye to determine what is in shadow and what is not - Rembrandt does pretty much what nature does, it follows rays of light to determine shadows (except many objects are exempt from the shadow camera pass so they don't cast shadows in Rembrandt - clouds and trees for instance). Which is to say, all shadows in Rembrandt are guaranteed to be on the ground and properly projected.

The 'shadow' of some airplanes in ALS is a fake, it's a second model attached to the airplane and animated in such a way as to mimic a shadow - technically for ALS it is treated and rendered as part of the airplane, ALS has no way of knowing that it's supposed to be a shadow or where it should be, it would not disappear in overcast skies and... well... it can detach from the ground if the animation isn't done properly.

This is an airplane-model side problem.
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am


Return to Effects and shaders

Who is online

Users browsing this forum: No registered users and 6 guests