Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / 3D Vectors - Custom, Free Solutions, or DarkGDK?

Author
Message
iSilver
13
Years of Service
User Offline
Joined: 20th Feb 2011
Location:
Posted: 2nd Apr 2011 07:07
I've been finding my own vector class a bit lacking. So as I'm designing my game engine (thinking in UML at the moment), the vector maths class issue came up.

Is the DarkGDK one good enough, or is it inefficient because I have to keep track of which vector ids are in use (I'd use a stack or vector + stack or something)?

Are there free solutions out there? Like an STL-type thing for 3D Vectors?


Thanks for all your input,

Flamesilver
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 2nd Apr 2011 09:23 Edited at: 2nd Apr 2011 09:23
see D3DXVECTOR3
defined in d3dxmath.h, probably included in DarkGDK.h so no need to include it

Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 2nd Apr 2011 13:32
Like Hassan said, use D3DXVECTOR3, all the other D3D structures are also available without needing to include anything because they are what DarkGDK uses anyway, I presume.

_Pauli_
AGK Developer
15
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
Posted: 2nd Apr 2011 15:31
Yeah, use the DirectX vectors.
You can then also use functions like D3DXVec3Normalize, D3DXVec3Length, D3DXVec3Dot, ...

iSilver
13
Years of Service
User Offline
Joined: 20th Feb 2011
Location:
Posted: 2nd Apr 2011 15:49
Good call, I'll look into it!

Thanks!

Login to post a reply

Server time is: 2024-11-19 12:15:26
Your offset time is: 2024-11-19 12:15:26