org.j3d.renderer.aviatrix3d.nodes
Class Billboard
java.lang.Object
org.j3d.aviatrix3d.SceneGraphObject
org.j3d.aviatrix3d.Node
org.j3d.aviatrix3d.Group
org.j3d.renderer.aviatrix3d.nodes.Billboard
- All Implemented Interfaces:
- Cullable, GroupPickTarget, PickableObject, PickTarget
- public class Billboard
- extends Group
- implements Cullable
Not available at this time
Provides local billboard capabilities that orient the children object
towards the camera location.
This implementation provides view-dependent correctness based on the
individual traversal path to the node from the root of the scene graph.
Even under a shared subgraph, or different rendering pipelines with different
view frustums, each object traversal path will look visually correct.
- Version:
- $Revision: 1.2 $
- Author:
- Justin Couch
Constructor Summary |
Billboard()
Construct a new billboard with the axis of rotation set to 0,0,0. |
Method Summary |
void |
cullChildren(CullInstructions output,
javax.vecmath.Matrix4f vworldTx,
javax.vecmath.Matrix4f viewTransform,
javax.vecmath.Vector4f[] frustumPlanes,
float angularRes)
Check this node for children to traverse. |
protected void |
recomputeBounds()
Implementation of recompute bounds. |
Methods inherited from class org.j3d.aviatrix3d.Group |
addChild, checkForCyclicChild, checkPickMask, getAllChildren, getChild, getPickableBounds, getPickableChild, getPickableChildren, getPickMask, getPickTargetType, getRenderableChild, indexOfChild, markBoundsDirty, numChildren, numPickableChildren, numRenderableChildren, pickBatch, pickSingle, removeAllChildren, removeChild, removeChild, requestBoundsUpdate, setBounds, setChild, setLive, setPickMask, setUpdateHandler, updateBounds |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Billboard
public Billboard()
- Construct a new billboard with the axis of rotation set to 0,0,0.
cullChildren
public void cullChildren(CullInstructions output,
javax.vecmath.Matrix4f vworldTx,
javax.vecmath.Matrix4f viewTransform,
javax.vecmath.Vector4f[] frustumPlanes,
float angularRes)
- Check this node for children to traverse. The angular resolution is
defined as Field Of View (in radians) / viewport width in pixels.
- Specified by:
cullChildren
in interface Cullable
- Parameters:
output
- Fill in the child information herevworldTx
- The transformation from the root of the scene to
this node according to the current traversal pathviewTransform
- The transformation from the root of the scene
graph to the active viewpointfrustumPlanes
- Listing of frustum planes in the order: right,
left, bottom, top, far, nearangularRes
- Angular resolution of the screen, or 0 if not
calculable from the available data.
recomputeBounds
protected void recomputeBounds()
- Implementation of recompute bounds.
Expands the boundingbox to compensate for rotation of the children
- Overrides:
recomputeBounds
in class Group
Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2005 j3d.org