Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Hi.. It's quiet long time since I use OpenGL what is most common GL math library


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
10 replies to this topic

#1 GeniusPooh   Members   -  Reputation: 157

Like
1Likes
Like

Posted 20 March 2013 - 01:14 AM

Hi.. It's quiet long time since I use OpenGL what is most common GL math library?

 

I downloaded GLM.

 

Is this very common??

 

I'm 3D engine maker so I must use very common library 

 

Thanks 


Beauty is only skin deep , ugly goes to bones

 

World's only 3D engine tunner and 3D engine guru.

 

and real genius inventor :) but very kind warm heart .. and having serious depression for suffering in Korea

 

www.polygonart.co.kr ( currently out dated and only Korean will change to English and new stuff when I get better condition :) sorry for that)


Sponsor:

#2 Aressera   Members   -  Reputation: 1482

Like
3Likes
Like

Posted 20 March 2013 - 01:43 AM

Since there is no official math library for OpenGL like there is for DirectX, I expect that most people either roll their own (my choice) or find an API-agnostic vector math library.


Edited by Aressera, 20 March 2013 - 01:58 AM.


#3 KaiserJohan   Members   -  Reputation: 1233

Like
4Likes
Like

Posted 20 March 2013 - 02:11 AM

GLM is awesome, I havn't bothered to look for something else. Definately go for it



#4 Hodgman   Moderators   -  Reputation: 31781

Like
3Likes
Like

Posted 20 March 2013 - 02:21 AM

D3D isn't directly tied to a specific math library either. Yes, there is D3DX, XnaMath.h and DirectXMath, which have all been designed by Microsoft to provide math code that works with D3D, but the actual D3D API doens't directly interact with any of them, so it's just as valid to use GLM with D3D, or DirectXMath with GL!



#5 JackShannon   Members   -  Reputation: 492

Like
2Likes
Like

Posted 20 March 2013 - 02:52 AM

If you'd like something more generic, try CML, http://cmldev.net/



#6 Vilem Otte   Crossbones+   -  Reputation: 1560

Like
7Likes
Like

Posted 20 March 2013 - 03:15 AM

There is quite a lot of them - here is a list of few I've been working with:

One of the most common is probably glm http://glm.g-truc.net/

Another good one is Eigen (Probably most generic out of these) http://eigen.tuxfamily.org/index.php?title=Main_Page

Then there is Sony's vectormath (used in Bullet engine) http://bullet.svn.sourceforge.net/viewvc/bullet/trunk/Extras/vectormathlibrary/include/vectormath/

You might also look into http://sourceforge.net/projects/simdx86/ although it's under LGPL license.

Another open sourced (fully written in sse2 intrinsics) - https://github.com/LiraNuna/glsl-sse2/tree/master/source


My current blog on programming, linux and stuff - http://gameprogrammerdiary.blogspot.com


#7 TheChubu   Crossbones+   -  Reputation: 4742

Like
1Likes
Like

Posted 20 March 2013 - 08:14 AM

GLM creates its types around the ones used in OpenGL (ie, mat4, vec3, column major order and so on). So its probably the most easy to set up for using directly with OpenGL.


"I AM ZE EMPRAH OPENGL 3.3 THE CORE, I DEMAND FROM THEE ZE SHADERZ AND MATRIXEZ"

 

My journals: dustArtemis ECS framework and Making a Terrain Generator


#8 EddieV223   Members   -  Reputation: 1407

Like
1Likes
Like

Posted 20 March 2013 - 12:08 PM

GLM is the most common.  I use GLM, its good library, haven't had any issues with it, and its just headers no .lib files, so very easy to use.


If this post or signature was helpful and/or constructive please give rep.

 

// C++ Video tutorials

http://www.youtube.com/watch?v=Wo60USYV9Ik

 

// Easy to learn 2D Game Library c++

SFML2.1 Download http://www.sfml-dev.org/download.php

SFML2.1 Tutorials http://www.sfml-dev.org/tutorials/2.1/

 

// SFML 2 book

http://www.amazon.com/gp/product/1849696845/ref=as_li_ss_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=1849696845&linkCode=as2&tag=gamer2creator-20

 


#9 BGB   Crossbones+   -  Reputation: 1554

Like
0Likes
Like

Posted 20 March 2013 - 03:35 PM

I rolled most of my own math code, but generally ended up mostly with something resembling GLSL mapped to C with SSE intrinsics being used (when available). (if compiled with C++, it adds some overloaded operators and similar, but is primarily a plain C API).

ironically, this is more used in the server-side code, with most of the renderer still using an older and more informal/ad-hoc system based more around raw float arrays and pointers.

#10 GeniusPooh   Members   -  Reputation: 157

Like
0Likes
Like

Posted 21 March 2013 - 08:52 PM

Thank you all 3D working fellows

 

I will choice GLM.

 

Thanks others too 


Beauty is only skin deep , ugly goes to bones

 

World's only 3D engine tunner and 3D engine guru.

 

and real genius inventor :) but very kind warm heart .. and having serious depression for suffering in Korea

 

www.polygonart.co.kr ( currently out dated and only Korean will change to English and new stuff when I get better condition :) sorry for that)


#11 GeniusPooh   Members   -  Reputation: 157

Like
0Likes
Like

Posted 21 March 2013 - 09:14 PM

There is quite a lot of them - here is a list of few I've been working with:

One of the most common is probably glm http://glm.g-truc.net/

Another good one is Eigen (Probably most generic out of these) http://eigen.tuxfamily.org/index.php?title=Main_Page

Then there is Sony's vectormath (used in Bullet engine) http://bullet.svn.sourceforge.net/viewvc/bullet/trunk/Extras/vectormathlibrary/include/vectormath/

You might also look into http://sourceforge.net/projects/simdx86/ although it's under LGPL license.

Another open sourced (fully written in sse2 intrinsics) - https://github.com/LiraNuna/glsl-sse2/tree/master/source

 

Great reference 

 

Thank you 


Beauty is only skin deep , ugly goes to bones

 

World's only 3D engine tunner and 3D engine guru.

 

and real genius inventor :) but very kind warm heart .. and having serious depression for suffering in Korea

 

www.polygonart.co.kr ( currently out dated and only Korean will change to English and new stuff when I get better condition :) sorry for that)





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS