Jump to content

Vector manipulation in VOPS


Recommended Posts

Hi guys,

I'm building a volcano with chunks of debris flying out the top. I figure I'll just copy rock geo onto points emitted from a popnet.

My understanding of vector math/manipulation and control is pretty atrocious; being a visual learner, I'm trying to focus on vops for now, even if the same thing could be accomplished in one line in a wrangle. 

I was wondering what the best way would be to assign random vectors to points. This is how I've attempted it:

https://imgur.com/a/XAQ9ZCk

However, when run through the popnet, they all seem to bias to the right, displaying a lack of randomness. From looking at the vopnet, is there any  reason why this would be?
Without adding a noise, would you guys have suggestions for a better method? I'm not against using a noise, I'm just trying to understand what's going on, and why my current set up is failing to randomise effectively. 
Also, does my fit range seem appropriate? It looks weird to me, but the defaults were no good.

 

I've attached my hip just in case any of that is unclear.

Hope you can help me out; Being an absolute ditz, Houdini math breaks my brain... :wacko:

vector_control.hipnc

Edited by mincezilla
Link to comment
Share on other sites

Your fitting only clamps your values, instead of remapping them. Your random have a static seed, giving the same result to every point. It would be alot easier to use a zero-centered noise, adding that to your normal. And then normalize your normal instead of fitting it.

In vex you can use the "sample_direction_cone" function.

Link to comment
Share on other sites

Thanks Thomas. 

To clarify, are you saying to replace the random functions completely with a noise? And when you say zero-centred noise...from a google search, you're referring to turbulent noise?

Thanks for the feedback on the fit, also.

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...