Matrix multiplication in ARB_vertex_program
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
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.
You should never let your fears become the boundaries of your dreams.
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement