Information | Screenshots | Download | Controls | Notes | Website


ModelViewer


Information

ModelViewer is an application written using Java3D that loads 3D object models. The user can move the viewpoint around and experiment with different fog and lighting effects.

Supported file types: (please note that 3D Studio files are the only ones that have been tested so far)


ModelViewer uses the superb freely-available NCSA Portfolio library, which can be found at: http://www.ncsa.uiuc.edu/~srp/Java3D/portfolio/

Keyboard behaviour code is heavily based on the example code at http://www.j3d.org/utilities/keyboard.html written by Gary S. Moss and Andrew AJ Cain.

A large number of free 3D models are available on the web. For examples, visit: http://www.3dcafe.com/asp/meshes.asp



Screenshots

1. sc1.jpg - 39Kb
A group of three dolphins, with a selection of coloured lights from different angles.

2. sc2.jpg - 53Kb
A skeleton, strongly-lit from overhead and to the side.

3. sc3.jpg - 89Kb
Ornate chandelier, demonstrating the headlamp effect and lit by a dim blue light.



Download

Requirements:


Installing Java3D - [ensure you have a Java Runtime Environment (JRE) before proceeding with this step]

If you have Linux, go to http://www.blackdown.org/java-linux/jdk1.2-status/java-3d-status.html and follow the instructions there, then continue with this document.

Otherwise, you will need to install Java3D from Sun Microsystems. It is about 2.5Mb (and well worth it), and the installation process is very easy. Download Java3D (choose the RUNTIME version) from: http://java.sun.com/products/java-media/3D/download.html then run the installer.


Installing ModelViewer

Once Java3D is installed, download the ZIP file, uncompress it to a directory of your choice and run ModelViewer.bat, or type the following into your command-line:
java -cp %CLASSPATH%;ncsa\portfolio.jar ModelViewer


Download ModelViewer (ZIP file, 463Kb)


Three sample 3D Studio format models are included.

Contact details are available in the modelviewer.conf configuration file, or find my email address at the bottom of this page.



Controls

The following keys are used to control the ModelViewer application:

Forwards/backwards, rotate left/rightup/down, left/right cursor keys, respectively
Translate up/down, left/rightALT + up/down, left/right cursor keys
Rotate up/down, anticlockwise/clockwiseCTRL + up/down, left/right cursor keys
Fast forwards/backwards, rotate left/rightSHIFT + up/down, left/right cursor keys
Load new modelL
Reset viewpointR
Toggle headlamp effectH
Toggle fog proximityF
Viewpoint-relative lighting effectsZ, X
Scene lighting effects1 - 4
Ambient light level decrease/increaseO, P



Notes

You sometimes have to move around a bit to find the object that you just loaded.

After loading a new model, you probably have to click on the ModelViewer window to make things work again. Sorry about that.

If you are having performance issues, resize the window to make it smaller, switch more lights off (no, not in your room, in ModelViewer) and experiment with the fog settings.

Sun's Java3D page: http://java.sun.com/products/java-media/3D/index.html

See www.j3d.org for more information on Java3D.

Source code will be posted shortly.


If you find this program useful, please contact me to let me know.

top

22nd June 2001