Instructions on usage
Installing the software
Download the zip file above and extract all files to a suitable folder.
Starting the program
Simply double click on the file named "Viewer.jar".
Alternatively you can use a command shell and move to the folder where the
files are extracted. Type "java -jar Viewer" and hit enter. Note that "java"
- the Java virtual machine must be in the path of the command shell. Also "."
must be in the classpath. Installing J2SE 1.4 or JRE 1.4 from SUN will set
up both of these things automatically.
Using the program
For a tutorial on basic terrain creation, go
here.
When the program starts, a window is opened. In addition to this window a
lot of trace print outs are printed in the command shell window. These print
outs are purely debugging information - pay no attention to them unless you
really want to.
The main window is divided in several parts, these are a city block list,
vertex list, texture list and finally a 3D terrain view.
City block list
This is a list of all city blocks building up a terrain in a PSDL file.
Selecting a city block in this list will display the properties of that
block.
City block properties
To the right of the block list a list, displaying the vertices making up a
perimeter polygon. This list also displays where other blocks connects to
this one. This list is labelled Block perimeter. A dash instead of
a block index means that the vertex does not connect to any other city
block at this vertex.
Selecting one or more vertices in this list causes the corresponding
vertices to be selected in the vertex list. This in turn will add small red
markers in the terrain view.
Below the perimeter definition there is a list of block attributes. These
attributes define the actual geometry and appearance of the city block.
Vertex list
This is a list of all vertices used to construct the terrain.
Selecting one or more vertices in this list will add a small red marker in
the terrain view indication the location of these vertices.
Texture list
This is a list of all textures that can be assigned to city blocks.
Selecting one or more textures will make them show up in the texture view.
Texture view
Displays textures side by side. The textures are displayed at their true
size, no scaling is performed. Instead the view is scrollable if the
textures don't fit the window. Some textures contain multiple scales of the
same image. All of these scales are shown on top of each other.
Terrain view
The terrain view displays a 3D view of all city blocks. Currently this is
restricted to simply displaying the perimeter of the blocks. The camera can
be operated using the buttons next to the 3D view. The function of these
buttons as well as their graphic imagery is the same as the view control
window in Realsoft 3D - my favourite 3D modelling software.
From top to bottom, the functions are:
-
Rotate - Keeping the left mouse button pressed on this button and moving
the mouse causes the camera to rotate around it's yaw and pitch
axis.
-
Scale - Keeping the left mouse button pressed on this button and moving
the mouse up or down changes the depth of field parameter of the
camera, effectively scaling the view.
-
Pan - Keeping the left mouse button pressed on this button and moving
the mouse moves the camera in it's image plane.
-
Distance - Keeping the left mouse button pressed on this button and
moving the mouse up or down moves the camera along it's
forward axis.
-
Front - Rotates the camera to a front view.
-
Side - Rotates the camera to a side view.
-
Top - Rotates the camera to a top view.
-
Origo - Moves the camera to the world origin. (0, 0, 0)
File menu
In the file menu the user can open a PSDL file, set the texture folder,
import vertices, open the option dialog or exit the program. The texture
folder is used by the texture view when loading the textures defined in the
texture list. Note that the selected texture folder is only used when
loading a PSDL file or adding new textures, once each texture is added the
complete path to the image file is stored in each texture map.
View menu
The view menu has some choices that no longer works - the functionality they
offered in the past will be re-implemented. DON'T USE THESE!