Skip to main content
GameDev.net gamedev.net
🔒 Locked

Matrix multiplication in ARB_vertex_program

Started by Corrail Aug 13, 2003 at 6:27 AM 1 replies 350+ views
Original Post
Corrail
Corrail
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...
_DarkWIng_
_DarkWIng_
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.
Corrail
Corrail
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...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.