Jump to content

Help with for-each copy primitives to points, fix my funky rotations [SOLVED]


Recommended Posts

tl;dr: I'm having some funky normal rotations on only a few line nodes (ones that are nearly aligned to the Z axis) after being wiggled around with a point vop.

 

I've been following along with various tutorials and combined a bunch of stuff together to make a wavy tentacle ball thing. 

It's basically a subdivided sphere with lines copied to the center of the primitives. I'm using a point vop to give the lines some wavy motion. I am using a for-each to copy the primitive at the base of each line to the points down the line and skin it.

I wanted the sphere to be fused with the base of the tentacles, and tried polywire, extrude and sweep, but I couldn't get the control of the profile that I needed at the base. so I ended up with the copy/skin method. I have managed by some small miracle to get the whole thing working great except for the lines that are the closest to being aligned to the -Z axis. It looks like the polyframe is flipping the normals around funky. I've added the regular tangent/normal to normal/up vectors and turned off the up as it wasn't needed and didn't help the situation.

I've got the single pass turned on and isolated one of the lines that has the flipping. If the time slider is scrubbed a bit, it becomes more evident. All the other lines except the ones close to this one are fine.

Can anyone take a look and see if they can figure it out, it's the last issue and i've been banging my head on the wall for a long time with it.

Bonus question: I'm using a vopsop that I copied from an example to align the primitives to 0,0,1 and move them to the origin before my copy to points. This works great, but I tried to recreate it using a point vop and It doesn't seem to work correctly. The working and non working nodes are next to each other in my graph. Why is that?


Thanks

Edit: I was playing around with the point vop that I am using to give the lines some motion and if I change the noise to 1D then it goes away, but obviously the noise is not really that nice in only 1 dimension, so maybe it has something to do with how I'm applying the noise to the points?

Edit: I've attached a simplified scene that exhibits the same problem.

point_vop_noise_experiments_10.hiplc

simplified_thing_5.hiplc

Edited by smbell
Link to comment
Share on other sites

Wow! Thanks, that couldn't have been a more perfect solution to solve the flipping. Works like a charm!

 

Now, if I can just figure out how to get my first normal to match the primitive that's being copied. I tried to set it to the normal of the first point, but it doesn't match. If I turn off all the parallel transport stuff the copy to points matches perfectly, just with no rotations, so I know it can do it. One more puzzle piece... :)

 

 

point_vop_noise_experiments_14.hiplc

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