
M3G Chapter 4. A Bending Block in a Landscape

From:
  Java Programming Techniques for 2D, 2.5D, 3D, and Network Games

  Dr. Andrew Davison
  Dept. of Computer Engineering
  Prince of Songkla University
  Hat yai, Songkhla 90112, Thailand
  E-mail: dandrew@ratree.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.

Thanks,
  Andrew


============================
SkinM3G

SkinM3G 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/

SkinM3G consists of 8 Java files in the src\ subdirectory:

   SkinM3G.java, SkinCanvas.java, SkinModel.java, TiledFloor.java, 
   MobileCamera.java, Billboard.java, MobileBackground.java,
   Floor.java

     You can delete Floor.java if you wish. It contains the 
     Floor class, which can be used instead of TiledFloor in 
     TiledFloor.java.

and 7 image files in the res\ directory:

   clouds.gif, floor.png, grass.gif,
   tree1.gif, tree2.gif, tree3.gif, tree4.gif

     You can delete floor.png if you wish. It's a floor image, 
     which can be used instead of grass.gif.


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

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

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\SkinM3G\src\ 

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

Build and run.

---------
Last updated: 10th November 2004
