Rain bug.

Discussion and requests for new features. Please note that FlightGear developers are volunteers and may or may not be able to consider these requests.

Moderators: stuart, Kugelfang

Rain bug.

Postby bisutti on Mon Oct 05, 2009 6:27 pm

Hi.

I don´t know if you have noticed it, but when I enable the rain, I fly and it just go through the aircraft, I mean, it is like if there were not a glass protection in the cockpit, the same with the rest of the plane. Can I fix it manually or it is more complex than I imagine?
YV256T Regular flights.
IVA-037 Island Virtual Airways virtual pilot.

Follow my flights Here :)
bisutti
 
Posts: 496
Joined: Fri Feb 08, 2008 7:09 pm
Location: Barcelona, venezuela.

Re: Rain bug.

Postby flameout on Mon Oct 05, 2009 6:33 pm

I notice this too...

There are a couple ways to solve this:

1) Distinguish the aircraft from everything else, so it overwrites everything around it. This would make it cover up rain that would instead be in the cockpit.

2) Cut the rain off. You could prevent the rain from getting closer than, let's say, X meters from the aircraft. However, there is always the possibility the aircraft is too large/small for the chosen value of X and it looks funny (you could make this aircraft-configurable.) However, this would probably be simpler.

Of course, another nice feature would be if a texture was applied to the windshield that simulates raindrops and snowflakes, hopefully timed with the textures so you can individually trace the particles. However, that would likely be more work than it is currently worth (in terms of framerate and manpower.)

This would be a nice bug to fix, but for now I'll just wait for a fix. I want to learn how to develop C++ code for FlightGear, but for now I don't have the knowledge to fix this. As far as I know, there isn't a simpler way to change it.
Learning: Panel/instrument design, autopilot design/tuning (PID)
Projects: Inertial Navigation System
Runs Ubuntu 9.04 with FlightGear CVS
Also known as Johnathan Van Why.
flameout
 
Posts: 343
Joined: Wed Dec 24, 2008 11:43 pm
Location: Oregon, USA

Re: Rain bug.

Postby bisutti on Mon Oct 05, 2009 7:33 pm

Well.. It is more complex than I imagine :roll:

Distinguish the aircraft from everything else, so it overwrites everything around it. This would make it cover up rain that would instead be in the cockpit.


Which xml code should I take to do that? It may work.
YV256T Regular flights.
IVA-037 Island Virtual Airways virtual pilot.

Follow my flights Here :)
bisutti
 
Posts: 496
Joined: Fri Feb 08, 2008 7:09 pm
Location: Barcelona, venezuela.

Re: Rain bug.

Postby flameout on Mon Oct 05, 2009 9:39 pm

bisutti wrote:Which xml code should I take to do that? It may work.

Actually, I was talking about the source code, which is C++. Otherwise, I would have done it and posted my fix in this topic. As far as I know, it isn't configurable in any way (at least that's useful to us here.)

I hope this helps (and this bug gets fixed soon.)
Learning: Panel/instrument design, autopilot design/tuning (PID)
Projects: Inertial Navigation System
Runs Ubuntu 9.04 with FlightGear CVS
Also known as Johnathan Van Why.
flameout
 
Posts: 343
Joined: Wed Dec 24, 2008 11:43 pm
Location: Oregon, USA

Re: Rain bug.

Postby Tuxklok on Tue Oct 06, 2009 12:05 am

Using the stencil or depth buffer would probably be the solution for this, but like flameout said it would need to be handled in the code.
Callsigns: Tuxklok | N1292P
Don't text and fly: Give fgcom a try today!
Scenery for the Innsbruck area - more info
FGComGui - The open source, cross platform, gui front end for fgcom. more info
Tuxklok
 
Posts: 350
Joined: Tue Apr 21, 2009 12:04 pm
Location: Orlando, FL

Re: Rain bug.

Postby F22-killed-you on Sat Nov 07, 2009 5:03 pm

Are you talking about rain and snow appearing in the cockpit? That's what happens to me :?

Swindel
Callsign: Swindel

Yesterday is past, tomorrow is future, today, is a gift! That's why it is called present.
F22-killed-you
 
Posts: 389
Joined: Sat Aug 30, 2008 2:17 am
Location: Monaco, Earth

Re: Rain bug.

Postby Liam on Sun Nov 08, 2009 1:34 pm

Close the window then :lol:, or maybe if its coming through the vents you should get that checked out... :idea:
Callsign(s): Speedbird, Liam
Favourite Airport(s): Norwich, Schiphol
Favourite Plane(s): A320-200, 747-400, 757-200, 767-300, 777-200ER, 737-400, 737-900ER.
Airbus A340-600 Development
Euroair
My Hangar
Liam
 
Posts: 973
Joined: Tue Dec 23, 2008 9:33 am
Location: Norwich, United Kingdom

Re: Rain bug.

Postby F22-killed-you on Sun Nov 08, 2009 1:37 pm

Liam wrote:Close the window then :lol:, or maybe if its coming through the vents you should get that checked out... :idea:


Is that a joke or do you mean it lol? :lol: If you meant it, i don't think you can close it further than closed, especially because the planes i usually fly with don't all have openable canopies.

Swindel :mrgreen:
Callsign: Swindel

Yesterday is past, tomorrow is future, today, is a gift! That's why it is called present.
F22-killed-you
 
Posts: 389
Joined: Sat Aug 30, 2008 2:17 am
Location: Monaco, Earth

Re: Rain bug.

Postby gooneybird on Sun Nov 08, 2009 1:50 pm

That problem has just been solved, in future all pilots will be issued with umbrellas :wink:
gooneybird
 
Posts: 814
Joined: Sat May 31, 2008 7:57 am
Location: Essex, UK

Re: Rain bug.

Postby F22-killed-you on Sun Nov 08, 2009 1:52 pm

gooneybird wrote:That problem has just been solved, in future all pilots will be issued with umbrellas :wink:


Advertising space on airplanes! Sweet idea lol. :mrgreen:

Swindel
Callsign: Swindel

Yesterday is past, tomorrow is future, today, is a gift! That's why it is called present.
F22-killed-you
 
Posts: 389
Joined: Sat Aug 30, 2008 2:17 am
Location: Monaco, Earth

Re: Rain bug.

Postby gooneybird on Sun Nov 08, 2009 1:55 pm

And if you're lucky you get a "brolly dolly" to hold it :lol:
gooneybird
 
Posts: 814
Joined: Sat May 31, 2008 7:57 am
Location: Essex, UK

Re: Rain bug.

Postby F22-killed-you on Sun Nov 08, 2009 1:58 pm

gooneybird wrote:And if you're lucky you get a "brolly dolly" to hold it :lol:


At mach 1+ with a fighter :mrgreen:

Swindel
Callsign: Swindel

Yesterday is past, tomorrow is future, today, is a gift! That's why it is called present.
F22-killed-you
 
Posts: 389
Joined: Sat Aug 30, 2008 2:17 am
Location: Monaco, Earth

Re: Rain bug.

Postby Gijs on Sun Nov 08, 2009 2:37 pm

rain and snow appearing in the cockpit

Yesterday (or was it today?) I heard Durk explaining to a visitor of our booth in Lelystad why we had rain in our cockpits: "it's an open source/window cockpit" ;)
Callsign: PH-GYS
Airports: EGLL, EHAM, EHLE, KSFO
Aircraft: 747-400, DC-2, F-117, F-35, Jetman, L1011-500
FlightGear Liveries
Gijs
 
Posts: 2960
Joined: Tue Jul 03, 2007 8:55 am
Location: Amsterdam, the Netherlands

Re: Rain bug.

Postby gooneybird on Sun Nov 08, 2009 2:44 pm

Gijs wrote:Yesterday (or was it today?) I heard Durk explaining to a visitor of our booth in Lelystad why we had rain in our cockpits: "it's an open source/window cockpit" ;)

:lol: :lol: :lol: I like that :lol: :lol:
gooneybird
 
Posts: 814
Joined: Sat May 31, 2008 7:57 am
Location: Essex, UK

Re: Rain bug.

Postby F22-killed-you on Sun Nov 08, 2009 3:04 pm

Gijs wrote:
rain and snow appearing in the cockpit

Yesterday (or was it today?) I heard Durk explaining to a visitor of our booth in Lelystad why we had rain in our cockpits: "it's an open source/window cockpit" ;)


:lol: LOL what a great excuse! :mrgreen:

Swindel
Callsign: Swindel

Yesterday is past, tomorrow is future, today, is a gift! That's why it is called present.
F22-killed-you
 
Posts: 389
Joined: Sat Aug 30, 2008 2:17 am
Location: Monaco, Earth


Return to New Features

Who is online

Users browsing this forum: No registered users and 2 guests