Ensure that you have the image format plugin for tga images installed. Behind the scenes we use QImage to load the env map textures when specified as individual images like this.

Cheers,

Sean

On 18/11/2017 22:00, Pierre Chicoine wrote:
This is the only place I found on the Internet that Igor sent me.https://github.com/igormironchik/3Dtree <https://github.com/igormironchik/3Dtree>


Thank Igor.


Strange to note. It only works in his program in Kubuntu. When I try it, using 
his program with Android,

or mine, in Kubuntu or Android, I get this message, which repeats over and over 
again:


[Qt3DRender::GLTexture] No QTextureImageData generated from functor yet, 
texture will be invalid for this frame.


There a fixed bug In Qt's bug list that shows that this message has been fixed. 
So obviously, I don't understand

what I'm doing wrong or it's a real bug.


So I'm asking once more. Has anyone figured out how to properly use 
QSkyboxEntity? Any input would be appreciated.


Thanks



pQSkyboxEntity=newQt3DExtras::QSkyboxEntity(pQEntity);

pQSkyboxEntity->setBaseName(:/media/Skyboxes/skybox);

pQSkyboxEntity->setExtension("tga");


constfloatbaseScale=0.1f;

     Qt3DCore::QTransform*skyTransform=newQt3DCore::QTransform();

skyTransform->setTranslation(QVector3D(0.0f,baseScale/8.0f-0.001f,0.0f));

skyTransform->setScale3D(QVector3D(baseScale,baseScale/4.0f,baseScale));

     pQSkyboxEntity->addComponent(skyTransform);

}




_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


--
Dr Sean Harmer | sean.har...@kdab.com | Managing Director UK
KDAB (UK) Ltd, a KDAB Group company
Tel. +44 (0)1625 809908; Sweden (HQ) +46-563-540090
Mobile: +44 (0)7545 140604
KDAB - Qt Experts
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to