Mobile 3D Graphics API (M3G)

 
 
Mobile 3D Graphics API (M3G) is an optional package which can be used to existing J2ME MIDP 1.0 or MIDP 2.0. profiles. The specification was defined under JSR-184. The target platform of this optional API is J2ME/CLDC 1.1.

More information about M3G can be found at: http://developers.sun.com/techtopics/mobility/apis/articles/3dgraphics/

Version 2.2 of the J2ME Wireless Toolkit provides support for mobile 3D graphics by implementing JSR 184.
The latest M3G API version can be downloaded from: http://www.forum.nokia.com/main/resources/technologies/java/







Simple M3G Teapot code example.



Information
none

Operating system used
Windows XP Home Edition Version 5.1 SP 2

Software prerequisites
Sun J2ME Wireless Toolkit 2.2 or higher

Procedure
  1. Create a teapot model. See quick guide "Create a teapot (teapot1.max)".

  2. Export the teapot model to an m3g file. See quick guide "Export model (teapot1.max) to m3g file".

  3. During export of the teapot model a teapot1.html (build log) is created. Use this log to get more information about the "User IDs" which were automatically assigned during export.

  4. Follow the quick guide "Setup, build and run teapot1.m3g on Sun J2ME Wireless Toolkit 2.2" where you can download all the necessary files to display a teapot model on a phone.



    M3G teapot