Execution Requirements
As a minimum environment, the examples from the book require CLDC 1.1, MIDP 2.0, and M3G 1.0. The examples are also compatible with M3G 1.1.
If you are unsure whether your phone meets these requirements, the best starting point is the manufacturer's or operator's developer Web site. Also check out Web sites that list common properties of Java devices such as Sun's Java ME Device Table and the device database at J2ME Polish. If you already own a device or have access to it, you can query Java's system properties to check for M3G support. The application from Chapter 3 (JAD/JAR, 2 KB) is a quick way to do so.
On Windows XP, you can execute the examples with Sun's Java Wireless Toolkit (WTK). The WTK supports M3G 1.0 since version 2.2 and M3G 1.1 since version 2.5 Beta. The example in Appendix B needs a special emulator that supports MascotCapsule V3 API, such as the SDK from Sony Ericsson. Appendix C (Java Binding for the OpenGL ES API, JSR 239) requires the WTK 2.5 Beta 2 version or higher.
The screen shots on this page were taken with the WTK 2.5 Beta 2 (DefaultColorPhone) and Sony Ericsson's SDK 2.2.3 (S700, Appendix B only). In both cases, the color resolution was set to 16 bit. Depending on the graphical capabilities of your execution environment, the visual quality of the examples might be better or worse than what's displayed here.
Installation
To download the applications directly to your device, send the link to the application's JAD file to your phone or type the URL into the browser of your mobile phone. You can also use this low-res page as an index to the examples. Installing over the air requires you to have a properly set up network connection for your mobile phone's browser. Alternatively, download the JAD and JAR file to your computer and install the files offline.
All Examples | |
| All examples (except appendixes) in one application: JAD/JAR (555 KB) | |
Part I: Overview | |
Chapter 2: Hello, World! | |
| JAD/JAR (8 KB), Javadoc | |
|
|
|
Chapter 3: Before You Start | |
|
M3G support: JAD/JAR (2 KB), Javadoc System properties: JAD/JAR (9 KB), Javadoc |
|
|
|
|
|
|
|
|
|
|
Part II: 3D Fundamentals | |
Chapter 4: Rendering Geometric Objects | |
| JAD/JAR (81 KB), Javadoc | |
|
|
|
Chapter 5: Transformations | |
| JAD/JAR (32 KB), Javadoc | |
|
|
|
|
|
|
|
|
|
Chapter 6: Textures | |
| Describes how you can wrap an image around a mesh to create realistically looking models. | |
| JAD/JAR (118 KB), Javadoc | |
|
|
|
|
|
|
Chapter 7: Blending and Transparency | |
| JAD/JAR (82 KB), Javadoc | |
|
|
|
|
|
|
Chapter 8: Lighting | |
| JAD/JAR (67 KB), Javadoc | |
|
|
|
|
|
|
Part III: Advanced Topics | |
Chapter 9: Scene Graphs | |
| JAD/JAR (85 KB), Javadoc | |
|
|
|
|
|
|
Chapter 10: M3G's File Format | |
| JAD/JAR (110 KB), Javadoc | |
|
|
|
Chapter 11: Keyframe Animations | |
| JAD/JAR (47 KB), Javadoc | |
|
|
|
Chapter 12: Dynamic Meshes | |
| JAD/JAR (47 KB), Javadoc | |
|
|
|
|
|
|
Appendixes | |
Appendix B: MascotCapsule V3 API | |
| JAD/JAR (54 KB), Javadoc | |
|
|
|
Appendix C: Java Binding for the OpenGL ES API | |
| JAD/JAR (38 KB), Javadoc | |
|
|
|


































