AntoineSfx Posted January 5, 2018 Share Posted January 5, 2018 I'm trying to set the UV correctly on this brick arch: On top it's a bent box, but I'd like to do it with a rectangle + sweep I got u from curveu from the resample node, and v from the fact that points are in such an order that the bottom ones are easily found with a formula @uv[1]=(@ptnum%4)/2; Then a uvtransform downstream to tweak things in uv space. But.. this adds coupling between two nodes (# sides of the polygon <-> formula) , and obviously it's fragile. What's a better way to have u along the curve, and v normally to the curve (and maybe then in the z / depth direction too) ? This after the cross section @curvev=(float)@ptnum/@numpt; copied later with @uv[1]=@curvev; also works, and requires to have a third node where I have something to setup on uv.. arch.hipnc Quote Link to comment Share on other sites More sharing options...
f1480187 Posted January 5, 2018 Share Posted January 5, 2018 Second method seems fine for me. Any problem with it? Swap u and v (cross section holds u and backbone holds v). Compute automatic scale using "arclen("../resample1/", 0, 0, 1)" expression. "measuredperimeter" intrinsic can give same value without need to add an extra UV Transform. skin_uv.hipnc 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.