Archived

This topic is now archived and is closed to further replies.

Corrail

Matrix multiplication in ARB_vertex_program

Recommended Posts

Hello! How do I realize a quite efficient matrix multiplication in a vertex program? Thanks for every help -------------------------------------------------------- "If it looks good, it is good computer graphics" "If it looks like computer graphics, it is bad computer graphics" Corrail corrail@gmx.at ICQ#59184081

Share this post


Link to post
Share on other sites
Matrix multiplication is O(n^3) operation. For 3x3 matrix that is 9 DP3 instructions and for 4x4 its 16 DP4. There are a few "hacks" if your matrices are in some special form but you''ll have to profile it if ti''s worth the trouble

You should never let your fears become the boundaries of your dreams.

Share this post


Link to post
Share on other sites
Thanks a lot.
I''ve just tried it with cg and noticed that their compiler is very cool! :-) I''ve expected a lot more instruction at my first VP!

--------------------------------------------------------

"If it looks good, it is good computer graphics"
"If it looks like computer graphics, it is bad computer graphics"

Corrail
corrail@gmx.at
ICQ#59184081

Share this post


Link to post
Share on other sites