[Interest] Qt3D modelMatrix

Klos, Andreas andreas.klos at izfp.fraunhofer.de
Thu Nov 3 12:45:41 CET 2016


Ok I solved my problem. I thought I have to create a parameter to access the individual matrices, but THX to Qt3D! I can use the uniforms defined in RenderView without creating a parameter for each uniform.

Best Regards,
Andreas

Von: Interest [mailto:interest-bounces+andreas.klos=izfp.fraunhofer.de at qt-project.org] Im Auftrag von Klos, Andreas
Gesendet: 03 November 2016 10:20
An: interest at qt-project.org
Betreff: [Interest] Qt3D modelMatrix

Good morning Qt-Community,

Sry for this newbie question, but how can I  use my own modelMatrix without using QTransform? I know that I have to create a QParameter to determine the uniform and the corresponding QMatrix4x4. After that I have to add it to a  QEffect. But if I do so, how can I notify if the matrix has changed? It works perfectly with the QTransform and the usage of the mvp in the vertex shader. But if I multiply the position attribute with the modelMatrix, defined as described above, it does not work. It only works one time and after changing the matrix, nothing happens.

I hope someone can give me a helpful hint.

Best Regards,
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20161103/6f5b7ba8/attachment.html>


More information about the Interest mailing list