Hi Thorsten,

There is a direction vector available for each runway light.  This is stored inside the airport .btg file along with the location and type for each light.

The original implementation used a cube map aligned with the direction vector, along with a "cleverly" designed texture to produce the desired intensity in the desired direction, along with smooth fading as you moved away from the optimal view direction.  The center of the cube map texture was the brightest (viewed straight on from the ideal approach path) and the edges were dimmest (viewed from a perpendicular direction.)

The end result was that runways were actually pretty dim when viewed from the side, but as you flew around to the ideal approach path, they smoothly became brighter and brighter.

For taxi edge lights we gave a direction vector that is straight up, and then designed our cube map so the center was darkest (i.e. when viewed from above) and the edges were brightest (viewed from ground level.)  So as you overflew an airport, you could hardly see the taxi lights, but from the ground they were very visible.

So my main point is that the light direction is encoded in the .btg file for each light, but off the top of my head, I can't say exactly how far up the call chain that information propagates ... much (all?) of that code has changed substantially since I originally wrote it, but the direction information is there to be used.



On Wed, Jul 30, 2014 at 4:58 AM, Stefan Seifert <nine@detonation.org> wrote:
> Why that'd map into
> a personal issue remains your secret.

Please, if you both take a step back, you may notice, that this is just a
classic case of written communication over a lengthy period of time of an
international audience gotten a bit out of hand.

You're obviously both trying to work together to solve the issue and improve
FlightGear. You're maybe just focusing on slightly different areas which gives
great opportunities for misunderstandings. From a neutral observer's
perspective, I'd bet that if you were in the same room discussing this in 15
minutes instead of a couple of days, you'd get along great and have this thing
nailed in no time.


Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
Flightgear-devel mailing list

Curtis Olson:
http://www.atiak.com - http://aem.umn.edu/~uav/
http://www.flightgear.org - http://gallinazo.flightgear.org