|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.scene.Spatial
com.jme.scene.Node
com.jme.scene.BillboardNode
BillboardNode defines a node that always orients towards the
camera. However, it does not tilt up/down as the camera rises. This keep
geometry from appearing to fall over if the camera rises or lowers.
BillboardNode is useful to contain a single quad that has a
image applied to it for lowest detail models. This quad, with the texture,
will appear to be a full model at great distances, and save on rendering and
memory. It is important to note that the billboards orientation will always
be up (0,1,0). This means that a standard camera with up (0,1,0) is the only
camera setting compatible with BillboardNode.
| Field Summary | |
static int |
AXIAL
Alligns this Billboard Node to the screen, but keeps the Y axis fixed. |
static int |
CAMERA_ALIGNED
Alligns this Billboard Node to the camera position. |
static int |
SCREEN_ALIGNED
Alligns this Billboard Node to the screen. |
| Fields inherited from class com.jme.scene.Node |
children |
| Fields inherited from class com.jme.scene.Spatial |
currentStates, defaultStateList, forceCull, forceView, frustrumIntersects, geometricalControllers, lightCombineMode, localRotation, localScale, localTranslation, name, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder |
| Constructor Summary | |
BillboardNode(java.lang.String name)
Constructor instantiates a new BillboardNode. |
|
| Method Summary | |
void |
draw(Renderer r)
draw updates the billboards orientation then renders the
billboard's children. |
int |
getType()
Returns the type of rotation this BillboardNode is set too. |
void |
rotateBillboard(Camera cam)
rotate the billboard based on the type set |
void |
setType(int type)
Sets the type of rotation this BillboardNode will have. |
void |
updateWorldData(float time)
updateWorldData defers the updating of the billboards
orientation until rendering. |
| Methods inherited from class com.jme.scene.Node |
applyRenderState, attachChild, detachAllChildren, detachChild, detachChildAt, detachChildNamed, drawBounds, findCollisions, findPick, getChild, getChild, getChildren, getQuantity, hasChild, hasCollision, putClone, setChild, setForceView, updateCollisionTree, updateWorldBound |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int SCREEN_ALIGNED
public static final int AXIAL
public static final int CAMERA_ALIGNED
| Constructor Detail |
public BillboardNode(java.lang.String name)
BillboardNode. The name of
the node is supplied during construction.
name - the name of the node.| Method Detail |
public void updateWorldData(float time)
updateWorldData defers the updating of the billboards
orientation until rendering. This keeps the billboard from being
needlessly oriented if the player can not actually see it.
updateWorldData in class Nodetime - the time between frames.Spatial.updateWorldData(float)public void draw(Renderer r)
draw updates the billboards orientation then renders the
billboard's children.
draw in class Noder - the renderer used to draw.Spatial.draw(com.jme.renderer.Renderer)public void rotateBillboard(Camera cam)
cam - Camerapublic int getType()
public void setType(int type)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||