Specifications
Developers guidelines | 3D graphics with Java ME
22 June 2010
Mascot Capsule Micro3D
Version 3
This section will describe the Mascot Capsule Micro3D Version 3 in detail. This popular
version uses proprietary 3D Java APIs.
Graphics commands
Micro3D Ver.3 graphics API operates in an immediate mode, where graphics
command are issued into graphics pipeline and the rendering engine executes it.
These commands implement the following functions:
• 3D objects descriptions. These commands describe the coordinates and colours
of triangles, polygons, and quad surfaces that comprise the 3D object. They also
specify the texture maps and the colour blending processes that are to be applied
to each object. Point sprites are also supported
• 3D environment configuration. These commands adjust the position and
characteristics of scene lighting, the scene perspective (parallel or projected), the
type of shading to be applied, and whether to use semitransparent blending
• Manage the rendering process. These commands describe the type of color
blending used in the rendering operation and specify the clipping region
coordinates. They also instruct the engine to execute a transformation (such as a
rotation or motion) on an object. A flush command indicates when the scene is to
be rendered and drawn to the phone screen
• Graphics primitives. These commands draw points, lines, triangles, and quads.
Commands can be stored in lists. This allows a 3D object to be stored as a list of
commands that specify the object shape, its color, plus its shading and blending
characteristics. To draw the object – say, a rocket – the application would issue the
command list that stores the rocket description to the Micro3D Ver.3 graphics pipeline.
The 3D engine in turn draws the rocket. In Micro3D Ver.3, pixels are drawn to screen
only when Flush() is called, and not immediately after the command is issued.
Object import
Because of the difficulty to describe any 3D object of moderate complexity using
graphics commands, the Micro3D Ver.3 allows import of 3D object data that was
generated by 3D authoring programs. This data is stored as a resource in the MIDlet
JAR file, and is accessed by the Micro3D Ver.3 Figure class. This class contains the