C# Class Radegast.Rendering.TerrainSplat

Exibir arquivo Open project: justasabc/UnityOpenSimClient Class Usage Examples

Public Methods

Method Description
ResizeBitmap ( Bitmap b, int nWidth, int nHeight ) : Bitmap
Splat ( GridClient client, float heightmap, UUID textureIDs, float startHeights, float heightRanges ) : 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 ( float heightmap ) : Bitmap
TileBitmap ( Bitmap b, int tiles ) : Bitmap

Private Methods

Method Description
TextureDownloadCallback ( Bitmap detailTexture, int i, AutoResetEvent textureDone ) : TextureDownloadCallback

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 ( GridClient client, float heightmap, UUID textureIDs, float startHeights, float heightRanges ) : Bitmap
client OpenMetaverse.GridClient
heightmap float Terrain heightmap
textureIDs UUID
startHeights float
heightRanges float
return System.Drawing.Bitmap

SplatSimple() public static method

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

TileBitmap() public static method

public static TileBitmap ( Bitmap b, int tiles ) : Bitmap
b System.Drawing.Bitmap
tiles int
return System.Drawing.Bitmap