hardware T&L and matrix multiplication
how to use hardware T&L ability in OpenGL if i use my own custom routines to multiply matrix vs matrix andmatrix vs vector??
how to use hardware T&L in such a quests - sorry for silly question. tahnks
matrix * matrix multiplication is not accelerated on current 3D hardware. So, it's perfectly fine, if you use your own code for that. Just load the final matrix using a glLoadMatrix call.
If you want to use HW t&l on vector x matrix multiplications, then you'll have to forget about your own custom routines *) - they are all replaced by the HW internal ones. Just give your untransformed 3D coordinates to OpenGL (using glVertex or appropriate VA calls), the HW will automatically do the rest.
*) Exception: HW vertex shaders, you can have your own custom transformation code running in HW on the GPU. But that's a special case.
/ Yann
[edited by - Yann L on July 30, 2002 10:39:37 AM]
If you want to use HW t&l on vector x matrix multiplications, then you'll have to forget about your own custom routines *) - they are all replaced by the HW internal ones. Just give your untransformed 3D coordinates to OpenGL (using glVertex or appropriate VA calls), the HW will automatically do the rest.
*) Exception: HW vertex shaders, you can have your own custom transformation code running in HW on the GPU. But that's a special case.
/ Yann
[edited by - Yann L on July 30, 2002 10:39:37 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement