Matrix multiplication in ARB_vertex_program

Started by
1 comment, last by Corrail 20 years, 8 months ago
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
--------------------------------------------------------There is a theory which states that if ever anybody discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.There is another theory which states that this has already happened...
Advertisement
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
--------------------------------------------------------There is a theory which states that if ever anybody discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.There is another theory which states that this has already happened...

This topic is closed to new replies.

Advertisement