|
j3d.org Code | |||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
ColorRampGenerator | Utility class to create colors per vertex for a terrain model where the colour model is based on a ramp value. |
ElevationGridGenerator | A generator that takes a set of height values as a grid and turns it into geometry. |
FractalTerrainGenerator | A terrain generator using the standard "fractal" algorithm. |
HeightDataCreator | A converter utility for changing an image into a height field set of data points. |
HeightImageCreator | A converter utility for changing height map information to and from images. |
Class for processing and generating terrain type geometry.
The classes here are specifically aimed at the various tasks someone wanting to use or generate terrain information in their application. The code contains everything from a generic elevation grid creator to a fractal terrain generator.
org.j3d.geom
for the generator utilities. In addition to
these, we add colorising capabilities. An example of all of the classes
combined together can be seen in the following image.
The image is of the example terrain generator demo application included as
part of the CVS module. you can see the parameters used for the
FractalTerrainGenerator
on the right. In
addition to this, it is using a
color ramp filter
with the following heights set.
Height | Colour |
---|---|
0 | 0,0,1 |
0.2 | 1,1,0 |
1 | 0,0.6,0 |
3 | 0,1,0 |
8 | 1,1,1 |
ElevationGridGenerator
to create the
geometry. For an example on this, see the ImageMapDemo in the examples/geometry
directory.
|
j3d.org Code | |||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |