|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Handles the scenegraph maintenance and culling operations.
The culling phase generates a list of nodes to render. A future optimization will sort the render list by OGL state.
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.
Method Summary | |
void |
cull(Scene scene,
int buffer)
Update and cull the scenegraph. |
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. |
Method Detail |
public void setOffscreenCheckEnabled(boolean state)
state
- true if offscreen textures should be looked forpublic boolean isOffscreenCheckEnabled()
public void cull(Scene scene, int buffer)
scene
- The scene instance to cullbuffer
- The buffer ID to use to output the data to when
multi-threadedpublic void setCulledGeometryReceiver(CulledGeometryReceiver sgr)
sgr
- The receiver instance to add or nullpublic void setEyePointOffset(float x, float y, float z)
x
- The x axis offsety
- The y axis offsetz
- The z axis offsetpublic void 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
|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |