Jump to content
  • Advertisement
Sign in to follow this  
JoeAlter

PN triangle, barycentric lookup

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

Anybody know where I can find an implementation of PN Triangle code that can look up a point on a PN Triangle using barycentric coords without actually doing any tessellation?

ie - something that turns a PN triangle into a patch, and then some sort of translation from bary to patch coords?

 

 

 

Share this post


Link to post
Share on other sites
Advertisement

This paper here: https://pdfs.semanticscholar.org/a9a7/f783efa57d2486612d51e6d78c4a267559eb.pdf details a few useful ideas like how:

1. Given the 3 points and 3 normals of a PN Triangle, to generate the 7 Bezier control points. 

2. Using those points we can create a function b(u,v,w) of the curve given where for u,v,w their sum is < 1 and they are all greater than 0.

I'm not positive that this u,v,w translates directly into barycentric coordinates, but this paper should hopefully give you some useful info. 

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.

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!