You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to adapt the powerup project in C++ instead of QML, which works fine in Qt 5.9 but not in 5.10.
Apparently there's no more QTexturedMetalRoughMaterial in Qt3DExtras module, instead we should use QMetalRoughMaterial. The issue is to set textures, this new class asks for QVariant values as arguments, instead of Qt3DRender::QAbstractTexture, and i didn't find a way to get this QVariant, neither any documentation on the subject.
Maybe because this class doesn't use textures but colors, but which class we need to use then ?
Thanks for your help.
The text was updated successfully, but these errors were encountered:
I think setting the texture with QVariant::fromValue(QAbstractTexture) should work. The new material will adapt the internal shader code based on the type being provided
I am trying to adapt the powerup project in C++ instead of QML, which works fine in Qt 5.9 but not in 5.10.
Apparently there's no more
QTexturedMetalRoughMaterial
in Qt3DExtras module, instead we should useQMetalRoughMaterial
. The issue is to set textures, this new class asks forQVariant
values as arguments, instead ofQt3DRender::QAbstractTexture
, and i didn't find a way to get this QVariant, neither any documentation on the subject.Maybe because this class doesn't use textures but colors, but which class we need to use then ?
Thanks for your help.
The text was updated successfully, but these errors were encountered: