Package | Description |
---|---|
jarp |
Provides the main Java ARP classes, that is, the classes defining
the avatar's skeleton, mesh, morphs, camera control, and JOGL
rendering canvas.
|
player |
Provides several signed-animation players:
each player combines a JARP avatar canvas with a source
of animation data, and provides an API allowing an enclosing GUI
container both to control this player and to obtain status information
from it in real-time.
|
Modifier and Type | Method and Description |
---|---|
void |
Character.buildSkin()
Computes the new mesh data for the current skeleton and morphs,
and passes the result to GL for rendering.
|
void |
Skeleton.computeGlobalBoneTransforms()
Recursively sets the (global) transformation matrix for
each bone in the hierarchy, using its relative TR-set, and
the matrix of its parent.
|
void |
Bone.computeGlobalTransforms(float rootOffset)
Throws an exception if this is not the root bone; otherwise,
computes this root bone's (gobal) transformation matrix from
the given offset and its own current TR-set, and then
does the same recursively for its descendants in the hierarchy.
|
void |
Character.generateFrame()
Generates the mesh-rendering data for the current frame.
|
void |
Character.generateFrame(float camX,
float camY,
float camZ)
Update mesh-data (vertex coordinates and normals) based
on latest skeleton and morph data.
|
void |
ImageHandler.loadTextureFromStreamV21(javax.media.opengl.GL2 gl,
javax.media.opengl.glu.gl2.GLUgl2 glu,
JAInputStream jins)
Loads texture from stream, supporting v2.1 avatar format.
|
void |
ImageHandler.loadTextureFromStreamV22(javax.media.opengl.GL2 gl,
javax.media.opengl.glu.gl2.GLUgl2 glu,
JAInputStream jins,
boolean COMPRESSED,
boolean PNG,
boolean IS_V_FLIPPED)
Loads texture from stream, supporting v2.2 (and later) avatar format.
|
void |
ImageHandler.loadTextureFromURL(javax.media.opengl.GL2 gl,
javax.media.opengl.glu.gl2.GLUgl2 glu,
java.lang.String IMG_URL_STR)
Loads the texture from the given URL (in v2.2 avatar format),
with the other settings taken from the current JA options.
|
void |
ImageHandler.loadTextureFromURL(javax.media.opengl.GL2 gl,
javax.media.opengl.glu.gl2.GLUgl2 glu,
java.lang.String IMG_URL_STR,
boolean IS_V22)
Loads the texture from the given URL, with v2.2 or v2.1 avatar
format as determined by the given flag parameter, and
with the other settings taken from the current JA options.
|
void |
ImageHandler.loadTextureFromURL(javax.media.opengl.GL2 gl,
javax.media.opengl.glu.gl2.GLUgl2 glu,
java.net.URL IMG_URL,
boolean COMPRESSED,
boolean PNG,
boolean IS_V_FLIPPED)
Loads the texture from the specified URL, in accordance with
the specified flags, in v2.2 format.
|
void |
ImageHandler.loadTextureFromURL(javax.media.opengl.GL2 gl,
javax.media.opengl.glu.gl2.GLUgl2 glu,
java.net.URL IMG_URL,
boolean COMPRESSED,
boolean PNG,
boolean IS_V_FLIPPED,
boolean IS_V22)
Loads the texture from the specified URL, in accordance with
the specified flags.
|
static void |
Character.main(java.lang.String[] args)
Main method converts an avatar file to JARP format.
|
void |
View.playAndGrabOneFrame(CASFrame FRAME,
int F,
byte[] pixels,
boolean dolog)
Generates and plays one frame, given the frame data, its index number,
taking a copy of the resulting frame image, and returning that image.
|
void |
View.playOneFrame(CASFrame FRAME,
int F)
Generates and plays one frame, often but not necessarily as part
of an animation sequence, given the frame data and its index number.
|
void |
View.playOneFrame(CASFrame FRAME,
int F,
float SPEED_UP,
boolean T_DISPLAY)
Generates and plays one frame, often but not necessarily as part
of an animation sequence, given the frame data, its index number,
the current speed-up factor (for use in performance statistics
collection), with running performance data logging output controlled
by the given flag.
|
void |
View.playOneFrameWithStableAmbient(CASFrame FRAME,
int F)
Generates and plays one frame, given the frame data and index number,
with no change in the ambient adjustment (if any).
|
void |
View.playOneIdleFrame(CASFrame FRAME)
Generates and plays the given frame, assumed to be part of an idle
(non-animating) sequence, and hence not to have an ambient
adjustment applied to it before processing.
|
Constructor and Description |
---|
Character(JAInputStream jins)
Constructs this Character using avatar definition data from the
given stream, assuming to other context/resources are required
(typically used by our
Character.main(java.lang.String[]) method
to read an avatar definition). |
Character(java.lang.String avurl,
JAInputStream jins) |
Character(java.lang.String avurl,
JAInputStream jins,
java.lang.String rqstversion,
javax.media.opengl.GL2 gl,
javax.media.opengl.glu.gl2.GLUgl2 glu,
JAOptions jopts)
Constructs this Character using avatar definition data from the
given stream.
|
Modifier and Type | Method and Description |
---|---|
void |
AnimationScheduler.playAnimation()
Plays the animation sequence defined by the current settings of
this scheduler's scanner, halting prematurely if requested.
|