XML Format
Scenery objects are placed inside of the elements. The following XML shows the XML file structure used for scenery objects and will put an oil drilling rig next to the runway at SeaTac airport.
lat="N47 25.89"
lon="W122 18.42"
就是 Seattle Tacoma International airport 機場 (KSEA) 的經緯度。
All scenery objects are contained within a SceneryObject element. The SceneryObject element has several required attributes that define the placement of the object in the world. For this sample, the SceneryObject contains a LibraryObject that represents a water tower.
Copy the above sample into Notepad (or another text editor) and save it to disk.
Run the BGLComp compiler on the file and a resulting .BGL file will be created.
Copy the .BGL file to the Addon Scenery\scenery directory of your Flight Simulator installation and run Flight Simulator.
Select the default startup flight and you will see a placement of the drilling rig in just off the runway at Seattle Tacoma International airport.
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:noNamespaceSchemaLocation="bglcomp.xsd" >
lon="W122 18.42"
alt="0"
altitudeIsAgl="TRUE"
pitch="0"
bank="0"
heading="0"
imageComplexity="NORMAL">
scale="1.0"/>
利用 Google Earth 輸入經緯度。果然是在這個位置上!
沒有留言:
張貼留言
歡迎大家在最...下方「留言」寫下想跟阿杰老師說的話喔!!