
M3G Chapter 6. Dynamically Textured Billboards

From:
  Killer Game Programming in Java 

  Dr. Andrew Davison
  Dept. of Computer Engineering
  Prince of Songkla University
  Hat Yai, Songkhla 90112, Thailand
  E-mail: ad@fivedots.coe.psu.ac.th

  Web Site for the book: http://fivedots.coe.psu.ac.th/~ad/jg


If you use this code, please mention my name, and include a link
to the book's Web site.

**NOTE**: this example is NOT in the hardcopy book printed by O'Reilly.

Thanks,
  Andrew


============================
DynaM3G

DynaM3G requires the Mobile 3D Graphics API which
is available in version 2.2. of the J2ME Wirelss Toolkit (WTK22).
It can be downloaded from 
http://java.sun.com/products/j2mewtoolkit/

DynaM3G consists of 5 Java files in the src\ subdirectory:
   DynaM3G.java, DynaCanvas.java, Floor.java, 
   DynaBoard.java, MobileCamera.java

and one image file in the res\ directory:
   bigGrid.gif

------
Compilation and Execution (using WTK22's KToolbar)

Create a new project called DynaM3G, with the MIDlet
class name DynaM3G.

Make sure to use the CLDC 1.1 configuration (so floats can be 
manipulated) and the Mobile 3D Graphics for J2ME (JSR 184) API.

Copy the Java files in src\ to WTK22\apps\DynaM3G\src\ 

Copy the image files in res\ to WTK22\apps\DynaM3G\res\

Build and run.


The camera position is moved by pressing the arrow keys. The
camera can be switched between three modes (move, rotate, 
and float) by pressing the Select/Enter key.

---------
Last updated: 16th August 2005
