|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphicsCullStage
Handles the scenegraph per-frame culling operations.
The culling phase generates a list of leaf nodes to render by removing non-required sections of the scene graph. How this culling is performed (if at all) is dependent on the implementation of this class. All that is defined is a complete scene graph as input, and a grouped set of nodes based on what must be kept together from a rendering perspective. Two typical culling approaches are view frustum and BSP. Others may also be implemented dependent on the application domain. Implementations may also work concepts that are not 3D geometry-based, such as audio and haptics.
The culling stage is responsible for looking at the offscreen renderable surfaces as well as the main screen. Since most scenes will not require any offscreen rendering, convenience methods are defined to allow the user to turn on/off these checks. Offscreen rendering, and the checking for extra renderables can be a huge CPU hog so it is advisable to make sure that it is turned off if you don't need it. An ideal implementation will be able to handle dynamically switching between the two states between frames without the need to restart.
Output is to be sent to the registered listener.
Method Summary | |
---|---|
boolean |
isOffscreenCheckEnabled()
Find out what the current offscreen check state is. |
void |
setCulledGeometryReceiver(CulledGeometryReceiver sgr)
Register a reciever for the output of the sorter. |
void |
setEyePointOffset(float x,
float y,
float z)
Set the eyepoint offset from the centre position. |
void |
setOffscreenCheckEnabled(boolean state)
Set the flag for whether to check for offscreen textures or not. |
void |
setScreenOrientation(float x,
float y,
float z,
float a)
Set the orientation of this screen relative to the user's normal view direction. |
Methods inherited from interface org.j3d.aviatrix3d.pipeline.CullStage |
---|
cull, halt, setErrorReporter |
Method Detail |
---|
void setOffscreenCheckEnabled(boolean state)
state
- true if offscreen textures should be looked forboolean isOffscreenCheckEnabled()
void setCulledGeometryReceiver(CulledGeometryReceiver sgr)
sgr
- The receiver instance to add or nullvoid setEyePointOffset(float x, float y, float z)
x
- The x axis offsety
- The y axis offsetz
- The z axis offsetvoid setScreenOrientation(float x, float y, float z, float a) throws java.lang.IllegalArgumentException
x
- The x axis componenty
- The y axis componentz
- The z axis componenta
- The angle to rotate around the axis in radians
java.lang.IllegalArgumentException
- The length of the axis is zero
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |