Méthode | Description | |
---|---|---|
CreateLandPacket ( float heightmap, int patches ) : LayerDataPacket |
Creates a LayerData packet for compressed land data given a full simulator heightmap and an array of indices of patches to compress
|
|
CreateLandPacket ( float patchData, int x, int y ) : LayerDataPacket | ||
CreateLayerDataPacket ( |
||
CreatePatch ( OpenMetaverse.BitPack output, float patchData, int x, int y ) : void | ||
CreatePatchFromHeightmap ( OpenMetaverse.BitPack output, float heightmap, int x, int y ) : void |
Add a patch of terrain to a BitPacker
|
|
DecodePatch ( int patches, OpenMetaverse.BitPack bitpack, |
||
DecodePatchHeader ( OpenMetaverse.BitPack bitpack ) : |
||
DecompressPatch ( int patches, |
Méthode | Description | |
---|---|---|
BuildCopyMatrix16 ( ) : void | ||
BuildDequantizeTable16 ( ) : void | ||
BuildQuantizeTable16 ( ) : void | ||
CompressPatch ( float patchData, |
||
CompressPatch ( float heightmap, int patchX, int patchY, |
||
DCTColumn16 ( float linein, int lineout, int column ) : void | ||
DCTLine16 ( float linein, float lineout, int line ) : void | ||
EncodePatch ( OpenMetaverse.BitPack output, int patch, int postquant, int wbits ) : void | ||
EncodePatchHeader ( OpenMetaverse.BitPack output, |
||
IDCTColumn16 ( float linein, float lineout, int column ) : void | ||
IDCTLine16 ( float linein, float lineout, int line ) : void | ||
PrescanPatch ( float patch ) : |
||
PrescanPatch ( float heightmap, int patchX, int patchY ) : |
||
SetupCosines16 ( ) : void | ||
TerrainCompressor ( ) : System |
public static CreateLandPacket ( float heightmap, int patches ) : LayerDataPacket | ||
heightmap | float | A 256 * 256 array of floating point values /// specifying the height at each meter in the simulator |
patches | int | Array of indexes in the 16x16 grid of patches /// for this simulator. For example if 1 and 17 are specified, patches /// x=1,y=0 and x=1,y=1 are sent |
Résultat | LayerDataPacket |
public static CreateLandPacket ( float patchData, int x, int y ) : LayerDataPacket | ||
patchData | float | |
x | int | |
y | int | |
Résultat | LayerDataPacket |
public static CreateLayerDataPacket ( |
||
patches | ||
type | ||
Résultat | LayerDataPacket |
public static CreatePatch ( OpenMetaverse.BitPack output, float patchData, int x, int y ) : void | ||
output | OpenMetaverse.BitPack | |
patchData | float | |
x | int | |
y | int | |
Résultat | void |
public static CreatePatchFromHeightmap ( OpenMetaverse.BitPack output, float heightmap, int x, int y ) : void | ||
output | OpenMetaverse.BitPack | BitPacker to write the patch to |
heightmap | float | Heightmap of the simulator, must be a 256 * /// 256 float array |
x | int | X offset of the patch to create, valid values are /// from 0 to 15 |
y | int | Y offset of the patch to create, valid values are /// from 0 to 15 |
Résultat | void |
public static DecodePatch ( int patches, OpenMetaverse.BitPack bitpack, |
||
patches | int | |
bitpack | OpenMetaverse.BitPack | |
header | ||
size | int | |
Résultat | void |
public static DecodePatchHeader ( OpenMetaverse.BitPack bitpack ) : |
||
bitpack | OpenMetaverse.BitPack | |
Résultat |
public static DecompressPatch ( int patches, |
||
patches | int | |
header | ||
group | ||
Résultat | float[] |