Index of /FlightGear/OceanImprovement

      Name                    Last modified       Size  Description

[DIR] Parent Directory 04-Aug-2010 15:02 - [TXT] materials.diff 11-Apr-2010 14:49 2k [CMP] ocean20091205.tar.gz 06-Dec-2009 00:04 10k [DIR] old/ 05-Dec-2009 22:53 -


Ocean Improvement Program for FlightGear
---------------------------------------

Anders Gidenstam  2007 - 2010

News

* 2010-06-14: The add-on is also available as a branch in my clone of
              fgdata at gitorious:
  http://gitorious.org/~andersg/fg/anders-fgdata/commits/ocean-add-on-public
              To merge it with your local everyday fgdata branch use
  git pull git://gitorious.org/~andersg/fg/anders-fgdata.git ocean-add-on-public

* 2009-12-05: Updated to work with current FlightGear/CVS.

* 2008-01-10: Tested and works fine with FlightGear/OSG (and 1.0.0 too).

* 2007-10-20: And done..

* 2007-06-19: Current version is broken due to a renamed function in geo.nas.
              I'll fix this ASAP.

* 2007-05-20: New screenshots: Enroute from ENSA to ENSB.
              http://www.gidenstam.org/FlightGear/.images/Arctic/fgfs-screen-104.jpg
              http://www.gidenstam.org/FlightGear/.images/Arctic/fgfs-screen-105.jpg

* 2007-05-18: Improved the icebergs enabled predicate: Now the iceberg area 
              is a union of circular subareas. Presently these include
              the Arctic, Greenland and Antarctica.

* 2007-05-17: First release. Adds icebergs north of lat 58N.
              http://www.gidenstam.org/FlightGear/.images/fgfs-screen-078.jpg
              http://www.gidenstam.org/FlightGear/.images/fgfs-screen-079.jpg
              (I know, the iceberg model is ugly.. ;)
              The current criteria for selecting where icebergs are visible
              is too simplistic and needs to be improved.
              (There shouldn't be huge icebergs in the Baltic sea for example.)

Install

1. Extract the archive in $FGROOT/.
   It will add one Nasal module, ocean.nas, in Nasal/ and
   some new iceberg models under Models/Ocean.

2. Apply materials.diff to $FGROOT/materials.xml. Alternatively,
   add the following to your $FGROOT/materials.xml in the params section and
   in the material for Ocean:

<params>
<!-- Start addition -->
 <ocean>
  <!-- Maximum distance from which an iceberg is visible -->
  <iceberg-range-m>15000</iceberg-range-m>
  <!-- Average number of square meters per iceberg with one type -->
  <iceberg-coverage-m2>5000000</iceberg-coverage-m2>
 </ocean>
<!-- End addition -->
</params>

<material>
 <name>Ocean</name>
 <texture>Terrain/water.rgb</texture>
 <xsize>400</xsize>
 <ysize>400</ysize>
<!-- Start addition -->
 <object-group>
  <range-m alias="/params/ocean/iceberg-range-m"/>
  <object>
   <path>Models/Ocean/iceberg1.xml</path>
   <path>Models/Ocean/iceberg2.xml</path>
   <path>Models/Ocean/iceberg3.xml</path>
   <coverage-m2 alias="/params/ocean/iceberg-coverage-m2"/>
   <heading-type>random</heading-type>
  </object>
 </object-group>
<!-- End addition -->

3. Optional: Update your preferences.xml to include the following:

<PropertyList>
 <environment>
<!-- Start addition -->
  <ocean>
   <icebergs>
    <enabled type="bool">true</enabled>
   </icebergs>
  </ocean>
<!-- End addition -->
 </environment>
</PropertyList>

4. Have fun!
   Sea cows and other interesting objects might be added in the future.

Cheers,

Anders