Re: [Flightgear-devel] FlightGear version 9.2 Help Request

2005-02-17 Thread Chris Metzler
On Wed, 16 Feb 2005 21:11:13 +0200
Paul Surgeon wrote:

 No, the xml files are used to change attributes of models (animations,
 visual range, scale, etc)
 
 Here is a quick rundown on how to add a shared model to the current
 version of FlightGear - I'm not sure if this is applicable to 0.9.2
 since I never ran that version and wouldn't have remembered anyway.  :)

[ snip ]

 Step 2 :
 Inside the data/Models/MyModels drirectory create an xml file called 
 foomodel.xml with the following contents :

It's worth noting that you don't *have* to create an .xml file.  The
entry in the *.stg file can refer to a model file (e.g. foomodel.ac or
foomodel.3ds) rather than an .xml file (e.g. foomodel.xml).  You probably
*want* to use an .xml file, with the .xml file containing the model
filename, as noted here, because then you get all the additional bells
and whistles possible through the .xml file.  But you don't *have* to
do it that way.

-c

-- 
Chris Metzler   [EMAIL PROTECTED]
(remove snip-me. to email)

As a child I understood how to give; I have forgotten this grace since I
have become civilized. - Chief Luther Standing Bear


pgpcWJXRIfPb7.pgp
Description: PGP signature
___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

RE: [Flightgear-devel] FlightGear version 9.2 Help Request

2005-02-17 Thread Geoffrey Frost
Thanks so much for your help, this works like a charm for FlightGear 0.9.2.

Geoffrey Frost

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Paul Surgeon
Sent: Wednesday, February 16, 2005 11:11 AM
To: FlightGear developers discussions
Subject: Re: [Flightgear-devel] FlightGear version 9.2 Help Request

On Wednesday, 16 February 2005 20:05, Geoffrey Frost wrote:
 Can I just replace the radio-medium.xml file with a .3ds model and get the
 same results?

 Geoffrey Frost

No, the xml files are used to change attributes of models (animations,
visual
range, scale, etc)

Here is a quick rundown on how to add a shared model to the current version
of
FlightGear - I'm not sure if this is applicable to 0.9.2 since I never ran
that version and wouldn't have remembered anyway.  :)

Step 1 :
Create a directory under the FlightGear data/Models directory.
I'm going to use data/Models/MyModels as an example.

Step 2 :
Inside the data/Models/MyModels drirectory create an xml file called
foomodel.xml with the following contents :

?xml version=1.0?

PropertyList

 pathfoomodel.3ds/path

 animation
  typerange/type
  min-m0/min-m
  max-m25000/max-m
 /animation

/PropertyList

Step 3 :
Create an 3ds model called foomodel.3ds and save it into the
data/Models/MyModels directory. Notice that the xml file references the 3ds
model file and tells FG that it must be visible from 0 meters up to 25 km.

Step 4 :
Start FG and fly (or use UFO model and move) to the location where you want
to
place the model.
Open up the property browser in FG and write down the lat, lon and altitude
where you want to place the model. (File-Browse Internal
Properties-Position)

Step 5 :
In CVS there is a perl program called calc-tile.pl that works out what stg
file a geodetic coordinate falls in.
You can get it here if you don't feel like playing with CVS and don't have
the
CVS branch installed :
http://cvs.flightgear.org/cgi-bin/viewcvs/viewcvs.cgi/*checkout*/FlightGear/
scripts/perl/scenery/calc-tile.pl?rev=HEADcvsroot=FlightGear-0.9content-ty
pe=text/x-perl

Run the perl script in a terminal window passing it the longitude and
latitude
that you wrote down in step 4. You'll probably have to install perl first if
you run on a MS OS's.

Example :
[EMAIL PROTECTED] scenery]$ ./calc-tile.pl -55.5 30.3
Longitude: -55.5
Latitude:  30.3
Tile:  2039314
Path:  w060n30/w056n30/2039314.stg

Step 6 :
Open the corresponding stg file in your scenery directory
(in my case SceneryDir/w060n30/w056n30/2039314.stg)

Step 7 :
Add the following lines to the stg file replacing the parameters with your
own :
OBJECT_SHARED Models/MyModels/foomodel.xml -55.5 30.3 1000.0 0.00
The format is :
OBJECT_SHARED Relative path to model xml file lon lat altitude above
wgs84 ellipsoid rotation/heading

Step 8 :
Start FG and fly to where you added the model and it should be there.

Hope that helps
Paul

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] FlightGear version 9.2 Help Request

2005-02-16 Thread Erik Hofman
Geoffrey Frost wrote:
We are currently running FlightGear Version 9.2 for a UAV simulation in
which we fly the UAV into a balloon. We were able to successfully get a
balloon model into FlightGear 9.2, but in order to do so we are running
FlightGear in multiplayer mode, and have to run a simulation on two
different computers. We would like to be able to place the balloon into
FlightGear statically, but do not have the know how.
If you just want a static object at a fixed location and fixed altitude 
you could easily add it to the scenery.

