QSkyboxEntity

QSkyboxEntity is a convenience QEntity subclass that can be used to insert a skybox in a 3D scene. More

Inheritance diagram of PySide2.Qt3DExtras.Qt3DExtras.QSkyboxEntity

Synopsis

Functions

Slots

Signals

Detailed Description

By specifying a base name and an extension, QSkyboxEntity will 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” + extension

By 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’t try to render a skybox with an orthographic projection.

class PySide2.Qt3DExtras.Qt3DExtras.QSkyboxEntity([parent=None])

Constructs a new QSkyboxEntity object with parent as 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.