Advertisement Jump to content
Sign in to follow this  
Funkymunky

OpenGL Identical clipping planes to OpenGL?

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

So, I can render with OpenGL or DirectX.  Everything looks as expected with OpenGL, but when I render with DirectX it seems like my near clipping plane isn't as close as it is with OpenGL.  This is especially problematic when I try to render the cascades in my shadow mapping implementation; when I tightly bound the frustums to the scene, I am clipping too much of the scene with the near plane.

 

I figure this has to do with the difference in GL/DX clipspace (-1 to 1 for GL and 0 to 1 for DX), or with the difference in half-pixel offsets between the APIs.  Does anyone have any experience with the difference between the APIs in terms of the clipping of the view frustum?  I'm unsure how to create the appropriate projection and model matrices to get exactly the same clipping in OpenGL or DirectX.

Share this post


Link to post
Share on other sites
Advertisement
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!