Kumar Posted August 23, 2017 Share Posted August 23, 2017 Hi everyone, i was watching scott keating's GDC video on procedural modelling, and i have an issue with the UVs and the sweep node, that he shows working with polygons. If anyone can show me a basic sweep with proper uvs, it would be great. Quote Link to comment Share on other sites More sharing options...
mestela Posted August 23, 2017 Share Posted August 23, 2017 funny you mention that: 1 Quote Link to comment Share on other sites More sharing options...
Kumar Posted August 23, 2017 Author Share Posted August 23, 2017 (edited) Thanks, for the quick reply. can you explain why the attribute wrangle node @uv[1] = @uv[0] ? Scott has the arclen function his setup, which i was also trying but somehow never got it to work. He also has a attribute promote which also is confusing me. Care to explain a little on this. Anyway, i did a resample and arclen and found the uvs to be a bit better, attached is the updated file. Sweep_uvs2.hiplc Edited August 23, 2017 by Kumar Added updated file Quote Link to comment Share on other sites More sharing options...
mestela Posted August 23, 2017 Share Posted August 23, 2017 Like I mention in that wiki post, if sweep finds uv's on the input geo, it will copy uv.v from the cross section, and uv.u from the backbone. The uv texture sop on curves always puts the interesting value into uv.u, so you need to swap it to uv.v. To be annoying, you can't actually refer to u and v with uv.u and uv.v. Vectors components in houdini are referred to by vec.x, vec.y, vec.z. I figured using that syntax would be confusing, so used the alternative array syntax, vec[0], vec[1]. Maybe it wasn't such a good idea. 2 Quote Link to comment Share on other sites More sharing options...
Kumar Posted August 24, 2017 Author Share Posted August 24, 2017 Thanks for the reply, its cleared up a lot of stuff for me. Now just wondering, how scott managed to pull it off, anyway never got a chance to analyze his entire graph so we pass on. 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.