3d texture
Unsolved
General and Desktop
-
I'm trying to apply textures but error occurs "Texture target does not support array layers",
Qt3DCore::QEntity* bigRedSphere = new Qt3DCore::QEntity(root);
QUrl sours;
sours.setUrl("qrc:/1280px.jpg");
Qt3DRender::QTextureImage *textureload = new Qt3DRender::QTextureImage;
textureload->setSource(sours);
Qt3DRender::QTexture3D *tex= new Qt3DRender::QTexture3D;
tex->addTextureImage(textureload);
bigRedSphere->addComponent(texture); -
Hi! I don't know how textures work in Qt3D but at least I could tell you where the error comes from: https://code.woboq.org/qt5/qtbase/src/gui/opengl/qopengltexture.cpp.html#2978