Score:0

RHI (Qt 6.1) not work in ubuntu?

in flag

I tried an example called "Qt 3D:WireFrame QML Example". I haven't changed anything in the code, but it works with an error. How to fix the error ??

error : Qt3D.Renderer.RHI.Backend: Initializing RHI with OpenGL backend

read this https://doc.qt.io/Qt-6/qt3drender-porting-to-rhi.html

but QSG_RHI_BACKEND

techniques: [
Technique {
graphicsApiFilter {
api: GraphicsApiFilter.OpenGL.QSG_RHI_BACKEND
profile: GraphicsApiFilter.CoreProfile
majorVersion: 3
minorVersion: 1
}

also results in an error

qrc:/WireframeEffect.qml:67:17: Unable to assign [undefined] to Qt3DRender::QGraphicsApiFilter::Api

added a line

qputenv("QSG_RHI_BACKEND", "opengl");

alas, nothing worked. I also tried to open a similar project, also an error (pbr-material)

enter image description here

enter image description here

enter image description here

enter image description here

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.