qt3d-examples icon indicating copy to clipboard operation
qt3d-examples copied to clipboard

powerup project : support of Qt 5.10

Open jbltx opened this issue 6 years ago • 2 comments

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.

jbltx avatar Mar 17 '18 15:03 jbltx

@seanharmer Ideas?

krf avatar Mar 19 '18 17:03 krf

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

lemirep avatar Aug 07 '18 10:08 lemirep