Changes between Initial Version and Version 1 of XML:_Water


Ignore:
Timestamp:
Jun 16, 2009, 1:12:51 AM (15 years ago)
Author:
Erik Johansson
Comment:

How much is still accurate? I mean we've surpassed the quality of the water on those images =) Seriously though, do we use a heightmap? Or is it just a simple plane?

Legend:

Unmodified
Added
Removed
Modified
  • XML:_Water

    v1 v1  
     1XML: Water
     2
     3Our goal is to accomplish a similar water appearance to this:
     4
     5http://wildfiregames.com/~gamedesign/water/tech01.jpg
     6Elevation: The water uses a separately deformable heightmap, so that the water mesh can vary in height throughout the map. When the watermap is lower than the terrainmap, we have dry land; when higher, a water area occurs in that space.
     7Terrains: Like cliffs, waters consist of several textures for the different areas of the water object, and so things like what units can move over water are determined by the terrains used.
     8Blending: The different water types need to blend in a natural way (eg shore into shallows into deep water). We can calculate this taking the distance between the terrain plane and water plane to create a viscosity factor (the greater the difference between the two heightmaps, the darker the water) and blend factor (how much deep water texture, how much shallow water texture).
     9Ripples: The water mesh should "shimmer" (deform motion on the surface and edges, with ripples and waves, noise distortion). It should be reflected and lit.
     10Slopes: We won't be able to have sharp drops in water elevation and make it look good (textures will be severely stretched). But then, they don't occur in nature all that often anyway. For things like waterfalls, we'll have waterfall gaia objects that we can place between two rivers of differing height to hide the sharp drop.
     11Waves: Animated foam sprites on the water surface (eg AoM, War3) don't really fit the hyper-realistic art style that the artists want to achieve, so we won't do them. We'll distort the mesh along the shoreline instead, attempting to create mesh-based waves.[list]The sprite name of the icon to display for this water.
     12Icon
     13
     14BRIEF DESCRIPTION :: The sprite name of the icon to display for this water.
     15
     16Surface
     17
     18BRIEF DESCRIPTION :: The terrain object that gets placed on the surface of the water mesh.
     19
     20Consists of two sub-tags:
     21Terrain: The name of the painted terrain object.
     22Area: The percentage of the water area that uses this texture (range 0..1).
     23Bank
     24
     25BRIEF DESCRIPTION :: The terrain object that gets placed on the edge of the water (typically shallows).
     26
     27Consists of two sub-tags:
     28Terrain: The name of the painted terrain object.
     29Area: The percentage of the water area that uses this texture (range 0..1).
     30OuterBank
     31
     32BRIEF DESCRIPTION :: The terrain object that gets placed on the outer edge of the water (typically the shore).
     33
     34Consists of two sub-tags:
     35Terrain: The name of the painted terrain object.
     36Area: The percentage of the water area that uses this texture (range 0..1).
     37Layer
     38
     39BRIEF DESCRIPTION :: A terrain that gets layered on the water when it reaches a certain depth. Layers occupy the same area as the "surface" terrain, just at a different depth.
     40
     41A water can have any number of water terrain layers. These typically are only used for deep expanses of water (ie oceans). Rivers don't tend to have them, except maybe a "bottom" layer.
     42
     43Consists of two sub-tags:
     44Terrain: The name of the painted terrain object.
     45Distance: The distance specifies how deep the water must be before this terrain is painted. The value "bottom" is a special distance that always appears on the very bottom of the water (it gets painted over the land mesh that's under the water), irrespective of depth. Note that if no bottom terrain is specified, the land will retain whatever texture was already applied when the water was painted.
     46Colour
     47
     48BRIEF DESCRIPTION :: RGB colour of water transparency.
     49
     50This is used to tint the water a certain colour eg light blue coastal water, or dark blue deep ocean water. Shallow water would have a lighter coloured plane than deep water.
     51
     52Depth
     53
     54BRIEF DESCRIPTION ::Specifies how deep the water is. 4.0 means the water is 4 metres under the land terrain when applied.
     55
     56Smoothness
     57
     58BRIEF DESCRIPTION ::How many land tiles off the shoreline are smoothed when the water is placed (creates more gradual incline from land to water).
     59
     60Example:
     61
     62CODE
     63
     64<water Tag="North Atlantic Ocean" Parent="Ocean"
     65       icon="nocean64"
     66       <surface area="0.5" terrain="water"/>
     67       <bank area="0.1" terrain="RiverSandyB"/>
     68       <outerbank area="0.4" terrain="RiverSandyB"/>
     69       <layer distance="bottom" terrain="RiverSandyA"/>
     70       <layer distance="8.0" terrain="ShorelineAtlanticA"/>
     71       <layer distance="12.0" terrain="UnderwaterIceA"/>
     72       <layer distance="14.0" terrain="UnderwaterIceB"/>
     73       <layer distance="16.0" terrain="UnderwaterIceC"/>
     74       <layer distance="18.0" terrain="black"/>
     75       colour="0 175 235"
     76       depth="3.0"
     77       smoothness="1"
     78></water>
     79
     80
     81QUOTE
     82WATER
     83
     84Water colour will be based on a RGB colour picker tool. Water is alpha faded based on the depth of the terrain.  If any of the water has a degree of opacity to it, it is considered Shallow Water.  If it is opaque, then the water is considered Water.  Shallow Water has 3 different types with simply differentiated by visual effects and movement rates.  The map maker or RMS scripter may also choose the textures that lie below the water’s surface. 
     85
     86Water Sub-Terrain Textures
     87- coral 1
     88- coral 2
     89- coral 3
     90- rock 1
     91- rock 2
     92- rock 3
     93- pebble1
     94- pebble 2
     95- sand 1
     96- sand 2
     97- sand 3
     98
     99Water Effects
     100-       Ripple
     101-       Wake
     102-       Splash
     103
     104Suggestions for Appearances
     105-       light blue
     106-       dark blue
     107-       green
     108-       turquoise
     109-       place gaia rocks on shore
     110-       place sub-marine plants on terrain that is under water
     111-       marshes consisting of multiple shallow watercourses interspersed with wetland terrain of muddy, grassy with reeds and cattails with various shallow connections.
     112-       swamps consisting of multiple shallow watercourses interspersed with impassable hummocks of wetland terrain having jungle vegetation that is not buildable and only the scarcest of paths and shallows (for land units) and water courses for ships.
     113-       Floating ice, and ice chunks
     114-       Brown water
     115
     116Backburner Ideas
     117-       Water puts out fire
     118-       Mobile units afflicted with fire missile damage can be rushed to shallow water to extinguish the continued loss of hitpoints from fire.
     119-       Rain Particles Ripple in water
     120-       Water flow effect perpendicular to shore