[Flightgear-devel] new utility

2007-07-16 Thread Curtis Olson

This weekend I hacked together a little utility that might be interesting to
some people.  I called it photomodel and it's in
FlightGear/src/utils/Modeller/

This is a command line utiltity that takes the name of an aerial photo
texture, along with the lon/lat coordinates of the corners of the image (or
the max/min lon/lat if the image is aligned along strait lon/lat edges).  It
then spits out a .ac file of the correct size in meters to cover your area.
It tells you where to copy the file, and gives you a line to add to your
.stg file (and tells you which one to add it to.)  Special thanks to Syd
Adams who whipped up a .ac template for me to work from.

If you have access to some aerial imagery, you can use this utility to
quickly spiff up a local flying area.  Please note, I'm not saying you
couldn't do a screen grab out of google maps or some other online mapping
service to get some quick aerial imagery, but if you do anything like that,
please don't distribute the results without getting explicit permission from
the owner of the imagery, and please don't tell me about it. :-)

Note that this utility does have many limitation at the moment ... it only
spits out one square for one texture per model.  The output model is flat,
so you have to manually figure out an altitude that floats it a meter or two
above the default terrain.  It's not a perfect solution, but might be useful
for some situations.

I have found it handy to spiff up my local R/C flying site scenery for
replaying flights in my instrumented R/C airplane:

http://youtube.com/watch?v=MTkJYaiVxtA

All those nice mowed fields around our airstrip have been planted with corn
this year and it's now about 8' high ... sob ... :-(

Regards,

Curt.
--
Curtis Olson - University of Minnesota - FlightGear Project
http://baron.flightgear.org/~curt/  http://www.humanfirst.umn.edu/
http://www.flightgear.org
Unique text: 2f585eeea02e2c79d7b1d8c4963bae2d
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] new utility

2007-07-16 Thread AnMaster
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Curtis Olson wrote:
 This weekend I hacked together a little utility that might be
 interesting to
 some people.  I called it photomodel and it's in
 FlightGear/src/utils/Modeller/
 
 This is a command line utiltity that takes the name of an aerial photo
 texture, along with the lon/lat coordinates of the corners of the image (or
 the max/min lon/lat if the image is aligned along strait lon/lat
 edges).  It
 then spits out a .ac file of the correct size in meters to cover your area.
 It tells you where to copy the file, and gives you a line to add to your
 .stg file (and tells you which one to add it to.)  Special thanks to Syd
 Adams who whipped up a .ac template for me to work from.
 
 If you have access to some aerial imagery, you can use this utility to
 quickly spiff up a local flying area.  Please note, I'm not saying you
 couldn't do a screen grab out of google maps or some other online mapping
 service to get some quick aerial imagery, but if you do anything like that,
 please don't distribute the results without getting explicit permission
 from
 the owner of the imagery, and please don't tell me about it. :-)
 
 Note that this utility does have many limitation at the moment ... it only
 spits out one square for one texture per model.  The output model is flat,
 so you have to manually figure out an altitude that floats it a meter or
 two
 above the default terrain.  It's not a perfect solution, but might be
 useful
 for some situations.
 
 I have found it handy to spiff up my local R/C flying site scenery for
 replaying flights in my instrumented R/C airplane:
 
 http://youtube.com/watch?v=MTkJYaiVxtA
 
 All those nice mowed fields around our airstrip have been planted with corn
 this year and it's now about 8' high ... sob ... :-(
 
 Regards,
 
 Curt.
 
So not useful for terrain like mountains? :-(

Other than that this sounds very nice.

Regards,
AnMaster
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFGm33YWmK6ng/aMNkRCkw3AJ9/6ef2S1ELxlN3NkrAQ/EY3h5wEQCeL7ZO
c5NGlZPgtKW5wdTOphB+FJs=
=Vc3K
-END PGP SIGNATURE-

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] new utility

2007-07-16 Thread gh.robin
On Mon 16 July 2007 16:16, AnMaster wrote:
 Curtis Olson wrote:
SNIP
  Note that this utility does have many limitation at the moment ... it
  only spits out one square for one texture per model.  The output model is
  flat, so you have to manually figure out an altitude that floats it a
  meter or two
  above the default terrain.  It's not a perfect solution, but might be
  useful
  for some situations.
 
  I have found it handy to spiff up my local R/C flying site scenery for
  replaying flights in my instrumented R/C airplane:
 
  http://youtube.com/watch?v=MTkJYaiVxtA
 
  All those nice mowed fields around our airstrip have been planted with
  corn this year and it's now about 8' high ... sob ... :-(
 
  Regards,
 
  Curt.

 So not useful for terrain like mountains? :-(

 Other than that this sounds very nice.

 Regards,
 AnMaster



Thanks, Curt 

Nice work, that tool will be very helpful.


Oh, yes AnMaster, i am pretty sure it could be  used for mountains, look at 
that specific  model Tour du Ventoux  ( which is close to my home  :)  )  
http://fgfsdb.stockill.org/modeledit.php?id=317

I have redrawn  a 3D .ac  model which include the shape of the top, with road 
it comes over the existing  scenery.
The work was not easy.

I guess that with the Curt's tool it would have been easier


Cheers
-- 
GĂ©rard


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel