3D Graphics in J2ME
An Introduction |
Prof. David Bernstein
|
Computer Science Department |
bernstdh@jmu.edu |
Graphics3D
class has a
getInstance()
method that returns the
singleton Graphics3D
object
render()
method renders a
VertexBuffer
containing a shape
setCamera()
method is used to set
the position of the viewer
setLight()
method is used to
bind/unbind lights
VertexArray
:
VertexArray
contains positions, colors,
normals, or texture coordinates for vertices
VertexBuffer
:
VertexBuffer
holds references
to the VertexArray
objects (one of each "type")
needed to define a shape
Transform
:
Camera
:
Material
:
Texture2D
:
Appearance
:
Material
object, Texture2D
object, etc...
Light
:
MIDlet
World
class
Group
class
AnimationController
AnimationTrack
KeyframeSequence