QSkyboxEntity露
QSkyboxEntityis a convenienceQEntitysubclass that can be used to insert a skybox in a 3D scene. More鈥

Synopsis露
Functions露
def
baseName()def
extension()def
isGammaCorrectEnabled()
Slots露
def
setBaseName(path)def
setExtension(extension)def
setGammaCorrectEnabled(enabled)
Signals露
def
baseNameChanged(path)def
extensionChanged(extension)def
gammaCorrectEnabledChanged(enabled)
Detailed Description露
By specifying a base name and an extension,
QSkyboxEntitywill take care of building a TextureCubeMap to be rendered at runtime. The images in the source directory should match the pattern: base name + * 鈥淿posx|_posy|_posz|_negx|_negy|_negz鈥 + extensionBy default the extension defaults to .png.
Be sure to disable frustum culling in the FrameGraph through which the skybox rendering happens.
Note
Please note that you shouldn鈥檛 try to render a skybox with an orthographic projection.
- class PySide2.Qt3DExtras.Qt3DExtras.QSkyboxEntity([parent=None])露
- param parent:
Constructs a new
QSkyboxEntityobject withparentas parent.
- PySide2.Qt3DExtras.Qt3DExtras.QSkyboxEntity.baseName()露
- Return type:
str
Contains the base name of the Skybox.
- PySide2.Qt3DExtras.Qt3DExtras.QSkyboxEntity.baseNameChanged(path)露
- Parameters:
path 鈥 str
- PySide2.Qt3DExtras.Qt3DExtras.QSkyboxEntity.extension()露
- Return type:
str
Contains the extension of the filename for the skybox image, including the leading 鈥.鈥.
The default value is: .png
- PySide2.Qt3DExtras.Qt3DExtras.QSkyboxEntity.extensionChanged(extension)露
- Parameters:
extension 鈥 str
- PySide2.Qt3DExtras.Qt3DExtras.QSkyboxEntity.gammaCorrectEnabledChanged(enabled)露
- Parameters:
enabled 鈥 bool
- PySide2.Qt3DExtras.Qt3DExtras.QSkyboxEntity.isGammaCorrectEnabled()露
- Return type:
bool
A boolean indicating whether gamma correction is enabled.
- PySide2.Qt3DExtras.Qt3DExtras.QSkyboxEntity.setBaseName(path)露
- Parameters:
path 鈥 str
Contains the base name of the Skybox.
- PySide2.Qt3DExtras.Qt3DExtras.QSkyboxEntity.setExtension(extension)露
- Parameters:
extension 鈥 str
Contains the extension of the filename for the skybox image, including the leading 鈥.鈥.
The default value is: .png
- PySide2.Qt3DExtras.Qt3DExtras.QSkyboxEntity.setGammaCorrectEnabled(enabled)露
- Parameters:
enabled 鈥 bool
A boolean indicating whether gamma correction is enabled.
漏 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.