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...@qt-project.org] Im 
Auftrag von Klos, Andreas
Gesendet: 03 November 2016 10:20
An: interest@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
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to