View3D as applet

To use View3D in an applet, it's very easy. Just create the following tag in your html file:
   

<APPLET CODE="tom.graphic.ThreeD.View3DApplet" codebase=. archive=View3D.jar WIDTH=400 HEIGHT=400>
<PARAM NAME="model" VALUE="models/helico.m3d">
</APPLET>
 

Note that we've put the tag archive which is only JDK1.1 compatible (Netscape4/IE4), but for users using only netscape3/IE3, this tag will be ignored and class files outside the jar file will be used.

This exemple just create an applet of size 400x400 pixels, and load and display the object models/helico.m3d in this applet.

You can use more tags to customize the applet. Here is an exsaushtive list of possible tags:
 

Name Type Signification
model String model that will be displayed, realatif to the applet path. Note that this file must be on the same web server than the applet.
backgIma String name of an image to be used as a background. If you use this tag, you should probably use th backgMode tag.
backgMode integer 0,1,2,3 Type of background:
0 ->plain background
1 -> background image is centered
2 -> background image is strecthed
3 -> background image is tiled
background Color Color to be used in the background
foreground Color color which will be used for outline mode
allowedMove a list of 6 boolean separed by , allow the user to rotate around the x, y, z axes, and along the X Y Z pos. Example, the value false,true,false,false,false,false allow the user only to rotate the object around the Y axis, and move it around the Z axis. If everything is false, the object cannot be moved by the user. By default everything is trye.
angleX integer in degree(0-360) position of the object around the X angle
angleY integer in degree(0-360) position of the object around the Y angle
angleZ integer in degree(0-360) position of the object around the Z angle
posX integer position of the object alogn the X axis
posY integer position of the object alogn the Y axis
posZ integer position of the object alogn the Z axis

More tags to be implemented soon.... View3D Main page