Jump to content
  • Advertisement
Sign in to follow this  
noaktree

Clipping Plane

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

I want to clip everything under Position(0, 25, 0) with DirectX 9c.
  • How do I create a user defined clipping plane to do this?
  • The clipping plane is flat along x and z. Normal(0, 1, 0)
  • The clipping plane can be moved up and down along the y axis. Position(0, ?, 0)

Share this post


Link to post
Share on other sites
Advertisement
Is IDirect3DDevice9::SetClipPlane() what you want? You just need to create the plane equation and pass it in, the docs explain it pretty well.

-Mezz

Share this post


Link to post
Share on other sites
Quote:
Is IDirect3DDevice9::SetClipPlane() what you want? You just need to create the plane equation and pass it in, the docs explain it pretty well.
Yes this is what I need. Just couldn't figure out what function to create the plane equation with.
Quote:
Use D3DXPlaneFromPointNormal to create the plane, SetClipPlane, then SetRenderState(D3DRS_CLIPPLANEENABLE, D3DCLIPPLANE0)
Thanks again Muhammad! [smile] I feel like a "retard" having never done this before. Oh well...Ask and learn. This thing won't let me rate you any higher. [sad]

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!