Jump to content
  • Advertisement
Sign in to follow this  
vladic2000x

Clipping planes for Clipping Space ? :)

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

Hello ! Does anyone know how to use clip planes in DirectX9, using IDirect3DDevice::SetClipPlane(...) method, for programmable pipeline. In DirectX SDK documentation is written : "When the fixed function pipeline is used the plane equations are assumed to be in world space. When the programmable pipeline is used the plane equations are assumed to be in the clipping space (the same space as output vertices).". Taking into account that one of parameters passed to the "SetClipPlane" function is an array of 4 floats representing the plane equation, how do I transform that equation into the clipping space ? Thank you

Share this post


Link to post
Share on other sites
Advertisement
You can use D3DXPlaneTransform to transform a plane by a transformation matrix. Also, note this method takes the inverse transpose of the matrix you want to transform by.

Hope this helps.

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.

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!