Jump to content

Sweep along topology has corner issues... How can I fix?


jessela

Recommended Posts

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.
61a8ec356e077_Screenshot2021-12-02105405.thumb.jpg.382db3270bf53ef6e3a2a9e3f6837959.jpg
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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...

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.

corner_issue.gif

  • Like 1
Link to comment
Share on other sites

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 by Aizatulin
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...