Advertisement

PN triangle, barycentric lookup

Started by June 20, 2017 06:03 PM
1 comment, last by samoan62 7 years, 7 months ago

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?

 

 

 

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. 

This topic is closed to new replies.

Advertisement