jessela Posted December 2, 2021 Share Posted December 2, 2021 I'm snapping a path along a terrain and then using that path in a sweep node as a backbone curve to generate a wall. The problem I'm running into is that the sweep is following the tangent of the terrain normals and creates a warped look in the corners that's accentuated with increased height. I tried to correctly orient the cross sections in the sweep node by using an orientalongcurve node with the snapped path in input 1 and the pre snapped path transformed higher in y for input 2. That works more or less for the longer portions of the wall but still results in warped corners. Since this is a wall and not a roller coaster, is there a way to force the cross sections to always be oriented straight up in y while still following the snapped path around the terrain? My assumption is that this would fix the corner issue, but I'm very new to Houdini so I may be going about this all wrong. Any help would be very appreciated. Quote Link to comment Share on other sites More sharing options...
jessela Posted December 2, 2021 Author Share Posted December 2, 2021 I found a partial fix. Using an attribexpression node with Normals turned on and a VEXpression of set(self.x*1, self.y*0, self.z*1) fixes the normal direction, but I'm still getting a good bit of pinching in the corners. Stretch Around Turns in the sweep helps a little, but not much. Quote Link to comment Share on other sites More sharing options...
Fenolis Posted December 17, 2021 Share Posted December 17, 2021 Does this work for you? sweep_wall.hiplc 1 Quote Link to comment Share on other sites More sharing options...
jessela Posted December 17, 2021 Author Share Posted December 17, 2021 It keeps things straight in y, but it's still getting pinching in the corners. That's that main thing I'm trying to figure out now is how to get a clean corner. Quote Link to comment Share on other sites More sharing options...
Atom Posted December 17, 2021 Share Posted December 17, 2021 That's just because your copies are close together. Try setting the Length on the resample to 1.0. Also review your curve to make sure the angles bend at 90 degrees as you would like. You may want to sweep the wall, before conforming to the terrain. 1 Quote Link to comment Share on other sites More sharing options...
Aizatulin Posted December 17, 2021 Share Posted December 17, 2021 (edited) Sweeping the wall before conforming the terrain is working well for me. You can use curve attributes (like curveu or pointnumber) to determine the difference in y between the planar and the projected curve. @edit: instead of only y, you can also use the whole difference vector (delte_x,delta_y,delta_z) between both curves. sweep_mountain.hipnc Edited December 17, 2021 by Aizatulin 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.