Jump to content
Sign in to follow this  
Guest Stormshadow

Default BGL code query

Recommended Posts

Guest Stormshadow

Hi all,I de-assembled the hyp524008 bgl file found in the SCENEBeasthemeursscenery folder and had a look at the code constituting the asm file.There is an area, (20, 20) which in the default scenery is all water. In the code I get area fills and LWM Polygons in the following order:LWMDataAreaDrawPolygons 1, 3, 1, 20, 20LWMPoly2 4, 0, 0, 0, 0 LWMPoint 1, 1 LWMPoint 255, 1 LWMPoint 255, 255 LWMPoint 1, 255LWMDataAreaFill1x1 0, 0, 1, 20, 20LWMDataAreaHeight 0, 0LWMDataAreaDrawPolygons 1, 3, 1, 20, 20LWMPoly2 6, 0, 0, 0, 0 LWMPoint 1, 206 LWMPoint 1, 1 LWMPoint 255, 1 LWMPoint 255, 255 LWMPoint 1, 255 LWMPoint 1, 206LWMDataAreaDrawPolygons 1, 3, 1, 20, 20LWMPoly2 4, 0, 0, 0, 0 LWMPoint 1, 206 LWMPoint 1, 1 LWMPoint 255, 1 LWMPoint 255, 206LWMDataAreaDrawPolygons 1, 3, 1, 20, 20LWMPoly2 4, 0, 0, 0, 0 LWMPoint 1, 206 LWMPoint 1, 1 LWMPoint 255, 1 LWMPoint 255, 206LWMDataAreaDrawPolygons 1, 3, 1, 20, 20LWMPoly2 6, 0, 0, 0, 0 LWMPoint 12, 253 LWMPoint 1, 251 LWMPoint 1, 1 LWMPoint 255, 1 LWMPoint 255, 255 LWMPoint 50, 255LWMDataAreaDrawPolygons 1, 3, 1, 20, 20LWMPoly2 4, 0, 0, 0, 0 LWMPoint 1, 255 LWMPoint 1, 255 LWMPoint 1, 1 LWMPoint 1, 1LWMDataAreaFill1x1 0, 0, 1, 20, 20LWMDataAreaHeight 0, 0LWMDataAreaDrawPolygons 1, 3, 1, 20, 20LWMPoly2 5, 0, 0, 0, 0 LWMPoint 118, 93 LWMPoint 1, 170 LWMPoint 1, 1 LWMPoint 255, 1 LWMPoint 255, 5My question then is: If this area constitutes only water, why shouldn't an area fill suffice???? Is it because there is different water types in this area?Reply very much appreciated, cheersStorm

Share this post


Link to post
Share on other sites
Guest Stormshadow

Instead of commenting all the code relevant to this area, would it be better to replace the 0m altitude to -9999 which would make the mesh conform?Storm

Share this post


Link to post
Share on other sites

Hi Storm.The AreaFill should suffice.The problem with much of the default BGLs is that they are coded "mechanically" from GIS data. Somewhere in that data there was an oddity, and that code was produced.These same types of oddities made Prince Edward Island underwater in FS2002.Dick

Share this post


Link to post
Share on other sites
Guest Stormshadow

Thanks Dick for your reply. I assumed such coding methods - it would tens of years to manually code the entire world!! Storm

Share this post


Link to post
Share on other sites
Guest Stormshadow

Hi Rhumba,Err I just noticed that the hyp file has got code for many cells and all Im interested in is the 414,153 cell!! hence the many code sections for the polygon in question!I encountered another problem - err I've got this LOD13 area which is practically, by default, all land apart from a slight corner section. I have found the code part of this area (listed hereunder). I have modified the mesh for this region aswell but the mesh remains at 0m even when I substitute the 0m altitude value of the hyp code to -9999:-LWMDataAreaDrawPolygons 1, 3, 1, 31, 28LWMPoly2 3, 0, 0, -9999, 0 LWMPoint 187, 1 LWMPoint 255, 1 LWMPoint 255, 72My mesh is at about 15m which should be visible in FS. Could there be another file somewhere containing some code for this region aswell? I haven't flattened any part of this region when making changes to the coastlines. I even tried commenting the code part out to no avail.What d'you reckon Dick?Storm

Share this post


Link to post
Share on other sites
Guest Stormshadow

After hours trying to figure out what the problem was, I noticed I had an extra water LWM at 0m covering the entire LOD13 area in coastline maker!!Thanks anyways!Storm

Share this post


Link to post
Share on other sites

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...