
					CCMold

____________

What is it ?
____________

This is a small utility to convert a grayscale terrain
elevation model to CC elevation and back.
It allows you to draw your elevations in a paint program or
even in a terrain modeling program such as Bryce etc. It
uses PGN ( Portable GrayMap ) files for convenience and also
because most 3D programs should be able to export PGNs. It
will work with CC3 map.txt files.

____________

Installation
____________

Not much. It's a single exe file. Unzip it somewhere.
You'll need Microsoft's Java Virtual Machine. 
(www.microsoft.com/java )
It should already be installed on a WIN98 system, but you
might need the more recent version.
____________

Usage
____________


Draw the grayscale image, white being high, resize it to 10
% of it's original size ( so that it has as many pixels as
elements, 1 pixel = 1 element height ). Save it as 8-bit PGM
with ASCII encoding ( this is the default in PSP5, also note
that for some reason Photoshop doesn't seem to save PGM files ).

I'm on a one man mission to save Dos ( just like the South,
Dos will also rise again ;) ), so open up an MS-Dos window.

Syntax :
	CCMold file.pgm file.txt [/s##]

	file.pgm	the grayscale image you just saved
		
	file.txt	the map.txt file to put elevation into,
			file must already exist.

	/s##		Optional, causes all elevation values
			to be scaled so that the highest value
			represents an elevation of ##*2 meters.
			Useful if you used the full black-white
			scale, but don't want elevation to
			range all the way to 50m.


You can also extract an elevation image from a cc map.txt
file.

Syntax :
	CCMold file.txt file.pgm [/s]
		
	file.txt	map file to read elevation from
		
	file.pgm	grayscale image filename

	/s		optional, causes elevation
			values to be scaled so that the
			highest value found will be
			assigned as white. Makes small
			elevation changes more pronounced.



Disclaimer ? We don't need no stinkin' disclaimer!

CplFilth

psaasta@otitsun.oulu.fi


 