PySide6.Qt3DRender.Qt3DRender.QFrustumCulling¶
- class QFrustumCulling¶
Enable frustum culling for the FrameGraph. More…
Synopsis¶
Methods¶
def
__init__()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
A
QFrustumCulling
class enables frustum culling of the drawable entities based on the camera view and QGeometry bounds of the entities. IfQFrustumCulling
is present in the FrameGraph, only the entities whose QGeometry bounds intersect with the camera frustum, i.e. the view of the camera, are drawn. IfQFrustumCulling
is not present, all drawable entities will be drawn. The camera is selected by aQCameraSelector
frame graph node in the current hierarchy. Frustum culling can save a lot of GPU processing time when the rendered scene is complex.See also
QCameraSelector
- __init__([parent=None])¶
- Parameters:
parent –
QNode
The constructor creates an instance with the specified
parent
.