Jump to content
  • Advertisement
Sign in to follow this  
wolf

OpenGL Direct3D to OpenGL Porting guide

This topic is 4655 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

Hi, I am looking for a Direct3D to OpenGL porting guide ... or OpenGL to Direct3D :-) ... whatever is available. thanks in advance, - wolf

Share this post


Link to post
Share on other sites
Advertisement
Thanks for the great replies.
I should have clarified what I am after a bit. I am not looking for a OpenGL API to Direct3D API or vice versa paper. I was more interested in math related things like ... please do not forget that the cross product needs to be multiplied with -1 under OpenGL ... if you have a frustum class that works in D3D here is how it might look like to work in OpenGL etc ...
So I am sorry for the confusion. Maybe I should post this in the math section?

- wolf

Share this post


Link to post
Share on other sites
If you need specific information like that, then read the documents.
GL has it's specification document at www.opengl.org
and D3D has it's HTML help thingy in the SDK.

I found that the best way to insure cross compatibility is to use the RHS.
In GL, you might use gluLookAt
and in D3D, use D3DXMatrixLookAtRH

In GL, you might use gluPerspective
and in D3D, use D3DXMatrixPerspectiveFovRH

That's one of the math side of things.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!