|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.aviatrix3d.pipeline.graphics.BaseCullStage org.j3d.aviatrix3d.pipeline.graphics.FrustumCullStage
public class FrustumCullStage
Handles the complete set of scenegraph maintenance and culling operations.
The culling phase generates a list of nodes to render trimmed according to
what is visible in the view frustum, and return values from
CustomCullable
and CustomRenderable
.
By default, the implementation will walk into shape3Ds looking for any offscreen textures to be rendered. If you know that you do not have any in the scene, then you can set an internal flag to not look for them, thus achieving a simple performance boost.
Field Summary |
---|
Fields inherited from class org.j3d.aviatrix3d.pipeline.graphics.BaseCullStage |
---|
activeParent, appearanceStack, checkOffscreens, clipList, clipTxList, currentViewpointPath, errorReporter, eyePoint, fogStack, lastAppearanceStack, lastClip, lastFogStack, lastLight, lastOutputLayer, lastOutputList, lastSubscene, lastTxStack, layersTmp, LIGHT_INCREMENT, LIGHT_START_SIZE, lightList, lightTxList, LIST_INCREMENT, LIST_START_LENGTH, matrixUtils, orientationMatrix, outputLayerCounts, outputLayers, outputSceneParents, pendingParents, pendingSubscenes, processedPBufferTextures, screenOrientation, SHARED_VP_MSG, terminate, transformStack, useEyePoint, useOrientation, validSceneParents, viewMatrix1, viewMatrix2, workCullList, workLayerCounts, workLayers |
Constructor Summary | |
---|---|
FrustumCullStage()
Create a basic instance of this class with the list assuming there are no off-screen buffers in use for the initial internal setup. |
|
FrustumCullStage(int numSurfaces)
Create a basic instance of this class with the list initial internal setup for the given number of renderable surfaces. |
Method Summary | |
---|---|
protected void |
cleanupOldRefs()
Clean up the unused resources after the end of the cull process. |
protected void |
cullRenderPass(RenderPassCullable pass,
int passNumber,
int subsceneId,
int layerId,
int viewIndex,
int layerIndex)
Update and cull the a single pass from a multipass rendering. |
protected void |
cullScene(RenderPassCullable scene,
int subsceneId,
int layerId,
int viewIndex,
int layerIndex)
Update and cull the scenegraph. |
protected void |
cullScene2D(RenderPassCullable scene,
int subsceneId,
int layerId,
int viewIndex,
int layerIndex)
Update and cull the scenegraph. |
protected void |
fillSingleEnvData(SceneCullable scene,
GraphicsEnvironmentData envData)
Take the scene and fill in a GraphicsEnvironmentData instance. |
Methods inherited from class org.j3d.aviatrix3d.pipeline.graphics.BaseCullStage |
---|
checkForOffscreens, cull, cullMultipassViewportLayer, cullSingleViewportLayer, cullViewport, fill2DEnvData, fillMultipassEnvData, fillRenderPassEnvData, halt, isOffscreenCheckEnabled, processLayer, resizeAppearanceStack, resizeClipList, resizeCullList, resizeFogStack, resizeLightList, resizeOffscreenList, resizeOutputLists, resizeStack, setCulledGeometryReceiver, setErrorReporter, setEyePointOffset, setOffscreenCheckEnabled, setScreenOrientation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FrustumCullStage()
public FrustumCullStage(int numSurfaces)
numSurfaces
- Total number of surfaces to prepare rendering forMethod Detail |
---|
protected void cullScene(RenderPassCullable scene, int subsceneId, int layerId, int viewIndex, int layerIndex)
cullScene
in class BaseCullStage
scene
- The scene instance to cullsubsceneId
- The index of the subscene in the viewport outputlayerId
- The index of the layer in the outputviewIndex
- The index of the viewport in the parent
ViewportCollectionlayerIndex
- The index of the layer within the viewportprotected void cullRenderPass(RenderPassCullable pass, int passNumber, int subsceneId, int layerId, int viewIndex, int layerIndex)
cullRenderPass
in class BaseCullStage
pass
- The rendering pass instance to cullsubsceneId
- The index of the subscene in the viewport outputlayerId
- The index of the layer in the outputviewIndex
- The index of the viewport in the parent
ViewportCollectionlayerIndex
- The index of the layer within the viewportprotected void cullScene2D(RenderPassCullable scene, int subsceneId, int layerId, int viewIndex, int layerIndex)
cullScene2D
in class BaseCullStage
scene
- The scene instance to cullsubsceneId
- The index of the subscene in the viewport outputlayerId
- The index of the layer in the outputviewIndex
- The index of the viewport in the parent
ViewportCollectionlayerIndex
- The index of the layer within the viewportprotected void fillSingleEnvData(SceneCullable scene, GraphicsEnvironmentData envData)
fillSingleEnvData
in class BaseCullStage
scene
- The scene to take data fromenvData
- Data instance to copy it toprotected void cleanupOldRefs()
cleanupOldRefs
in class BaseCullStage
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |