[I originally posted this to the old SF terragear-devel list by
mistake.]

I've created a new TerraGear prep program, tguserdef, to make it easy
to add user-defined points, lines, and polygons to the terrain to
supplement the ones from vmap0 and other sources.

tguserdef uses the standard XML-based SimGear property-list format to
define points, lines, and polygons, but to avoid verbosity it does not
require you to tag each vertex separately.  Here is an example of a
small town (1km x 1km) added to the scenery (the <name> property is
optional in all of the examples):

 <point>
  <name>North Gower</name>
  <material>Town</material>
  <v>-75.72 45.13</v>
  <width>1000</width>
 </point>

Here is an example of a short county road with one bend:

 <line>
  <name>Ottawa-Carleton Road 6</name>
  <material>Road</material>
  <width>10</width>
  <v>
   -75.72 45.13
   -75.77 45.11
   -75.90 45.03
  </v>
 </line>

And here is an example of a suburb:

 <polygon>
  <name>Kanata (north end)</name>
  <material>Urban</material>
  <contour>
   <hole>false</hole>
   <v>
    -75.90 45.34
    -75.91 45.34
    -75.92 45.33
    -75.91 45.32
    -75.90 45.33
    -75.91 45.33
   </v>
  </contour>
 </polygon>

These objects will appear in the final scenery exactly as if they had
been defined in vmap0 in the first place.  Use tguserdef the same way
you use tgvpf, e00lines, and other prep tools.


All the best,


David

-- 
David Megginson, [EMAIL PROTECTED], http://www.megginson.com/

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to