13. 3D Graphics
JSR 184, the Mobile 3D Graphics (M3G) API, gives MIDlets the ability to show 3D content. It is a scaled-down version of the desktop Java platform 3D API.
The M3G API is a scene graph API, which means it knows how to render scenes that are described as a hierarchy of groups and objects. The API includes all the classes and methods you need to create scenes from the ground up.
A much more likely alternative is that a graphic artist will create a 3D scene. Then your job becomes a lot easier because you just have to display the scene. JSR 184 specifies a comprehensive file format. An entire 3D scene, including lights, cameras, and animation, can be designed by an artist and saved in an M3G file.
The M3G API is contained in a single ...
Get Kicking Butt with MIDP and MSA: Creating Great Mobile Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.