Jump to content
  • Advertisement
Sign in to follow this  
Medo Mex

Getting Plane Vertices

This topic is 1493 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'm trying to draw a plane, I have the plane normal vector and the distance as the following:

struct Plane
{
         D3DXVECTOR3 Normal;
         float Distance;
};

How do I get the plane vertices position?

Share this post


Link to post
Share on other sites
Advertisement

A plane is by definition infinitely large, so it has no "vertices". I guess you could analytically project the plane to clip space, and then draw the resulting vertices without any transformation matrix (since they are already transformed) but that's probably not the best way to solve whatever your problem is. So, how large do you need the quad to be?

Share this post


Link to post
Share on other sites

@Bacterius: I'm trying to render the camera bounding frustum and I have 6 planes with the same structure as above.

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!