I am uploading a newer version of my math library. Again, this is free for any use to anyone. This library is something that I have been putting together for a while now. When I started this project, I went around the web looking for a decent template or math library that I could use; however, I was not able to find one that contained what I needed: readability; speed, and the most important –free! Most of the library is what I would consider pretty standard, but there are a few small differences, like a few different versions of a fast sqrt (which is very important), a trig look-up table that is about 6 times faster than using the standard function calls in the math.h file. Just remember, if you wish to use the trig function calls, make sure to initialize the tables with the InitMathLib() in the MathLib.h file, other than that, its ready to go.
This library is not guaranteed to be 100% accurate as I am still working on it and adding new functions. Many of the functions are written using the __m128 variable and intrinsic function calls, which means this library is intended for a 64 bit build –and for speed. There are some functions that pass the __m128 variable on the stack and when in 32 bit builds, the compiler cannot guarantee a 16 byte alignment of those variables, so a compiler error will appear. There are ways to work around this by not passing references of these variables to functions, and instead pass by copying the variables; but I don’t see a need for 32 bit support when the future is all about 64 bit anyway. So there you have it! If you download the library and find any errors, please post a comment on the forums so I can correct it.
Aside from that, I am still integrating assimp into my engine. I have two parts to work on, my static models and my animated models. So far the static model importing is complete, and now I am working on the animated part. Then, the MLAA will be next. After that I will make a few more tweaks to my terrain editor and then work on integrating Raknet. In case anyone doesn’t know, Raknet is a network library that appears to have a lot of tools built in. I have not had time to play with it much yet, but my initial impression is good. Time will tell!
Recent Comments