文档介绍:Advanced Game
Development with
the Mobile 3D
Graphics API java./javaone/sf
Tomi Aarnio, Kari Pulli
Nokia Research Center
1 | 2004 JavaOneSM Conference | Session TS-2121
Gain an insight to the Mobile 3D Graphics
API and take your games to the next level
2 | 2004 JavaOneSM Conference | Session TS-2121
Prerequisites
• Fundamentals of 3D graphics
• OpenGL® or some other modern 3D API
• Java™ technology, preferably MIDP
3 | 2004 JavaOneSM Conference | Session TS-2121
Objectives
• Get a quick overview of the whole API
• Gain a deeper understanding of selected topics
• Learn practical tricks not found in the spec
4 | 2004 JavaOneSM Conference | Session TS-2121
Agenda
Why should I care?
Getting started
Low level features
Bitmaps and texturing
Scene graph
Dynamic meshes
Animation
5 | 2004 JavaOneSM Conference | Session TS-2121
Agenda
Why should I care?
Getting started
Low level features
Bitmaps and texturing
Scene graph
Dynamic meshes
Animation
6 | 2004 JavaOneSM Conference | Session TS-2121
Mobile 3D Graphics API (M3G)
• Also known as JSR-184
• Designed for mobile devices
─ Primarily CLDC / MIDP Midlets
─ But also CDC
Mobile 3D Graphics API MIDP
Graphics Hardware Java Virtual Machine (CLDC )
7 | 2004 JavaOneSM Conference | Session TS-2121
e the performance barrier
Native (C/C++) vs. Java on mobiles
1
Native code
CLDC HI
Jazelle™
KVM
Relative speedRelative
0
Vertex transformation Image downsampling
Benchmarked on an ARM9 processor
8 | 2004 JavaOneSM Conference | Session TS-2121
Leverage hardware acceleration
• Benefits for developers
─ Mask hardware differences (3D HW, FPU, DSP,…)
─ Exploit any new hardware automatically
• Benefits for hardware vendors
─ Gives a concrete target which features to offer
9 | 2004 JavaOneSM Conference | Session TS-2121
Speed up development cycles
• Separate content from code