|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CullStage
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 | |
---|---|
void |
cull(RenderableRequestData otherData,
ProfilingData profilingData,
LayerCullable[] layers,
int numLayers)
Update and cull the scenegraph defined by a set of layers. |
void |
halt()
Force a halt of the current processing. |
void |
setErrorReporter(org.j3d.util.ErrorReporter reporter)
Register an error reporter with the engine so that any errors generated by the node's internals can be reported in a nice, pretty fashion. |
Method Detail |
---|
void cull(RenderableRequestData otherData, ProfilingData profilingData, LayerCullable[] layers, int numLayers)
otherData
- data to be passed along unprocessedprofilingData
- The timing and load data on each stagelayers
- The collection of layers, in order, to rendernumLayers
- The number of valid layers to usevoid halt()
void setErrorReporter(org.j3d.util.ErrorReporter reporter)
reporter
- The instance to use or null
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |