Sign in to follow this  

given a plane through origin and it's angle with X axis

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

how to get the normal vector of the plane? the sample is frustum below: D3DXMATRIX *D3DXMatrixPerspectiveFovLH( D3DXMATRIX* pOut, // returns projection matrix FLOAT fovY, // vertical field of view angle in radians FLOAT Aspect, // aspect ratio = width / height FLOAT zn, // distance to near plane FLOAT zf // distance to far plane ); I know fovY and then how to get normal of a plane? and if I now fovY and I will get fovX by fovY*Aspect,Am I right?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Well, to get a vector that is normal to the plane you must know the plane equation or to know two different vectors contained in the plane. That is:

1) Plane equation: (x-xo)*nx + (y-yo)*ny + (z-zo)*nz = 0

where the normal vector is N = (nx,ny,nz) and (xo,yo,zo) is a known point in the plane.


2) V1 and V2 are in the plane. So the normal vector can be defined by:

N = cross(V1,V2)


I didn't only understand what D3DXMatrixPerspectiveFovLH() has to do with that...

Share this post


Link to post
Share on other sites
I want to calculate the six plane of frustum, near plane ,far plane ,left plane ,right plane ,top plane ,bottom plane.

given a fovY ,the angle between top plane and bottom plane ,to calcuate the plane equation.
(these plane in view space so these through origin)
but get the plane equation ,I just need to know the normal of the plane.

Share this post


Link to post
Share on other sites
or say this way.
If I know a vector ,and rotate it a few angle aoubt some axis/x y or z/
so the new vector is ___?I think matrix multiplication work,but maybe exist
good simple method.

Share this post


Link to post
Share on other sites

This topic is 4584 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.

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