Avithohol

11-03-2010, 08:53 AM

Hello All

Just would like to start a discussion about OpenGL Mathematics Libraries

Until now i worked with Opengl 2.0

and have implemented my own little and simple math library:

cVec3, cMatrix, cQuaternion

As i dig myself into the Opengl 3.0+ and reading tutorials,

i do see people started to use third party math libraries.

I have also started to think about to switch to one.

Why ? My project grows and might need more professional math later.

The only thing that bothers me that all these libraries use templates.

I myself maybe a performance freak, but i think its a bit against the speed.

My math lib is pure GLfloat and inline functions.

Could a template library compete with the previous ?

Despite of that i am thinking about to switch to GLM.

Anybody has any insight which is the ultimate

OpenGL Mathematics Library from performance point of view ?

Have a nice day to you all !

Just would like to start a discussion about OpenGL Mathematics Libraries

Until now i worked with Opengl 2.0

and have implemented my own little and simple math library:

cVec3, cMatrix, cQuaternion

As i dig myself into the Opengl 3.0+ and reading tutorials,

i do see people started to use third party math libraries.

I have also started to think about to switch to one.

Why ? My project grows and might need more professional math later.

The only thing that bothers me that all these libraries use templates.

I myself maybe a performance freak, but i think its a bit against the speed.

My math lib is pure GLfloat and inline functions.

Could a template library compete with the previous ?

Despite of that i am thinking about to switch to GLM.

Anybody has any insight which is the ultimate

OpenGL Mathematics Library from performance point of view ?

Have a nice day to you all !