Jump to content
  • Advertisement

Archived

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

Facehat

Triangle problem

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

Guest Anonymous Poster
Set up a system of three equations to define the plane that contains the triangle, get the equation of the plane (z=ax+by+c) then subsitute.

Share this post


Link to post
Share on other sites
Advertisement
Hi everyone,
This is probably a stupid question, but its been giving me quite a bit of trouble:

Say you have a triangle like this:

code:

30
/\
/ \
/ \
45 ------ 22


The numbers you see there are the heights of each of the vertices. Now if I wanted to find the height of any point inside of it that triangle (lets say <0.33, 0.50> in 2d texture coordinates), how would I do that?

If I didn't explain that very well please tell me. Any help would be appreciated!

--TheGoop

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Thanks for the response, but could you be more specific? I'm somewhat new to 3D Math so im not sure how I might go about doing what you described.

--TheGoop

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!