Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

FancyZero

how to get a vertex projection of a plane

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

if there is a vertex(x,y,z) and a plane (a,b,c,d), how can I get the projected vertex of the plane (x2,y2,z2) [edited by - FancyZero on October 12, 2003 4:57:43 AM]

Share this post


Link to post
Share on other sites
Advertisement
From memory, the distance of the vertex from the plane is

dist = x*a + y*b + c*z + d

To find the point on the plane, perpendicularly below the vertex, subtract the plane normal multiplied by the distance :

x2 = x - a*dist
y2 = y - b*dist
z2 = z - c*dist

Is this what you''re looking for?

Share this post


Link to post
Share on other sites

  • 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!