nHair first segment


#1

Hey folks,

I have hair that starts at the head surface at a steep angle, so when I use clump size>0, one half of the generated clump root points will stick out.

So far what I’m doing is move the first curve point a bit under the surface so it starts there, but the problem is with collisions. It often happens in that case that the clump snaps back to the surface and it looks broken.

Is there a simple solution I’m missing? maybe some way to not have the first hair segment simulated

Cheers
-odd


#2

Try switching to vertex collision. I faintly remember this was a possible fix for this.

However depending on the rest of simulation this is not always an option. :shrug:


#3

Thanks, I’ve tried that and it appears to be working somewhat better.

New on my maya wishlist : two sliders for curve segment offset for simulation. (so you could simulate segments 2-10 only)


#4

Just feed your sim curve into a blendshape on a curve. Then you can also use the envelope to blend your sim as needed.

But you need to set weights by hand for blendshape and curves . :wip:

This will set the first two point to 0 weight.

deformer = 'blendShape1'
attrName = 'inputTarget[0].inputTargetGroup[0].targetWeights'
pointIndexs = [0,1]
value = 0
for pointIndex in pointIndexs:
    cmds.setAttr('{0}.{1}[{2}]'.format(deformer, attrName, pointIndex), value)

#5

Thanks for the tip, this looks like a lot of work : - )
For this time round I went with start direction=surface normal and override it by using a 100% start curve attraction for the first curve point… works well enought for now