|
Parameter
|
Default
|
Values
|
Notes
|
|
model
|
model.123
|
.123 filename
|
The model datafile inside the JAR.
|
|
bgImage
|
-
|
.JPG filename
|
Background image, must be same size as applet (in pixels)
|
|
bgColor
|
#FFFFFF
|
#000000 to #FFFFFF
|
Colour of background. Ignored if bgImage is specified.
|
|
textureQuality
|
normal
|
normal, best
|
Normal equates to nearest neighbour texture filtering, best to bilinear filtering. Best is better quality (smoother) but slower to render.
|
|
shadow
|
none
|
None, soft
|
Shadow is blended with background image.
|
|
orientationX
|
0
|
-180 degrees to 180 degrees
|
Initial orientation about X-axis
|
|
orientationY
|
0
|
-180 degrees to 180 degrees
|
Initial orientation about Y-axis
|
|
orientationZ
|
0
|
-180 degrees to 180 degrees
|
Initial orientation about Z-axis
|
|
rotateX
|
0
|
Any (Negative or positive)
|
Amount of spin about X-axis
|
|
rotateY
|
0
|
Any (Negative or positive)
|
Amount of spin about Y-axis
|
|
interact
|
ALL
|
MENU, ROTATE, ZOOM, PERSPECTIVE, PAN, LIGHT
|
Restricts user interaction allowed to only the values specified
|
|
positionX
|
0
|
Any (Negative or positive)
|
Initial position of model in world co-ordinates
|
|
positionY
|
0
|
Any (Negative or positive)
|
Initial position of model in world co-ordinates
|
|
positionZ
|
-3
|
-2 to -5
|
Initial position of model in world co-ordinates (affects how large the model appears)
|
|
nearZ
|
-2
|
-2 to -3
|
Closest that object can be moved
|
|
farZ
|
-5
|
-1.1 to -infinity
|
Furthest that object can be moved
|
|
frameLimit
|
100
|
Any positive frames-per-second
|
Limits the frame-rate of the viewer
|
|
ambientLight
|
0.5
|
0 to 1
|
Ambient lighting amount
|
|
diffuseLight
|
0.5
|
0 to 1
|
Diffuse lighting amount
|
|
specularLight
|
0.5
|
0 to 1
|
Specular lighting amount
|
|
lighting
|
none
|
None, smooth
|
Smooth relates to Gouraud shading.
|
|
environmentMap
|
-
|
.JPG filename
|
Specifies pre-distorted environment map image
|
|
environmentMapAmount
|
0
|
0-1
|
Amount of blend of environment map (0=none, 1=chrome)
|
|
onInit (*)
|
-
|
String
|
Sent to JavaScript when applet starts running
|
|
mouseOverHandler (*)
|
-
|
String
|
JavaScript function taking single string parameters called when mouse hovers
|
|
mouseClickHandler (*)
|
-
|
String
|
JavaScript function taking single string parameters called when mouse clicked
|
|
script (*)
|
-
|
String
|
Filename of viewer script (or the actual script if the string
contains more than one line)
|