July 8, 201015 yr Hi, I'm looking for a way to convert a Google Earth kmz file (which includes coordinates and a jpg image of the scenery)to a bgl file that will display this scenery "tile" in FSX.I can find manual ways of extracting coordinates and entering them into tools, but that would seemoverly cumbersome if all I want to do is display some photo scenery in the middle of nowhere whichis actually exactly what I would like to accomplish.Is there a simple way to accomplish this? Bert
July 8, 201015 yr I don't know what you have, so the answer can't be precise. Imagery is done by the Resample compiler and that tool needs the source to be other than JPEG. It's easy enough to convert the JPEG to a BMP file, which Resample will use. But you then need coordinates for the four corners, as all imagery must be square or rectangular for Resample to process. With the coordinates and the images rows and columns you can compute the xdim and ydim, which is a method of telling Resample that each pixel covers "xx" degree of lat/lon. Sounds really confusing, but once you've done it once or twice it becomes fairly simple.The other option would be if you know the four corner coordinates is to change the file to BMP, load it into SBuilderX, geo-rectify the image so that SBX knows what to pass on to Resample and make a BGL file that way.Any further questions? :( Other might know of a method to work with/from the KMZ file, but I cannot recall seeing anything.
July 8, 201015 yr Author I don't know what you have, so the answer can't be precise. Imagery is done by the Resample compiler and that tool needs the source to be other than JPEG. It's easy enough to convert the JPEG to a BMP file, which Resample will use. But you then need coordinates for the four corners, as all imagery must be square or rectangular for Resample to process. With the coordinates and the images rows and columns you can compute the xdim and ydim, which is a method of telling Resample that each pixel covers "xx" degree of lat/lon. Sounds really confusing, but once you've done it once or twice it becomes fairly simple.The other option would be if you know the four corner coordinates is to change the file to BMP, load it into SBuilderX, geo-rectify the image so that SBX knows what to pass on to Resample and make a BGL file that way.Any further questions? :( Other might know of a method to work with/from the KMZ file, but I cannot recall seeing anything.OK, I've loaded the bmp file into SbuilderX (add Map from disk) and calibrated the two corners (top left and bottom right).When I try to Compile this into a BGL file, I get the message to go back and select something to compile..How do I do that?I have drawn a polygon around the area and selected "All polygons" but that does not do it..I must be missing a step.... :( Bert
July 8, 201015 yr I must be missing a step.... :(Yes, you forgot to download and review the wonderful tutorial by Luis Feliz-Tirado; http://library.avsim.net/download.php?DLID=140539Once you have the Map in SBX you click on the edge to highlight it, then the menu Select | All Maps where the corners turn red, then hit the green compile button. But... SBX expects (requires!) all photo generation to be named Photo_xxx. So right-click on the edge of the Map and select Properties and double check that you have a "proper" MAP name, such as Photo_Bert. Once the file is created you can rename the BGL file to whatever you wish.Then you'll be ready to get into blendmasking the imagery to fit it into the surrounds. Something that sounds worse than it really is.Congrats on making it this far. Most people quit because it's not push one button and done!
July 8, 201015 yr Author Yes, you forgot to download and review the wonderful tutorial by Luis Feliz-Tirado; http://library.avsim.net/download.php?DLID=140539Once you have the Map in SBX you click on the edge to highlight it, then the menu Select | All Maps where the corners turn red, then hit the green compile button. But... SBX expects (requires!) all photo generation to be named Photo_xxx. So right-click on the edge of the Map and select Properties and double check that you have a "proper" MAP name, such as Photo_Bert. Once the file is created you can rename the BGL file to whatever you wish.Then you'll be ready to get into blendmasking the imagery to fit it into the surrounds. Something that sounds worse than it really is.Congrats on making it this far. Most people quit because it's not push one button and done!Thanks for helping me through this!I've now got the compile function to execute, but it only creates an inf file in the Work folder with the following content (and no BGL file):[source] Type = BMP Layer = Imagery SourceDir = "." SourceFile = "Kasempa.bmp" Variation = All NullValue = 255,255,255 SamplingMethod = Gaussian ulyMap = -13.4587199722222 ulxMap = 25.8226015 xDim = 4.51158574540911E-05 yDim = 4.38728536612395E-05[Destination] DestDir = "." DestBaseFileName = "Photo_Michelle" DestFileType = BGL LOD = Auto UseSourceDimensions = 1 CompressionQuality = 100 Bert
July 9, 201015 yr Who's Michelle? :( Here is what I would do. Make a new folder in Windows Explorer, for example c:\Photo. Copy and paste Resample.exe, the .INF file and the Kasempa.BMP file to the new folder. Open a command window (DOS prompt) and navigate to the new folder that you made. If you're not proficient at DOS commands, the DOS prompt may say C:\Documents and Settings etc, so type cd\photo and hit enter. The DOS prompt should now read c:\Photo. At the DOS prompt type Resample xxx.inf where the xxx is the name for the INF file (Photo_Michelle.inf?). You will either see the file compiled and the new BGL file in the \Photo folder or an error message of some sorts will appear in the command window.If you get an error message, try to write down what it says or grab a screenie.
July 9, 201015 yr Author Who's Michelle? :( Here is what I would do. Make a new folder in Windows Explorer, for example c:\Photo. Copy and paste Resample.exe, the .INF file and the Kasempa.BMP file to the new folder. Open a command window (DOS prompt) and navigate to the new folder that you made. If you're not proficient at DOS commands, the DOS prompt may say C:\Documents and Settings etc, so type cd\photo and hit enter. The DOS prompt should now read c:\Photo. At the DOS prompt type Resample xxx.inf where the xxx is the name for the INF file (Photo_Michelle.inf?). You will either see the file compiled and the new BGL file in the \Photo folder or an error message of some sorts will appear in the command window.If you get an error message, try to write down what it says or grab a screenie.Brilliant!!! Worked like a charm.Thank you!!Michelle is my daughter, working for a 10 week stint at Mukinge Hospital in NW Zambia.I found the location in Google Earth and wanted to see if I could add it to my scenery collection....Picture attached.. Bert
July 9, 201015 yr Super! A little work cleaning up the imagery and you're good to go. Night textures, full autogen, you'll be a famous scenery geek!I appreciate your stick-to-it-ness. All too often people try to do something and give up after the first attempt. Generally they are closer to getting results than they realize. I like to help out those that want to learn and succeed, rather than be given a step-by-step routine that gives them results, but little to no knowledge.
Create an account or sign in to comment