December 30, 200421 yr Hi, all I'm making custom approach light for my Inchoen Intl Airport(RKSI) scenery. I made lights using gmax LIGHT_NAV material. And I made them show only at dusk and night by BGLC code tweaking. It's great! But my custom lights don't work in fog. :(; Default approach light is visible during day time in case of low visibility. So How can I make my lights visible in fog? I searched the BGLC variable relative to visibility but it's vain. Or is there another way?And this is another question...I want directional lights (visible only one side). I found some useful BGLC code in this forum like below.#9616, "RE: gMax Approach lights, help!" by jvarjeI add a NAV light in gmax and then edit the BGL source so that the poles are only visible from one side, like this:IFMSK wrong_direction, 386h, 8000hBGL_LIGHT LIGHT_NAV, etc...wrong_direction label wordThat checks if the relative z-coordinate, or north-to-south-coordinate, is negative. This works also when the object is rotated, because the relative z-coordinate is also rotated. At the same time I can add other IF-clauses for additional functionality.I find out 386h is variable of Aircraft Y(north) coordinate from RefPoint. But I don't know what 8000h means. It's just Y coordinate in hex format? Then sShould I convert coordinate to hex in this code?Thank you for reading long question...you can download RKSi scenery and preview(http://www.cookieshop.co.kr/flyfreesky/zboard/zboard.php?id=hompage_freeboard&page=1&sn1=&divpage=1&sn=off&ss=on&sc=on&select_arrange=headnum&desc=asc&no=28&PHPSESSID=78229443fc7ca6ce96c284385e5cee65) next version in my homepage. :-)Yunjin Leehttp://flyfreesky.com
December 31, 200421 yr Commercial Member Hi Yunjin,No, unfortunately there is no variable for the visibility. You could link the lights to the tower frequency. In that case they will be on when you make an approach (in reality they are also always on when the runway is active).Humm, yes it seems the value of 8000h is just a big value in hexadecimal format. Actually it is 32768 in decimal format, which is the maximum value the coordinates could take in the previous BGL formats. Arno If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done. FSDeveloper.com | Former Microsoft FS MVP | Blog
Create an account or sign in to comment