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 (with background) 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 (with background).
    See quick guide "Create a teapot with background (teapot4_background.max)".

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

  3. During export of the teapot model a teapot4_background.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 teapot4_background.m3g on Sun J2ME Wireless Toolkit 2.2" where you can download all the necessary files to display a teapot model (with background) on a phone.



    M3G teapot