Jump to content

  • Log In with Google      Sign In   
  • Create Account

Calling all IT Pros from Canada and Australia.. we need your help! Support our site by taking a quick sponsored surveyand win a chance at a $50 Amazon gift card. Click here to get started!


#Actualmhagain

Posted 14 April 2014 - 11:06 AM

Yes, you would have to upload a new matrix, but that's just what a glTranslatef call does.  The only difference is that instead of relying on an OpenGL call to calculate a translation matrix, multiply it by the current matrix, and upload that to the GPU, you get to do it all yourself.

 

It's worth noting here that glTranslatef and friends, despite being OpenGL calls, are not hardware accelerated (the OpenGL spec doesn't actually promise or guarantee that anything will be hardware accelerated).  The GL matrix stack is just a software matrix library that calculates everything on the CPU and uploads the result to the GPU, so you can quite easily replace it with your own choice of software matrix library.


#1mhagain

Posted 14 April 2014 - 11:05 AM

Yes, you would have to upload a new matrix, but that's just what a glTranslatef call does.  The only difference is that instead of relying on an OpenGL call to calculate a translation matrix, multiply it by the current matrix, and upload that to the GPU, you get to do it all yourself.

 

It's worth noting here that glTranslatef and friends, despite being OpenGL calls, are not hardware accelerated.  The GL matrix stack is just a software matrix library that calculates everything on the CPU and uploads the result to the GPU, so you can quite easily replace it with your own choice of software matrix library.


PARTNERS