com.jme3.terrain.heightmap
クラス ImageBasedHeightMap
java.lang.Object
com.jme3.terrain.heightmap.AbstractHeightMap
com.jme3.terrain.heightmap.ImageBasedHeightMap
- すべての実装されたインタフェース:
- HeightMap
public class ImageBasedHeightMap
- extends AbstractHeightMap
ImageBasedHeightMap
is a height map created from the grayscale
conversion of an image. The image used currently must have an equal height
and width, although future work could scale an incoming image to a specific
height and width.
メソッドの概要 |
boolean |
load()
Loads the image data from top left to bottom right |
boolean |
load(boolean flipX,
boolean flipY)
|
クラス com.jme3.terrain.heightmap.AbstractHeightMap から継承されたメソッド |
erodeTerrain, findMinMaxHeights, flatten, getHeightMap, getInterpolatedHeight, getScaledHeightAtPoint, getScaledHeightMap, getSize, getTrueHeightAtPoint, normalizeTerrain, save, setHeightAtPoint, setHeightScale, setMagnificationFilter, setSize, smooth, unloadHeightMap |
クラス java.lang.Object から継承されたメソッド |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageBasedHeightMap
public ImageBasedHeightMap(java.awt.Image colorImage)
- Creates a HeightMap from an Image. The image will be converted to
grayscale, and the grayscale values will be used to generate the height
map. White is highest point while black is lowest point.
Currently, the Image used must be square (width == height), but future
work could rescale the image.
- パラメータ:
colorImage
- Image to map to the height map.
ImageBasedHeightMap
public ImageBasedHeightMap(java.awt.Image colorImage,
float dampen)
load
public boolean load()
- Loads the image data from top left to bottom right
- 戻り値:
- true if the load was successful, false otherwise.
load
public boolean load(boolean flipX,
boolean flipY)