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/

rss feed






Simple M3G Teapot (with color and texture) 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 color and texture).
    See quick guide "Create a teapot with color and texture (teapot3_color_texture.max)".

  2. Export the teapot model (with color and texture) to an m3g file. See quick guide "Export model (teapot3_color_texture.max) to m3g file".

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



    M3G teapot