Open loren-osborn opened 5 years ago
Filed as internal issue #OSD-303
I think I can clarify this request some:
This request really boils down to two items:
As I’m really new to OSD, I really don’t have any meaningful opinion on the second point. The main issue with the first point is really compatibility:
So, can you clarify which crease variation of the CC SS algorithm does OSD implement. From that I expect I can derive the relationship I’m looking for.
Thanks in advance.
I don’t know if this is appropriate for OpenSubDiv, but I thought this is at least a good place to ask.
I’m wanting to add an option (in Blender) to be able to set edge creases from a bevel radius approximation and vise versa. (The main benefit of this is that you may wish to set similar curvatures with diverse geometries. This would allow calculating the correct crease value for a given curvature for each edge.) Given the relative angle of the edge faces and the distance between the limit surface and the control edge (at the edge midpoint) calculating the bevel radius to approximate it is fairly straightforward. Unfortunately I’m having trouble determining the distance between the limit surface and the control edge from the edge crease, and vise versa.
For comparison, the rough algorithm to determine the approximate bevel radius from the distance i’m looking for:
I realize there are all sorts of edge cases where this has divide by zero issues and other range errors and discontinuities, and I think I neglected to say that one of the normals should have been negated, but this is intended to give the general idea.
TL;DR: how do I compute the crease value from the distance between the control edge (midpoint) and the SS limit surface, and vise versa?