Kuesa::Qt3D::Skybox¶
Module: Kuesa Qt 3D API
Kuesa::Qt3D::SkyBox is a convenience Qt3DCore::QEntity subclass used to insert a skybox in a 3D scene. Unlike Qt3DExtras::SkyboxEntity, its implementation is compatible with the Kuesa provided default framegraph. More...
#include <Kuesa/Qt3D/api/skybox.h>
Inherits from Qt3DCore::QEntity
Public Slots¶
| Name | |
|---|---|
| void | setBaseName(const QString & baseName) | 
| void | setExtension(const QString & extension) | 
Public Signals¶
| Name | |
|---|---|
| void | baseNameChanged(const QString & path) | 
| void | extensionChanged(const QString & extension) | 
Public Functions¶
| Name | |
|---|---|
| Skybox(Qt3DCore::QNode * parent =nullptr) | |
| ~Skybox() | |
| QString | baseName() const Skybox::baseName The skybox base name.  | 
| QString | extension() const Skybox::extension The skybox extension.  | 
Public Properties¶
| Name | |
|---|---|
| QString | baseName | 
| QString | extension | 
Detailed Description¶
1 |  | 
Kuesa::Qt3D::SkyBox is a convenience Qt3DCore::QEntity subclass used to insert a skybox in a 3D scene. Unlike Qt3DExtras::SkyboxEntity, its implementation is compatible with the Kuesa provided default framegraph.
See:
Since: Kuesa 2.0
Note: Please note that you shouldn't try to render a skybox with an orthographic projection.
Be sure to disable frustum culling in the FrameGraph through which the skybox rendering happens.
Kuesa::Qt3D::Skybox uses a baseName and an extension for the textures that will be used for the skybox. Depending on the skybox extension, Kuesa will create different textures to be used as skybox.
- *.dds Kuesa tries to load a texture called baseName + extension and uses a Qt3DRender::QTextureLoader to generate the texture
 - Anything else: Kuesa tries to load 6 different textures and creates a Qt3DRender::QTextureCubeMap from them
 
1 2 3 4 5 6  |  | 
Public Slots Documentation¶
slot setBaseName¶
1 2 3  |  | 
Sets the base name for the texture(s) that will be used as skybox to baseName.
slot setExtension¶
1 2 3  |  | 
Sets the extension for the texture(s) that will be used as skybox
Public Signals Documentation¶
signal baseNameChanged¶
1 2 3  |  | 
signal extensionChanged¶
1 2 3  |  | 
Public Functions Documentation¶
function Skybox¶
1 2 3  |  | 
function ~Skybox¶
1 |  | 
function baseName¶
1 |  | 
Skybox::baseName The skybox base name.
function extension¶
1 |  | 
Skybox::extension The skybox extension.
Public Property Documentation¶
property baseName¶
1 |  | 
property extension¶
1 |  | 
Updated on 2023-07-03 at 11:02:09 +0000