Jump to content
larmannjan

Blender - Array along Curve

Recommended Posts

I am mainly a blender users. I would like to start using Houdini. It's procedural and non-destructive workflow is very appealing to me.

For my first day in Houdini I would like to re-create something procedural I did in blender using modifiers.

I have a piece of tiling geometry, it is a section of a stone wall.

 

cNoNt3V.png

 

I would like to array this wall along a curve. Also I would like to project the curve onto a piece of terrain.

 

b2AHuGv.png

 

I am not expecting anyone to solve this problem for me. But I wouldn't mind some hints on how to approach this problem.

Share this post


Link to post
Share on other sites

I have attempted to solve this problem. Here is my progress so far.

 

G2z4p6a.png

 

I have some questions so far:

 

1. I am using an instance node to duplicate along a curve. I can set up individual point to duplicate to but how can I just give it a number of copies I want and a distance to put between the two?

 

2. when I imported my model into houidini as an obj it was quite large and I scaled it down to 0.2 in the pre-transforms tab, In the render the array show up fine, in the viewport it does now why?

Share this post


Link to post
Share on other sites

I just saw that I posted this already yesterday, sorry I thought I had forgotten to actually hit post.

Share this post


Link to post
Share on other sites

Starter attached. Unfortunately I missed your wip, so I made it from scratch from your first post, which might not be relevant to you anymore. As to distances between copies, you need to resample the curve to fit instance's size. This example follows pure sop approach, but this is instance-like procedure, simple different flaviour.

 

hth,

skk.

wall_starter.hipnc

Share this post


Link to post
Share on other sites

Thanks for the reply and the hip file symek. Your method is almost perfect. The one problem is that the wall is not deformed as it is following the path. 

 

jir6fuc.png

 

I would like the wall to be stretched and bent according to the path.

 

EvB31UU.png

 

Also here is the wall .obj if you are interested.

 

 

bricks_single_uved1.rar

 

 

Edited by larmannjan

Share this post


Link to post
Share on other sites

Thanks for the links, both do what I want. I am having some trouble with the or bolt file but I will figure that out.

Share this post


Link to post
Share on other sites

I have some question about your HDA bandini. Is there a way I can automatically fill the curve with array of itself? Where do I have to place the piece I want to deform? does it have to be on the start path of the curve?

Share this post


Link to post
Share on other sites

I am using duplicate to create a fixed number of duplicates along an axis. When I than plug in that mesh into the soptools_pathdeform it goes haywire.

 

crSGp4g.png

Share this post


Link to post
Share on other sites

Check the axis of your object before it goes into the deformer. You may need to pop a transform node before the deformer and rotate and center it before deforming it.  I made that asset awhile ago.  Can't quite remember all the particulars.  If I have time tonight I will see if I can work up a quick example for you.

 

-Adam

Share this post


Link to post
Share on other sites

Also, check the example file that comes with the asset.  Should show how to set it up.

Share this post


Link to post
Share on other sites

I got it working to some extent. The wall is a little stretched but it should figure that one out pretty soon.

 

PRhuh5S.png

Edited by larmannjan

Share this post


Link to post
Share on other sites

There should be an option in there to keep the proportions (as much as possible) of your object.  And, no, both centers do not have to line up.

Share this post


Link to post
Share on other sites

I am still trying to get the array along the curve. For some reason I am not allowed the move the mesh up though.

 

here is a gif of the problem in action

http://imgur.com/groRJHV

 

post-9983-0-86837100-1394570631_thumb.gi

Edited by larmannjan

Share this post


Link to post
Share on other sites

Try this file.  It is a really simplified version of the path deform sop.  Basically, my asset is the creep sop with a bunch of math and expressions to automate some of the scaling and position fields.  This should get you started.

brick_wall.hipnc

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

×