User:Adam Zaius/Terrain Handshaking Additions

From Second Life Wiki
< User:Adam Zaius
Revision as of 19:35, 28 January 2007 by Adam Zaius (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Specification: Change regionhandshake to the following

// RegionHandshake
// Sent by region to viewer after it has received UseCircuitCode
// from that viewer.
// sim -> viewer
// reliable
{
 RegionHandshake   Low  Trusted Zerocoded
 {
  RegionInfo Single
  { RegionFlags  U32 }
  { SimAccess  U8 }
  { SimName   Variable 1 } // string
  { SimOwner  LLUUID }
  { IsEstateManager BOOL } // this agent, for this sim
  { WaterHeight  F32 }
  { BillableFactor F32 }
  { CacheID   LLUUID }
-  { TerrainBase0  LLUUID  } // REMOVE (DEFUNCT)
-  { TerrainBase1  LLUUID  } // REMOVE (DEFUNCT)
-  { TerrainBase2  LLUUID  } // REMOVE (DEFUNCT)
-  { TerrainBase3  LLUUID  } // REMOVE (DEFUNCT)
  { TerrainDetail0  LLUUID  }
  { TerrainDetail1  LLUUID  }
  { TerrainDetail2  LLUUID  }
  { TerrainDetail3  LLUUID  }
  { TerrainStartHeight00 F32  }
  { TerrainStartHeight01 F32  }
  { TerrainStartHeight10 F32  }
  { TerrainStartHeight11 F32  }
  { TerrainHeightRange00 F32  }
  { TerrainHeightRange01 F32  }
  { TerrainHeightRange10 F32  }
  { TerrainHeightRange11 F32  }
+               {       TerrainCliffDetail      LLUUID          } // Texture for cliff areas
+               {       TerrainShoreDetail      LLUUID          } // Texture for shoreline areas
+               {       TerrainShoreRange       F32             } // Range from water to show shore
+               {       TerrainCliffRange       F32             } // Height range for cliff to show
+               {       TerrainNoiseRange       F32             } // Strength of terrain noise
+               {       TerrainTurbulence       F32             } // Strength of terrain turbulence
 }
}

The simulator needs to be able to track the additional variables. The extra variables are set via an EstateOwnerMessage similar to how the existing terrain variables are modified.

  • Clientside code to support these changes has already been written (except modifications to the estate tools).