How to convert to D3DVECTOR ???
How can i convert between OpenGL 3d coords and Direct3D D3DVECTORs? I need this because im using DirectSound for positioning sounds in 3D space, and the API requires the position and orientation to be a Direct3D coordinate.
Unfortunately, it differs from my coords: IN my engine, i use a space with 5000 units on each axis, but this does not work with DirectSound....
thanks & greets
gammastrahler
opengl uses righthand space + d3d uses lefthand. u can negate the z axis.
or use openal (in windows it uses directsound so performance is the same)
http://members.xoom.com/myBollux
or use openal (in windows it uses directsound so performance is the same)
http://members.xoom.com/myBollux
www.openal.com (unless you are aiming for platform independence, use DirectAudio though).
------------------------------
Trent (ShiningKnight)
E-mail me
OpenGL Game Programming Tutorials
------------------------------
Trent (ShiningKnight)
E-mail me
OpenGL Game Programming Tutorials
quote:Original post by zedzeek
opengl uses righthand space + d3d uses lefthand.
I thought that D3D8 uses both. At least there are some functions for both LH and RH (for example D3DXMatrixPerspectiveRH/LH()).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement