Why should you implement math function?

A place for Ogre users to discuss non-Ogre subjects with friends from the community.
Post Reply
_Anonymous

Why should you implement math function?

Post by _Anonymous »

I have an question: Why there are custom math functions and classes in all graphics engines? D3DX provides us fully functional operation for vectors, matrices...even loading textures. Is there any other reason than cross-platform support?
User avatar
xavier
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 9481
Joined: Fri Feb 18, 2005 2:03 am
Location: Dublin, CA, US
x 22

Re: Why should you implement math function?

Post by xavier »

Because no one has ever really made a game-ready vector math library. Yes, they all do the same thing, there is no reason that there is not a "standard" library that everyone can use rather than re-invent the wheel all the time.

You'll also find a lot of projects and studios have some level of "not-invented-here" disease. Ogre's math classes, however, have their origins in the WildMagic graphics engine math classes, so while Ogre technically has its own math classes, they actually originated for the most part with an existing set of classes.
Do you need help? What have you tried?

Image

Angels can fly because they take themselves lightly.
_Anonymous

Re: Why should you implement math function?

Post by _Anonymous »

I mean, all the things is there, for free. Why do people still want to write their own?
User avatar
xavier
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 9481
Joined: Fri Feb 18, 2005 2:03 am
Location: Dublin, CA, US
x 22

Re: Why should you implement math function?

Post by xavier »

_Anonymous wrote:I mean, all the things is there, for free. Why do people still want to write their own?
Again, I am shrugging.
Do you need help? What have you tried?

Image

Angels can fly because they take themselves lightly.
_Anonymous

Re: Why should you implement math function?

Post by _Anonymous »

Ok. I see. Any other idea?
BTW, I'm considering between Boost and D3DX math libs. Which one should I use?
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: Why should you implement math function?

Post by jacmoe »

D3DX math - LOL

I didn't know that Boost has 3D graphics math functions?
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: Why should you implement math function?

Post by jacmoe »

/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
_Anonymous

Re: Why should you implement math function?

Post by _Anonymous »

I forgot to say that i'm not using Ogre :|
And about Boost, yes, it has all the things like vectors, matrices, quarternions...plus lots of others functionalities. I saw an engine ultilized it here http://hieroglyph3.codeplex.com/. And it's a DirectX 11 engine :D
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: Why should you implement math function?

Post by jacmoe »

Then it would be a good idea to post your questions elsewhere, like GameDev.net ? :)
GameDev.net is excellent, IMO. They've got the best forum you can find.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Post Reply