• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Edit lclookup.bgl?

Messages
8
Country
australia
At this link (https://www.fsdeveloper.com/forum/threa ... ng.433181/) there is a spreadsheet by Holger Sandemann showing mappings of land class names to texture file groups. Rows 7 and 8 on the "Region B" tab show that land class values 5 and 6 (Deciduous Broadleaf Forest and Evergreen Broadleaf Forests) are both mapped to the texture group with prefix "028b".

Q1. Is this mapping contained in lclookup.bgl located in "C:\Program Files\Lockheed Martin\Prepar3D v5\Scenery\BASE\Scenery"

Q2. Is it possible to edit lclookup.bgl?

Note: I'm not particularly looking to make that change. I'm interested in whether it's possible in general to remap land class values to texture file groups, and if so, how one goes about doing it.

I asked on the P3D forums but no luck as yet.
 
Yes, that is the correct file, and yes, the file contains the mappings of landclass IDs to texture set IDs. The basic format is a list of texture sets (containing much of the metadata in each row in the region B tab), then a list of region lookups with each region having a list of landclass and waterclass to texture set ID mappings (from your Q1). Then, for each landclass (not texture set) there is a list of slope remappings at 5.625 degree increments (16), then again for each landclass a list of vector texture remappings for Rails, Roads, Airport Boundaries, Streams, and Utilities (5). The basics of the algorithm that uses all of this data is here: https://online.fliphtml5.com/yyld/cvaw/#p=1

Editing this is possible and that formed the basis of much of the Orbx/FTX vector landclass products for FSX/P3D.
 
Last edited:
With the aid of code provided by theisomizer I've been able to decompile and compile the lclookup.bgl file. Working on exporting and importing from Excel at present. One question I have is does anybody know if there is a file in P3D that lists the geographic region strings. I know they are in the learning centre and indeed in Holger's excel spreadsheet. The landclass strings are in terrain.cfg and I hoped I might be able to read the region strings from a P3D file as well. When you use the tmfviewer app the strings are shown when you mouse over pixels looking at regions.bgl so they are either hardcoded into the app or sourced from somewhere.

Note: the learning centre lists A to Y but the tmfviewer app shows New Zealand as 'Z' consistent with Holger's spreadsheet FSX list - so there is an inconsistency there.
 
The obvious answer is that they are based on the ICAO codes, but that's not so because 'Z' is mainland China and not New Zealand. Best guess then is that yes, they are hard-coded and don't represent the real world.
 
Back
Top