[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/3/ - 3DCG

Search:


View post   

>> No.977601 [View]
File: 45 KB, 1449x607, fukc this shit.png [View same] [iqdb] [saucenao] [google]
977601

>>977598
I've never worked with patches. I'm familiarizing with the scripted interface. https://help.autodesk.com/view/MAXDEV/2022/ENU/?guid=GUID-7F382121-B42F-4486-A65B-16CA59434843
The "getEdgeVert1" access function seems to be broken it does not return vertex or vector integers that make sense.
Algorithmically I already know what could be done but I need the "getEdgeVert1" function to work properly or else I'll have to identify the vertex pairs by anther method.
The script should do:
1.Identify the vertices and vectors of a segment.
2.Calculate the tangents that comform the segment curve by substracting the pos3 values of the vertices end vectors.
3.Calculate the distance and/or angle of the two vertices and the angle their tangents form.
4.Add or substract a point3 value to the vectors depending on those values.
5.Loop this for each segment.

This should "normalize" the bezier weights along the whole patch imitanting what you are doing by hand and that is shortening the handles on the inner edge and lengthening the handles on the outer edge.

I can't promise anything cuz Im fucking busy but it seems like a lovely problem to solve.

Navigation
View posts[+24][+48][+96]