Jump to content

Help - Keep points on Y facing geometry?


Recommended Posts

Hey guys,

I'm just getting into Houdini (have been working in comp for the past 6 years) and I need help with a most likely simple question.

I have some geo in my scene that I scattered a lot of points onto. I'd like to only keep the points on the Y axis.  Like imagine a camera above the character looking straight down. All the geo it sees should have points scattered on it and nowhere else. Do that make sense?

Any help on this would be great! I am hoping to take these points into a particle sim and use them to drive a smoke sim.

Thanks!

 

Edited by Nightingale
Link to comment
Share on other sites

24 minutes ago, Noobini said:

something like this ? I've set up 2 scenarios, one is Y facing (up) and the other is camera facing...

facing_points.hipnc

Thanks for the response!

Unfortunately the file you provided gives me a lot of errors.

Ideally, I want to scatter points all over the geo. Then blast keep only the points that are looking up. I also wanted a ramp that I could control the Y falloff so I can keep some points that are not 100% looking up but close enough.

Image3.png

Image2.png

Image1.png

Edited by Nightingale
Link to comment
Share on other sites

I don't have H15 installed but here's the gist of it....I think you can replicate in 15...(you can see from the pic there's tolerance of 10 degs for the Y facing points...after that you can blast the group however you like)

Yfacing.jpg

Link to comment
Share on other sites

Okay I see what you're doing now. You use a group and use the normals section to create a group of points.

When I do it, It'll create a group of 0 points when the "Spread angle" is less than 90 or it has all the points for a spread of over 90.

 

ss+(2017-06-17+at+09.28.26).jpg

ss+(2017-06-17+at+09.28.45).jpg

Edited by Nightingale
Link to comment
Share on other sites

see my Init_N there ?....that's to initialize the Normals...now I'm not an expert myself so I can't say to you if it's critical or not...I just put it in to be safe...

so in your case, below the pighead geo, initialize your Normals (points) with an Attrib Wrangle, put in it:

@N = @N;

see how that goes...

(oh wait, let me chuck in a scatter and see how I go...)

Ok, now that I've chucked in a scatter...the Init_N is crucial...before, I didn't have a scatter, my setup would still work......but with a scatter, the N must be properly initialized, otherwise it won't work.

Edited by Noobini
  • Like 2
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...