C# Class Universe.Modules.WorldMap.Warp3DMap.TerrainSplat

Datei anzeigen Open project: Virtual-Universe/Virtual-Universe

Public Methods

Method Description
ResizeBitmap ( Bitmap b, int nWidth, int nHeight ) : Bitmap
Splat ( ITerrainChannel heightmap, UUID textureIDs, float startHeights, float heightRanges, Vector3d regionPosition, IAssetService assetService, bool textureTerrain ) : Bitmap

Builds a composited terrain texture given the region texture and heightmap settings

Based on the algorithm described at http://opensimulator.org/wiki/Terrain_Splatting

SplatSimple ( ITerrainChannel heightmap ) : Bitmap

Method Details

ResizeBitmap() public static method

public static ResizeBitmap ( Bitmap b, int nWidth, int nHeight ) : Bitmap
b System.Drawing.Bitmap
nWidth int
nHeight int
return System.Drawing.Bitmap

Splat() public static method

Builds a composited terrain texture given the region texture and heightmap settings
Based on the algorithm described at http://opensimulator.org/wiki/Terrain_Splatting
public static Splat ( ITerrainChannel heightmap, UUID textureIDs, float startHeights, float heightRanges, Vector3d regionPosition, IAssetService assetService, bool textureTerrain ) : Bitmap
heightmap ITerrainChannel Terrain heightmap
textureIDs UUID
startHeights float
heightRanges float
regionPosition Vector3d
assetService IAssetService
textureTerrain bool
return System.Drawing.Bitmap

SplatSimple() public static method

public static SplatSimple ( ITerrainChannel heightmap ) : Bitmap
heightmap ITerrainChannel
return System.Drawing.Bitmap