Jump to content
  • Advertisement
Sign in to follow this  
Amnesiac5

Open source replacement for D3DVECTOR

This topic is 3964 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone know of an Open Source replacement or similar for D3DVECTOR? I'd like to use it for portable, cross-platform projects, and I do not wish to write Yet Another 3D Vector Class. TIA

Share this post


Link to post
Share on other sites
Advertisement
Many people seem to like CML (personally I find it to be a bit scary [smile]).

Google will certainly give you more options.

Share this post


Link to post
Share on other sites
Quote:
Original post by Gage64
Many people seem to like CML (personally I find it to be a bit scary [smile]).
Thanks, first impression is that it's wa-a-y over the top for what I want...

boo wop sho waddy waddy

...bit more digging and nope, sadly not a good fit for what I want.

I already have code which uses D3DVECTOR and I would like to simply replace #include <d3d.h>.
Quote:
Original post by Gage64
Google will certainly give you more options.
Heh... [sad] you'd think so wouldn't you.

Share this post


Link to post
Share on other sites
Well, I have my own vector and matrix math library (see signature) which I use for OpenGL and other 3D related programming. All the important functions should be there and the operators are overloaded. I'm not sure if it can be used as a drop in replacement for a D3DXVECTOR but it should come close.

Share this post


Link to post
Share on other sites
Hi Trenki,

nice use of templates, but sadly not what I was hoping for.

I was hoping I could just drop in some replacement class, but a couple of hours of research have thrown a number of vector 3d (vec3d) classes but there seems little to no consistency in their interfaces... sigh.

I'll probably end up using the class from Graphics Gems.

Thanks for the suggestions anyway, guys.

Share this post


Link to post
Share on other sites
I think everyone should use CML [smile]

I've talked to jyk and he's a nice guy that knows his C++ and math.

But I hope you find what's right for you.

Why do you think CML is over the top? Maybe you don't have much experience with templates? Or is it you don't need to use matrices, just vectors?

And trenki, I didn't know about your vector_math library! How long have you worked on or used it for? The name is cool sounding, but maybe people would get a first impression that it just does vectors.

Share this post


Link to post
Share on other sites
Quote:
Original post by Boder
Why do you think CML is over the top? Maybe you don't have much experience with templates? Or is it you don't need to use matrices, just vectors?
Basically, yes.

Additionally, (according to this forum entry) it doesn't support this:

D3DXVECTOR3 v;
v.x = 0.0f;
v.y = 1.0f;
v.z = v.y;

instead requiring

cml::vector3 v
v[0] = 0.0f;
v[1] = 1.0f;
v[2] = v[1];

Although this may not be an issue in practice.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!