John Wright wrote:
The last time I looked at Terragen (assuming I'm remembering the correct program) it generates a 2D image (i.e. JPEG).
Ah, just a raster height-map? If so, j3d.org has a couple of classes that could be useful for you to play with.
Have a look at the class org.j3d.geom.terrain.HeightDataCreator.. The top of the javadoc says this:
<quote> A converter utility for changing an image into a height field set of data points.
To translate an image to a height field, the width of the image (X values) translates to the width of the geometry. The height of the image (Y values) is translated to the depth of the terrain. A terrain is always generated in the X-Z plain and height values along the Y axis. </quote>
Sound like what is needed?
-- Justin Couch http://www.vlc.com.au/~justin/ Java Architect & Bit Twiddler http://www.yumetech.com/ Author, Java 3D FAQ Maintainer http://www.j3d.org/ ------------------------------------------------------------------- "Look through the lens, and the light breaks down into many lights. Turn it or move it, and a new set of arrangements appears... is it a single light or many lights, lights that one must know how to distinguish, recognise and appreciate? Is it one light with many frames or one frame for many lights?" -Subcomandante Marcos -------------------------------------------------------------------
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".