Sign in to follow this  
Danny9821

D3DXPLANE Newbie Question

Recommended Posts

Just reading a 3D DirectX programming book and hit a slight problem. It's probably something real simple. D3DXPLANE plane(0.0f, 0.0f, 1.0f, 0.0f); This apparently is an xy plane. Could someone explain how this is so? I checked out the DX Documentation but couldn't find anything which I understood. Thanks, Danny :)

Share this post


Link to post
Share on other sites
In 3D graphics, a plane is defined using a plane normal (ie: the orientation of the plane), and a distance value representing the distance the plane is from the origin.

So in your example, you are creating a plane with a normal vector of (0.0f, 0.0f, 1.0f) and a distance value of 0.0f. This particular plane you have created spans along the x and y axes, so that's why it's considered an 'xy' plane.

If you don't understand, don't hesitate to ask questions.

Julien

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this