Sign in to follow this  
JoeAlter

PN triangle, barycentric lookup

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

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

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