home  previous   next  contents

Shout3D™ 2.5 - User Guide

Embedding Shout3D Applets in Web Pages

Shout3D applets are embedded in HTML pages in the same way that all kinds of applets are – with <APPLET> tags. <APPLET> tags contain all of the information necessary to allow a Java Virtual Machine to run an applet within the space of a Web page.

The default Shout3DApplet, and hence all other applets you can create with Shout3D, have 3 keyboard key controls.  Click in the applet and then press the 'f' key to toggle a display of the frame rate.  Press the 'h' key to toggle between hardware and software rendering.  Or press the 'c' key to print a polygon count to the Java Console. Each of these key controls can be disabled by setting the values of applet parameters to false.  See the information in the parameters section below for more information.

The Shout3D Wizard automates the creation of <APPLET> tags. However, it's important to have a basic understanding of these tags, as you will often find it necessary or convenient to create (or edit) them by hand.

The best way to become introduced to the use of <APPLET> tags in Shout3D is to follow the Wizard QuickStart Tutorial.

Information in an <APPLET> tag is divided into attributes and parameters. The attributes define features common to all Java applets, and are listed within the opening <APPLET> tag itself. Parameters define features that are specific to a given applet, and Shout3D applets have parameters that are unique to them. Parameters are listed between the opening and closing tags (<APPLET> . . . </APPLET>).

Attributes

The attributes of a typical Shout3D <APPLET> tag might look like this:

<APPLET CODEBASE="../codebase" CODE="shout3d/Shout3DApplet.class" ARCHIVE="shout3dClasses.zip" WIDTH=320 HEIGHT=240>

Parameters

Parameters are unique to a given applet. An applet must be designed to accept parameters, and if it is, it will consult the <APPLET> tag to see if any have been provided. If a parameter is specified in the <APPLET> tag, its value will be used by the applet. If a given parameter is not specified, the applet will use a default value.

The Shout3DApplet (and therefore all applets extended from Shout3DApplet) accepts the following parameters. Where any of these are not specified, the default value indicated will be used. All files passed as parameters are relative to the directory specified in the CODEBASE attribute.


Copyright© 1999-2001, Shout3D LLC.