Roman, Runway lights code is encapsulated using #ifdef FG_EXPERIMENTAL_LIGHTING and is being used (as far as I know, only by me so far) for deck lights on the carrier. Yes, the same could be used for runway lights too. The info on lights is intended to be held in the same file that holds vertex/polygon info of tiles and not the objects.txt file. setcolor() and setcolor2() functions produce textures on the fly for env. mapping (coded by Christian Mayer) to produce directional lights. setcolor2() is used for lights that have different visibility in elevation and azimuth, while setcolor() produces symmetric visibility. At present runway lights' coords are read only in the fgLoadDCS() function in main.cxx which is used to load moving objects like the aircraft carrier. To get runway lights on ground you have to copy **this code** to obj.cxx (preferably) or tileentry.cxx (using a seperate file with only runway light coords tied to a particular tile as is done for other static objects). The light point coords are entered as: IMPORTANT *** I use object coords for runway direction, normals and coords since the aircraft carrier is loaded using object coords. To draw runway lights on ground you have to use Tile coodinates.***
runway 1.0 0.0 0.0 edgelight 0.0 0.0 1.0 lp 4.5000 0.0000 20.2100 lp 16.5000 0.0000 21.0100 lp 4.5000 0.0000 20.2100 ... ... red 0.0 0.0 1.0 lp -137.2735 -7.1736 17.2100 lp -137.2735 -7.1736 14.2100 lp -137.2735 -7.1736 11.2100 ... ... green 0.0 0.0 1.0 lp 47.6133 36.3383 21.5000 lp 47.3350 38.3189 21.5000 ... ... vasi or rabbit or ... lp ... lp ... Repeat for each runway. Regards Ranga -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Roman Grigoriev Sent: Wednesday, January 16, 2002 5:04 PM To: [EMAIL PROTECTED] Subject: [Flightgear-devel] runway lights Hi guys! Still try to implement runway lights find some section in tileentry.cxx RWY_LIGHTS but i think it's unfinished also when i looked in tile_entry.cxx i found various runway lights initialsations but i don't understand angular_size in setcolor() function and elev_size and azimut_size in setcolor2 function could you please explain it? also i find section in main.cxx that read lights from object.txt does someone use it? Thanx in advance bye _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel