153
edits
mNo edit summary |
mNo edit summary |
||
Line 98: | Line 98: | ||
[[File:bluewonder_in_FG.jpg]] | [[File:bluewonder_in_FG.jpg]] | ||
== 2. Step-by-step == | |||
get | |||
Bluewonder.zip | |||
Bluewonder_MDL_XML.zip | |||
from helles-flusi.de | |||
mkdir -p msfs/Bluewonder | |||
mkdir -p fgfs/Bluewonder | |||
unzip -d msfs/Bluewonder Bluewonder.zip | |||
Archive: Bluewonder.zip | |||
creating: msfs/Bluewonder/Scenery/ | |||
creating: msfs/Bluewonder/Texture/ | |||
inflating: msfs/Bluewonder/Bluewonder.txt | |||
inflating: msfs/Bluewonder/Copyright.txt | |||
inflating: msfs/Bluewonder/Scenery/Bluewonder.BGL | |||
inflating: msfs/Bluewonder/Texture/Bluewonder_LM.bmp | |||
inflating: msfs/Bluewonder/Texture/Bluewonder.bmp | |||
inflating: msfs/Bluewonder/Texture/Bruehl.bmp | |||
inflating: msfs/Bluewonder/Texture/Bruehl_LM.bmp | |||
bin/fs2xp $PWD/msfs/Bluewonder/ "~/X-Plane 9 Demo/Custom Scenery/Bluewonder" | |||
fire up blender | |||
File->Import->X-Plane Object (.obj) | |||
navigate to X-Planes Custom scenery/Bluewonder/objects, | |||
import 19111954103466011120071138347272-Bluewonder.obj | |||
export: | |||
File->Export->AC3D (.ac) | |||
save to fgfs/Bluewonder/bluewonder.ac | |||
(if nothing happens, use 'a' to select all prior to exporting) | |||
copy texture from X-Plane to fgfs: | |||
cp "~/X-Planes Custom scenery/Bluewonder/objects/Bluewonder.png fgfs/Bluewonder/ | |||
cp "$HOME/X-Plane 9 Demo/Custom Scenery/Bluewonder/objects/Bluewonder.png" fgfs/Bluewonder/ | |||
osgviewer fgfs/Bluewonder/Bluewonder.ac | |||
- get coordinates | |||
unzip -d msfs/Bluewonder/ Bluewonder_MDL_XML.zip | |||
look in msfs/Bluewonder/Bluewonder.XML | |||
<SceneryObject lat="51 3.21" lon="13 48.605" alt="0" pitch="0" bank="0" heading="238.5" altitudeIsAgl="TRUE" imageComplexity="NORMAL"> | |||
Latitude and longitude are given in grad minutes. Convert to float grad: | |||
lat = 51 + 3.21/60 = 51.0535 | |||
lon = 13 + 48.605/60 = 13.8101 | |||
heading is 238.5 | |||
alt given here is AGL. Can we place it in FG like this, too?? | |||
Merely guess alt here: 800 | |||
.stg line would read: | |||
OBJECT_STATIC Bluewonder.ac 13.8101 51.0535 800 238.5 | |||
find FGFS tile number: | |||
$FG_SRC/source/scripts/perl/scenery/calc-tile.pl | |||
tom@mango convert-sandbox $ calc-tile.sh 51.0535 13.8101 | |||
Longitude: 51.0535 | |||
Latitude: 13.8101 | |||
Tile: 3791344 | |||
Path: "e050n10/e051n13/3791344.stg" | |||
bin/xml2stg.sh msfs/Bluewonder/Bluewonder.XML | |||
OBJECT_STATIC msfs/Bluewonder/Bluewonder.ac 13.8101 51.0535 800 238.5# e010n50/e013n51/3171139.stg |
edits