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 9:37 am

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

Re: raining inside?

Postby Necolatis » Wed Nov 22, 2017 10: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


Hangar: https://sites.google.com/site/fghangar/
User avatar
Necolatis
 
Posts: 1872
Joined: Mon Oct 29, 2012 12:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2018.2.2
OS: Windows 10 Pro

Re: raining inside?

Postby wlbragg » Wed Nov 22, 2017 11:05 am

Why is he getting rain in the cockpit in the first place?
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
User avatar
wlbragg
 
Posts: 4183
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Debain/nVGT640

Re: raining inside?

Postby wkitty42 » Wed Nov 22, 2017 6: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: 4762
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: raining inside?

Postby Thorsten » Wed Nov 22, 2017 6: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: 9997
Joined: Mon Nov 02, 2009 8:33 am

Re: raining inside?

Postby StuartC » Sat Nov 25, 2017 11:51 am

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: 2602
Joined: Fri Jun 18, 2010 8:18 pm
Location: Arse end of the Universe
Callsign: WF01
Version: 2.12
OS: W7 64 bit

Re: raining inside?

Postby StuartC » Sat Nov 25, 2017 12: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: 2602
Joined: Fri Jun 18, 2010 8:18 pm
Location: Arse end of the Universe
Callsign: WF01
Version: 2.12
OS: W7 64 bit

Re: raining inside?

Postby Necolatis » Sat Nov 25, 2017 1: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


Hangar: https://sites.google.com/site/fghangar/
User avatar
Necolatis
 
Posts: 1872
Joined: Mon Oct 29, 2012 12:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2018.2.2
OS: Windows 10 Pro

Re: raining inside?

Postby StuartC » Sat Nov 25, 2017 1: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: 2602
Joined: Fri Jun 18, 2010 8:18 pm
Location: Arse end of the Universe
Callsign: WF01
Version: 2.12
OS: W7 64 bit

Re: raining inside?

Postby Thorsten » Sat Nov 25, 2017 2: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: 9997
Joined: Mon Nov 02, 2009 8:33 am

Re: raining inside?

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

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

Re: raining inside?

Postby litzi » Mon Nov 27, 2017 9: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: 52
Joined: Sat May 03, 2014 8:59 pm
Location: AT
Version: 2018.1.1
OS: Ubuntu 14.04

Re: raining inside?

Postby Thorsten » Tue Nov 28, 2017 6: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: 9997
Joined: Mon Nov 02, 2009 8:33 am

Re: raining inside?

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

litzi wrote in Mon Nov 27, 2017 9: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: 81
Joined: Fri Nov 07, 2014 7:52 am
OS: Windows / Kubuntu

Re: raining inside?

Postby Clive2670 » Tue Nov 28, 2017 6: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, BIGJET1
Can be seen flying the Boeing 777-200LR
Toshiba laptop,
Intel i5 4210U,
16Gb RAM,
AMD R7-M260 graphics 2Gb RAM
User avatar
Clive2670
 
Posts: 583
Joined: Mon Feb 08, 2016 7:11 pm
Location: Anywhere in the World at some point on Flightgear!
Callsign: G-BLS01, BIGJET1
Version: 2018.1.1
OS: Windows 10 64bit

Next

Return to Development

Who is online

Users browsing this forum: No registered users and 3 guests