Re: [Interest] [Qt3D] Use a QImage as a QTextureImage

2016-04-07 Thread Sean Harmer
Hi Andy, sorry forgot to reply to this. You can use the functor of QTextureImage and either pass your pre-prepared image in a as a member of your custom functor or you can do the actual painting using QPainter in the functors function call operator. We aim to eventually add a convenience class

Re: [Interest] [Qt3D] Use a QImage as a QTextureImage

2016-04-07 Thread Andy
[bump] Does anyone have any suggestions on how to use an in-memory QImage as a QTextureImage? Or any other way to create a QNormalDiffuseMapAlphaMaterial from an in-memory QImage? I must be missing something obvious. --- Andy Maloney // https://asmaloney.com twitter ~ @asmaloney

[Interest] [Qt3D] Use a QImage as a QTextureImage

2016-04-05 Thread Andy
I have a QImage that I'm generating programmatically using a QPainter which I want to use as a texture. I want to use it in a QNormalDiffuseMapAlphaMaterial as a diffuse texture - so it needs a QTextureImage whose source is set using a QUrl. How do I get from my in-memory QImage to a QUrl to set