If you take a look in the FlightGear/data/Scenery/w130n30/w123n37 
directory there are a couple of files with the .stg suffix. Now you 
could add the particular object by adding something like the following line:

OBJECT_SHARED Models/Structures/radio-medium.xml -122.438000 37.689917 
243.5 0

Where it represents:
type path lat lon orientation elevation
Maybe someone else can step in and explain the 942058 part of the file 
called 942058.stg ?

Erik
___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] FlightGear version 9.2 Help Request

2005-02-16 Thread Martin Spott
Erik Hofman wrote:

 Maybe someone else can step in and explain the 942058 part of the file 
 called 942058.stg ?

I cannot _explain_ it but I could point an an implementation of the
algorithm that's used to determine this number. This is part of
TerraGear:

  TerraGear/src/Prep/Tower/calc-tile.pl

Martin.
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] FlightGear version 9.2 Help Request

2005-02-16 Thread Frederic Bouvier
Martin Spott wrote:

 Erik Hofman wrote:

  Maybe someone else can step in and explain the 942058 part of the file
  called 942058.stg ?

 I cannot _explain_ it but I could point an an implementation of the
 algorithm that's used to determine this number. This is part of
 TerraGear:

   TerraGear/src/Prep/Tower/calc-tile.pl

Well, there is nothing to explain. It is just a magic/bucket number that is a
function of latitude and longitude of the tile and is used to index scenery
tiles. A tile being a 1/8 of a degree at the equator but its width shrink to
1/4 and 1/2 when the longitude increase ( in absolute value ).

The number is computed in simgear/bucket/newbucket.[hc]xx

-Fred

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


RE: [Flightgear-devel] FlightGear version 9.2 Help Request

2005-02-16 Thread Geoffrey Frost
Can I just replace the radio-medium.xml file with a .3ds model and get the
same results?

Geoffrey Frost

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Erik Hofman
Sent: Wednesday, February 16, 2005 12:49 AM
To: FlightGear developers discussions
Subject: Re: [Flightgear-devel] FlightGear version 9.2 Help Request


Geoffrey Frost wrote:
 We are currently running FlightGear Version 9.2 for a UAV simulation in
 which we fly the UAV into a balloon. We were able to successfully get a
 balloon model into FlightGear 9.2, but in order to do so we are running
 FlightGear in multiplayer mode, and have to run a simulation on two
 different computers. We would like to be able to place the balloon into
 FlightGear statically, but do not have the know how.

If you just want a static object at a fixed location and fixed altitude
you could easily add it to the scenery.

If you take a look in the FlightGear/data/Scenery/w130n30/w123n37
directory there are a couple of files with the .stg suffix. Now you
could add the particular object by adding something like the following line:

OBJECT_SHARED Models/Structures/radio-medium.xml -122.438000 37.689917
243.5 0

Where it represents:
type path lat lon orientation elevation

Maybe someone else can step in and explain the 942058 part of the file
called 942058.stg ?

Erik

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d



___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] FlightGear version 9.2 Help Request

2005-02-16 Thread Paul Surgeon
On Wednesday, 16 February 2005 20:05, Geoffrey Frost wrote:
 Can I just replace the radio-medium.xml file with a .3ds model and get the
 same results?

 Geoffrey Frost

No, the xml files are used to change attributes of models (animations, visual 
range, scale, etc)

Here is a quick rundown on how to add a shared model to the current version of 
FlightGear - I'm not sure if this is applicable to 0.9.2 since I never ran 
that version and wouldn't have remembered anyway.  :)

Step 1 :
Create a directory under the FlightGear data/Models directory.
I'm going to use data/Models/MyModels as an example.

Step 2 :
Inside the data/Models/MyModels drirectory create an xml file called 
foomodel.xml with the following contents :

?xml version=1.0?

PropertyList

 pathfoomodel.3ds/path

 animation
  typerange/type
  min-m0/min-m
  max-m25000/max-m
 /animation

/PropertyList

Step 3 :
Create an 3ds model called foomodel.3ds and save it into the 
data/Models/MyModels directory. Notice that the xml file references the 3ds 
model file and tells FG that it must be visible from 0 meters up to 25 km.

Step 4 :
Start FG and fly (or use UFO model and move) to the location where you want to 
place the model.
Open up the property browser in FG and write down the lat, lon and altitude 
where you want to place the model. (File-Browse Internal 
Properties-Position)

Step 5 :
In CVS there is a perl program called calc-tile.pl that works out what stg 
file a geodetic coordinate falls in.
You can get it here if you don't feel like playing with CVS and don't have the 
CVS branch installed :
http://cvs.flightgear.org/cgi-bin/viewcvs/viewcvs.cgi/*checkout*/FlightGear/scripts/perl/scenery/calc-tile.pl?rev=HEADcvsroot=FlightGear-0.9content-type=text/x-perl

Run the perl script in a terminal window passing it the longitude and latitude 
that you wrote down in step 4. You'll probably have to install perl first if 
you run on a MS OS's.

Example :
[EMAIL PROTECTED] scenery]$ ./calc-tile.pl -55.5 30.3
Longitude: -55.5
Latitude:  30.3
Tile:  2039314
Path:  w060n30/w056n30/2039314.stg

Step 6 :
Open the corresponding stg file in your scenery directory
(in my case SceneryDir/w060n30/w056n30/2039314.stg)

Step 7 :
Add the following lines to the stg file replacing the parameters with your 
own :
OBJECT_SHARED Models/MyModels/foomodel.xml -55.5 30.3 1000.0 0.00
The format is :
OBJECT_SHARED Relative path to model xml file lon lat altitude above 
wgs84 ellipsoid rotation/heading

Step 8 :
Start FG and fly to where you added the model and it should be there.

Hope that helps
Paul

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


RE: [Flightgear-devel] FlightGear version 9.2 Help Request

2005-02-16 Thread Geoffrey Frost
Thanks I will give this a try.

Geoffrey Frost

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Paul
Surgeon
Sent: Wednesday, February 16, 2005 11:11 AM
To: FlightGear developers discussions
Subject: Re: [Flightgear-devel] FlightGear version 9.2 Help Request


On Wednesday, 16 February 2005 20:05, Geoffrey Frost wrote:
 Can I just replace the radio-medium.xml file with a .3ds model and get the
 same results?

 Geoffrey Frost

No, the xml files are used to change attributes of models (animations,
visual
range, scale, etc)

Here is a quick rundown on how to add a shared model to the current version
of
FlightGear - I'm not sure if this is applicable to 0.9.2 since I never ran
that version and wouldn't have remembered anyway.  :)

Step 1 :
Create a directory under the FlightGear data/Models directory.
I'm going to use data/Models/MyModels as an example.

Step 2 :
Inside the data/Models/MyModels drirectory create an xml file called
foomodel.xml with the following contents :

?xml version=1.0?

PropertyList

 pathfoomodel.3ds/path

 animation
  typerange/type
  min-m0/min-m
  max-m25000/max-m
 /animation

/PropertyList

Step 3 :
Create an 3ds model called foomodel.3ds and save it into the
data/Models/MyModels directory. Notice that the xml file references the 3ds
model file and tells FG that it must be visible from 0 meters up to 25 km.

Step 4 :
Start FG and fly (or use UFO model and move) to the location where you want
to
place the model.
Open up the property browser in FG and write down the lat, lon and altitude
where you want to place the model. (File-Browse Internal
Properties-Position)

Step 5 :
In CVS there is a perl program called calc-tile.pl that works out what stg
file a geodetic coordinate falls in.
You can get it here if you don't feel like playing with CVS and don't have
the
CVS branch installed :
http://cvs.flightgear.org/cgi-bin/viewcvs/viewcvs.cgi/*checkout*/FlightGear/
scripts/perl/scenery/calc-tile.pl?rev=HEADcvsroot=FlightGear-0.9content-ty
pe=text/x-perl

Run the perl script in a terminal window passing it the longitude and
latitude
that you wrote down in step 4. You'll probably have to install perl first if
you run on a MS OS's.

Example :
[EMAIL PROTECTED] scenery]$ ./calc-tile.pl -55.5 30.3
Longitude: -55.5
Latitude:  30.3
Tile:  2039314
Path:  w060n30/w056n30/2039314.stg

Step 6 :
Open the corresponding stg file in your scenery directory
(in my case SceneryDir/w060n30/w056n30/2039314.stg)

Step 7 :
Add the following lines to the stg file replacing the parameters with your
own :
OBJECT_SHARED Models/MyModels/foomodel.xml -55.5 30.3 1000.0 0.00
The format is :
OBJECT_SHARED Relative path to model xml file lon lat altitude above
wgs84 ellipsoid rotation/heading

Step 8 :
Start FG and fly to where you added the model and it should be there.

Hope that helps
Paul

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d



___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


[Flightgear-devel] FlightGear version 9.2 Help Request

2005-02-15 Thread Geoffrey Frost
We are currently running FlightGear Version 9.2 for a UAV simulation in
which we fly the UAV into a balloon. We were able to successfully get a
balloon model into FlightGear 9.2, but in order to do so we are running
FlightGear in multiplayer mode, and have to run a simulation on two
different computers. We would like to be able to place the balloon into
FlightGear statically, but do not have the know how. We are looking for
someone interested in helping us with this application and are willing to
compensate you for the work. If interested please e-mail me at
[EMAIL PROTECTED] or call 541-386-5862. Thank you.

Dr. Geoffrey Frost
Sagetech Corporation
1280 Alameda Road
Hood River, OR 97031
541-386-5862


___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d