
JOGL-ES Chapter 3. A Particle System

From:
  Pro Java 6 3D Game Development 

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


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 Apress.

Thanks,
  Andrew


============================
ParticlesES

A simple JOGL-ES example displaying a floor, a particles fountain, 
and a textured cube. The user can navigate through the scene by 
moving and rotating the camera.


ParticlesES requires the Java Bindings for OpenGL ES (JSR 239) API which
is available in version 2.5. of the Java ME Wirelss Toolkit (WTK 2.5).
It can be downloaded from 
http://java.sun.com/products/sjwtoolkit/

------
Files in the Download

ParticlesES consists of 7 Java files in the src\ subdirectory:
  ParticlesES.java, ParticlesGameCanvas.java,
  KeyCamera.java, Camera.java,               
  Floor.java, TexCube.java
  Particles.java

3 image files in the res\ directory
  bigGrid.png, brick2.png, part3.png


------
Compilation and Execution (using WTK 2.5)

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

In the "API Selection" window, select the radio box
for "Java Bindings for OpenGL ES (JSR 239)" which is
located in the "Additional APIs" section

Copy the Java files in src\ to WTK25\apps\ParticlesES\src\ 

Copy the PNG files in res\ to WTK25\apps\ParticlesES\res\

Build and run.

-----------
Using the Camera

The camera position is moved by pressing the arrow keys. The
camera can be switched between three modes (move, rotate, 
and glide/float) by pressing the game-A key. The camera's
position and orientation is rest by pressing the select/enter
key.

---------
Last updated: 28th May 2007
