Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

powerup project : support of Qt 5.10 #1

Open
jbltx opened this issue Mar 17, 2018 · 2 comments
Open

powerup project : support of Qt 5.10 #1

jbltx opened this issue Mar 17, 2018 · 2 comments

Comments

@jbltx
Copy link

jbltx commented Mar 17, 2018

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.

@krf
Copy link

krf commented Mar 19, 2018

@seanharmer Ideas?

@lemirep
Copy link
Contributor

lemirep commented Aug 7, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants