Board index FlightGear Development

raining inside?

FlightGear is opensource, so you can be the developer. In the need for help on anything? We are here to help you.
Forum rules
Core development is discussed on the official FlightGear-Devel development mailing list.

Bugs can be reported in the bug tracker.

raining inside?

Postby StuartC » Wed Nov 22, 2017 10:37 am

How can I stop it raining inside the cockpit? Its quite annoying not to mention ruining the seats.
StuartC
 
Posts: 3175
Joined: Fri Jun 18, 2010 9:18 pm
Location: Arse end of the Universe
Callsign: WF01
Version: 2019.1
OS: W10 64 bit

Re: raining inside?

Postby Necolatis » Wed Nov 22, 2017 11:16 am

Put this under <environment> in your set file:

<precipitation-control>
<clip-distance type="double">1.75</clip-distance>
</precipitation-control>

The number is distance from the pilot eye view that there should fall no rain in meters.
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore
User avatar
Necolatis
 
Posts: 2233
Joined: Mon Oct 29, 2012 1:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2020.3.19
OS: Windows 10

Re: raining inside?

Postby wlbragg » Wed Nov 22, 2017 12:05 pm

Why is he getting rain in the cockpit in the first place?
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7588
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: raining inside?

Postby wkitty42 » Wed Nov 22, 2017 7:14 pm

canopy/ceiling not oriented properly? normals again?
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: raining inside?

Postby Thorsten » Wed Nov 22, 2017 7:19 pm

I think it rains inside almost by default - at least I wouldn't know how the particle system generating precipitation would know that you're inside...
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: raining inside?

Postby StuartC » Sat Nov 25, 2017 12:51 pm

I have tried adding
<precipitation-control>
<clip-distance type="double">1.75</clip-distance>
</precipitation-control>

but its having no effect what so ever. I even increased the clip distance to 10.0, and me seats are sill getting wet.
StuartC
 
Posts: 3175
Joined: Fri Jun 18, 2010 9:18 pm
Location: Arse end of the Universe
Callsign: WF01
Version: 2019.1
OS: W10 64 bit

Re: raining inside?

Postby StuartC » Sat Nov 25, 2017 1:09 pm

Tested the normals theory, didn't make any difference either.

Interestingly though, on this aircraft on external view, it only rains on one half of the screen. On anther test chopper, it doesn't rain inside and the external rain covers the whole screen.
I wonder if the 2 issues are related ?
StuartC
 
Posts: 3175
Joined: Fri Jun 18, 2010 9:18 pm
Location: Arse end of the Universe
Callsign: WF01
Version: 2019.1
OS: W10 64 bit

Re: raining inside?

Postby Necolatis » Sat Nov 25, 2017 2:11 pm

The get the rain clipping to work, are you sure you added it inside <environment> tags, and that <environment> is not under <sim>?

If you in nasal have something like the code below, it will might mess with your rain btw.:

aircraft.rain.init();

var rain = func {
aircraft.rain.update();
settimer(rain, 0);
}

rain()
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore
User avatar
Necolatis
 
Posts: 2233
Joined: Mon Oct 29, 2012 1:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2020.3.19
OS: Windows 10

Re: raining inside?

Postby StuartC » Sat Nov 25, 2017 2:13 pm

Its after the sim tags

</sim>

<environment>
<turbulence>
<use-cloud-turbulence>true</use-cloud-turbulence>
</turbulence>
<precipitation-control>
<clip-distance type="double">3.75</clip-distance>
</precipitation-control>
</environment>
StuartC
 
Posts: 3175
Joined: Fri Jun 18, 2010 9:18 pm
Location: Arse end of the Universe
Callsign: WF01
Version: 2019.1
OS: W10 64 bit

Re: raining inside?

Postby Thorsten » Sat Nov 25, 2017 3:54 pm

Interestingly though, on this aircraft on external view, it only rains on one half of the screen. On anther test chopper, it doesn't rain inside and the external rain covers the whole screen.
I wonder if the 2 issues are related ?


Possibly...

That's raw OpenGL clipping interfering with the OSG clipping of the rain - possibly your chopper has an old-fasioned HUD or another instrument that gets low-level clipping applied - you could try to find which instrument causes that and try to replace it by something that uses higher level clipping (canvas probably).
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: raining inside?

Postby StuartC » Sat Nov 25, 2017 4:09 pm

Ok, tested and confirmed. Its the Helonix screens causing it to rain inside the cockpit. Excluding those stops the rain.
StuartC
 
Posts: 3175
Joined: Fri Jun 18, 2010 9:18 pm
Location: Arse end of the Universe
Callsign: WF01
Version: 2019.1
OS: W10 64 bit

Re: raining inside?

Postby litzi » Mon Nov 27, 2017 10:39 pm

I have tried out some variations in the panel code but the problem persists in any case. The effect appears as soon as I introduce an <instrument> element into any of the panels (independent of ALS on or off).

This seems to be a general issue of the 2D "panel technology". Other aircraft are affected as well. The A380's seats for example, are also getting wet in the rain :-(

litzi
litzi
 
Posts: 123
Joined: Sat May 03, 2014 9:59 pm
Location: AT
Version: 2018.3.1
OS: Ubuntu 14.04

Re: raining inside?

Postby Thorsten » Tue Nov 28, 2017 7:18 am

This seems to be a general issue of the 2D "panel technology".


As I said, it happens whenever an instrument is using low-level OpenGL clipping - and yes, this affects a lot of older aircraft.
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: raining inside?

Postby iamzac » Tue Nov 28, 2017 9:29 am

litzi wrote in Mon Nov 27, 2017 10:39 pm:I have tried out some variations in the panel code but the problem persists in any case. The effect appears as soon as I introduce an <instrument> element into any of the panels (independent of ALS on or off).

This seems to be a general issue of the 2D "panel technology". Other aircraft are affected as well. The A380's seats for example, are also getting wet in the rain :-(

litzi


Not only that but in some situations they also introduce the bug where instruments become visible through the fuselage or other objects.
iamzac
 
Posts: 96
Joined: Fri Nov 07, 2014 8:52 am
OS: Windows / Kubuntu

Re: raining inside?

Postby Clive2670 » Tue Nov 28, 2017 7:58 pm

Has anyone suggested "closing the windows" .............Sorry couldn't resist!!! Not very helpful I know, But I thought I would suggest it before someone else does! :roll:
Thanks Clive aka: G-BLS01
Can be seen flying the Boeing 777-200LR
Toshiba laptop,
Intel i5 4210U,
16Gb RAM,
AMD R7-M260 graphics 2Gb RAM
Clive2670
 
Posts: 589
Joined: Mon Feb 08, 2016 8:11 pm
Location: Anywhere in the World at some point on Flightgear!
Callsign: G-BLS01
Version: 2018.3.1
OS: Windows 10 64bit

Next

Return to Development

Who is online

Users browsing this forum: No registered users and 13 guests