How to Create an x3d Applet
Using the following steps you can create your x3d applet.
1. Create a folder that will hold your web page.
2. Download the necessary jar files here and place them in this folder.
3. Copy the wrl file and any image textures into this folder.
4.
There are two different types of applets that you can use.
You may want to use both, or experiment to see which one provides
the best movement in your scene. You can look at the comparison
of the two applet types here.
5.
If you are using the examine applet, add the following code
inside the body of your html page. You will have to change the
value property of the scene
parameter to point to your wrl file. You can experiment with the
other parameters if you like, but it is not necessary. There is
some documentation here.
<applet archive="examine.jar" code="com/blaxxun/bx3d/blaxxun3d.class" name="browser" width="350" height="300" MAYSCRIPT>
<param name=scene value="blocks2.wrl">
<param name=statistics value="off">
<param name=forcesw value="on">
<param name=time value="timer">
<param name=loading value="dynamic">
<param name=statistics value="off">
<param name=lighting value="on">
<param name=antialiasing value="off">
<param name=textcolor value="ffffff">
<param name=shadowcolor value="black">
<param name=backcolor value="080808">
<param name=backimage value="none">
<param name=showanchor value="on">
<param name=anchortextcolor value="black">
<param name=anchorbackcolor value="black">
<param name=regcode value="zYrFgmcMGck3b320XBMvxUFCe!nnSYPqqid">
Sorry, your browser doesn't support Java.
</applet>
<applet archive="examine.jar" code="com/blaxxun/bx3d/x/examine.class" name="applet" width=1 height=1 MAYSCRIPT>
<param name=zoomspeed value="1.2">
<param name=turnspeed value="0.9">
<param name=minDistance value="3.3">
<param name=maxDistance value="30.9">
<param name=twistmode value="off">
<param name=extends value="browser">
</applet>
6.
If you are using the walk applet, add the following code inside
the body of your html page. Again, you will have to change the
value property of the scene parameter to point to your wrl file.
<applet archive="walk.jar" code="com/blaxxun/bx3d/blaxxun3d.class" name="browser" width="350" height="300" MAYSCRIPT>
<param name="forcegc" value="10000">
<param name="textcolor" value="ffffff">
<param name="shadowcolor" value="808080">
<param name="backcolor" value="505050">
<param name="loading" value="static">
<param name="statistics" value="off">
<param name="scene" value="blocks.wrl">
<param name="lighting" value="on">
<param name="antialiasing" value="oneshot">
<param name="bilinear" value="oneshot">
<param name="forcesw" value="on">
<param name=regcode value="zYrFgmcMGck3b320XBMvxUFCe!nnSYPqqid">
Sorry, your browser doesn't support Java.
</applet>
<applet archive="walk.jar" code="com/blaxxun/bx3d/x/walk.class" name="applet" width=0 height=0 MAYSCRIPT>
<param name=collision value="on">
<param name=mindistance value="0.5">
<param name=extends value="browser">
</applet>
7. That should be all there is to it. Take another look at the sample page if you still have problems. Here is the complete source of the example page:
<html>
<head></head>
<body>
<table><tr valign=top>
<td>
<h3>Examine Applet</h3><br>
<applet archive="examine.jar" code="com/blaxxun/bx3d/blaxxun3d.class" name="browser" width="350" height="300" MAYSCRIPT>
<param name=scene value="blocks2.wrl">
<param name=statistics value="off">
<param name=forcesw value="on">
<param name=time value="timer">
<param name=loading value="dynamic">
<param name=statistics value="off">
<param name=lighting value="on">
<param name=antialiasing value="off">
<param name=textcolor value="ffffff">
<param name=shadowcolor value="black">
<param name=backcolor value="080808">
<param name=backimage value="none">
<param name=showanchor value="on">
<param name=anchortextcolor value="black">
<param name=anchorbackcolor value="black">
<param name=regcode value="zYrFgmcMGck3b320XBMvxUFCe!nnSYPqqid">
Sorry, your browser doesn't support Java.
</applet><applet archive="examine.jar" code="com/blaxxun/bx3d/x/examine.class" name="applet" width=1 height=1 MAYSCRIPT>
<param name=zoomspeed value="1.2">
<param name=turnspeed value="0.9">
<param name=minDistance value="3.3">
<param name=maxDistance value="30.9">
<param name=twistmode value="off">
<param name=extends value="browser">
</applet>
</td>
<td>
</td>
<td>
<h3>Walk Applet</h3><br>
<applet archive="walk.jar" code="com/blaxxun/bx3d/blaxxun3d.class" name="browser" width="350" height="300" MAYSCRIPT>
<param name="forcegc" value="10000">
<param name="textcolor" value="ffffff">
<param name="shadowcolor" value="808080">
<param name="backcolor" value="505050">
<param name="loading" value="static">
<param name="statistics" value="off">
<param name="scene" value="blocks.wrl">
<param name="lighting" value="on">
<param name="antialiasing" value="oneshot">
<param name="bilinear" value="oneshot">
<param name="forcesw" value="on">
<param name=regcode value="zYrFgmcMGck3b320XBMvxUFCe!nnSYPqqid">
Sorry, your browser doesn't support Java.
</applet><applet archive="walk.jar" code="com/blaxxun/bx3d/x/walk.class" name="applet" width=0 height=0 MAYSCRIPT>
<param name=collision value="on">
<param name=mindistance value="0.5">
<param name=extends value="browser">
</applet>
</td>
</tr>
</body>
</html>