Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

How to convert to D3DVECTOR ???

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
5 replies to this topic

#1 Gammastrahler   Members   

150
Like
Likes
Like

Posted 22 June 2001 - 07:50 AM

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

#2 zedzeek   Members   

528
Like
Likes
Like

Posted 22 June 2001 - 11:27 AM

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

#3 Gammastrahler   Members   

150
Like
Likes
Like

Posted 22 June 2001 - 11:40 AM

thanks, i will try it!

what is openal and where can i get it?

greets,
gammastrahler

#4 mittens   Members   

1323
Like
Likes
Like

Posted 22 June 2001 - 04:02 PM

www.openal.com (unless you are aiming for platform independence, use DirectAudio though).

------------------------------
Trent (ShiningKnight)
E-mail me
OpenGL Game Programming Tutorials

#5 stefu   Members   

120
Like
Likes
Like

Posted 22 June 2001 - 07:40 PM

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()).


#6 Obelix   Members   

122
Like
Likes
Like

Posted 22 June 2001 - 09:06 PM

Yes, but the default is the opposite to OpenGL.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.