Board index FlightGear Development Effects and shaders

No raindrops on my windshield ?

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

No raindrops on my windshield ?

Postby TheEagle » Wed Sep 29, 2021 9:59 pm

I am modelling the Cessna P210N for FG, and I would like to get rain drops, fog and frost on my windshield. I tried applying the glass, model-transparent and model-combined-transparent effects - none of these helped. I also tried copying the exterior-glass-effect from the C172p and using that - this still did not give me rain drops ! Another issue is that I can't see the FastPropeller from inside - only from the outside ! Can someone please look into this ? I'm banging my head to the desk because of that since 3 days now …

Code can be found at https://github.com/TheFGFSEagle/c210-family.
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: No raindrops on my windshield ?

Postby wlbragg » Thu Sep 30, 2021 12:00 am

Check your glass normals and make sure they are pointing the right way. Also note, The c172p has two glass layers for all the windows. This is necessary. One for exterior effects and one for interior effect, or something like that. Import the c172p glass layers into blender and check them for which direction to point the normals. And check which layers are using what effects.

Frost and fog required some code and we also used some custom masks.
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: No raindrops on my windshield ?

Postby TheEagle » Thu Sep 30, 2021 12:44 am

@wlbragg: I have already separate exterior and interior glass. I also made sure that all exterior glass normals are facing outwards and all interior glass normals inwards. I did not yet apply the glass effect to the interior glass though - could this be a problem ? But to my understanding this can't be the problem as the rain isn't showing on the glass from the outside view either …
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: No raindrops on my windshield ?

Postby TheEagle » Thu Sep 30, 2021 1:33 am

I added the glass effect to my interior glass and added <rain-enabled>2</rain-enabled> to my exterior glass effect, and indeed I get rain drops now. But - they don't move on the glass and are much too big - what to do ?
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: No raindrops on my windshield ?

Postby D-ECHO » Thu Sep 30, 2021 10:33 am

Don´t move: You need to supply a function that sets the relevant property, see https://wiki.flightgear.org/ALS_technical_notes#Rain

Size: I think you can improve this by changing the UVmap of your interior glass, even if there is no texture applied
D-ECHO
 
Posts: 2458
Joined: Sat May 09, 2015 1:31 pm
Pronouns: Bea (she/her)
Version: next

Re: No raindrops on my windshield ?

Postby TheEagle » Thu Sep 30, 2021 12:11 pm

ARGH :x I read the article you linked D-ECHO, and I cannot figure how I ever overlooked this paragraph ! Will try this in the evening !
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04


Return to Effects and shaders

Who is online

Users browsing this forum: No registered users and 3 guests