Howto:Convert objects from X-Plane: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 22: Line 22:
For the impatient, here's how you convert the model semi-automatically using my scripts. You will find the manual step-by-step tutorial below.
For the impatient, here's how you convert the model semi-automatically using my scripts. You will find the manual step-by-step tutorial below.


Since I couldn't find an easy way to control blender from the command line, I decided to do a really dirty hack: emulate mouse clicks and key strokes using "xte" from Steve Slaven's xautomation package. Of course, this has some limitations: we rely heavily on the exact Blender screen/menu layout. I'm sure there's a better solution. Feel free to enlighten me.
Since I couldn't find an easy way to control blender from the command line, I decided to do a really dirty hack: emulate mouse clicks and key strokes using "xte" from Steve Slaven's xautomation package. Of course, this has some serious limitations: we rely heavily on the exact Blender screen/menu layout I hacked into the script. I'm sure there's a better solution. Feel free to enlighten me.


Unpack the scripts somewhere, cd there. You should have the following files
Unpack the scripts somewhere, cd there. You should have the following files
Line 100: Line 100:


== 2. Step-by-step ==
== 2. Step-by-step ==
'''todo'''
get  
get  
Bluewonder.zip
Bluewonder.zip
Line 151: Line 154:
heading is 238.5
heading is 238.5
alt given here is AGL. Can we place it in FG like this, too??
alt given here is AGL. Can we place it in FG like this, too??
Merely guess alt here: 800
Merely guess alt here: 120


.stg line would read:
.stg line would read:
Line 160: Line 163:
$FG_SRC/source/scripts/perl/scenery/calc-tile.pl
$FG_SRC/source/scripts/perl/scenery/calc-tile.pl


tom@mango convert-sandbox $ calc-tile.sh 51.0535 13.8101
# calc-tile.sh 51.0535 13.8101
Longitude: 51.0535
Longitude: 51.0535
Latitude:  13.8101
Latitude:  13.8101
153

edits

Navigation menu