Sign in to follow this  
TheFiddler

Meshed Again, part II -- the Isle of Plight now in FS9

Recommended Posts

Hello all,some time ago I made an island for FS2002, and one of the many issues (finally solved) was having correct terrain and coastlines.As it turned out, the respective FS2002 hyp*.bgl file flattened the island mesh. After just removing the hyp*.bgl file, terrain was fine, but the coastlines were now reflecting the cell squares, not the real beach.The solution, arrived at with the incessant help of the kind people here (thanks Dick, Los Dos Luises, and Holger!), was to hack the hyp*.bgl file, to introduce "clinging water".(see the [a href=http://forums.avsim.net/dcboard.php?az=show_topic&forum=123&topic_id=18304&mesg_id=18304&page=&topic_page=3]old thread[/a] "An Island for FS2002", started on Sun Feb-22-04 09:24 PM; go to the end with rhumbaflappy's message from Sun Feb-29-04 11:09 PM)Thus:FS2002 original hyp*.bgl:

CellID_000075 EQU LWMCellID 0, 0, _Transparent_, 437, 85  LWMDataAreaFill8x8 0, _Water_, 0, 1, 0, 0, 0	LWMDataAreaHeight -1, 0   . . .  LWMDataAreaDrawPolygons 2,3,1,14,1  LWMPoly2 8, 0, _Water_, -1, 0	LWMPoint 41, 108  . . .

[p class=dcmessage]hacked FS2002 hyp*.bgl ("-1" replaced by "-9999"):[/p]

CellID_000075 EQU LWMCellID 0, 0, _Transparent_, 437, 85  LWMDataAreaFill8x8 0, _Water_, 0, 1, 0, 0, 0	LWMDataAreaHeight -9999, 0  . . .	  LWMDataAreaDrawPolygons 2,3,1,14,1  LWMPoly2 8, 0, _Water_, -9999, 0	LWMPoint 41, 108  . . .

[p class=dcmessage]So far so good. Worked beautifully. Now I moved the island to FS9, and am seeing basically the same thing: island flat, removing the respective HP*.bgl file restores the terrain, but coastlines now wrong.The original FS9 HP*.bgl disassembly looks like this:[/p]

CellID_000044 EQU LWMCellID 0, 0, _Transparent_, 437, 85  LWMDataAreaFill8x8 0, _Water_, 0, 1, 0, 0, 0	LWMDataAreaHeight 0, 0  . . .  LWMDataAreaDrawPolygons	2,_Transparent_,1,14,1  LWMPoly3 8, 0, _Water_, 0, 0, 0, 0  ; N60* 6.16', E25* 2.92'	LWMPoint3 41, 108, 0  . . .

[p class=dcmessage]So, for one thing the nice conspicuous "-1"s (to be changed to -9999) have gone; instead there are "0"s in LWMDataAreaHeight in FS9 .And then there is now LWMPoly3 instead of LWMPoly2, with a different number of parameters altogether.Can someone please advise how to apply the above FS2002 "clinging water" hack in FS9?[/p] [ul][li][p class=dcmessage]Just brazenly replace the first "0" in LWMDataAreaHeight by "-9999", as before with the "-1"?[/p][/li][li][p class=dcmessage]And what where to replace in LWMPoly3?[/p][/li][li][p class=dcmessage]Also, how about re-compiling with bglc -- is it enough to make sure that the correct version of TDFMacros.inc and TDFHeaders.inc are included, or is there anything else to worry about?[/p][/li][/ul][p class=dcmessage]As always, many thanks in advance for any pointers! Cheers,Martin [/p]

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this