Jump to content
  • Advertisement
Sign in to follow this  
Danny9821

D3DXPLANE Newbie Question

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

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!