Jump to content
jessela

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

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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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.Results.thumb.jpg.c7cbb85cbdfcded48db81df2258f70b7.jpg

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×