XaiJu
entagma
entagma

patreon


Vellum 101 - Attaching Hairs To Softbodies

Another question we found in our inbox which turned out to be more involved than anticipated is: “How do you attach Vellum hairs to softbodies so they can be both simulated together?”

In this case we settled on writing a few lines of vex to give our hair’s roots proper orientation while the simulation is running. However if you’ve got more straightforward techniques of achieving the same behaviour, we’d be more than happy if you let us know. 

Vellum 101 - Attaching Hairs To Softbodies

Comments

Hi, I have a question about when you add ($OBJID/Geometry) to the second input. Why is it going to second input? When you add Myself to the first input, what does it mean??

Joon Lee

I am curious about the above question concerning the dihedral function and how the vector {0,0,1} was chosen as the first argument. Thank you!

Minimal Massive

Hey David, I believe a .hip says more than a dozen words: https://www.entagma.com/downloads/Vellum_Softbody_Hairs_03_render.hip Cheers, Mo :)

Entagma

Great but I have a question,I'd like to replace line with a "hair generate" it works but at the end I'd like to generate more hairs so I use another hairgen with guides, but when I do this hairs are ok but sphere no longer moves, any idea ? here si a screenshot https://www.dropbox.com/t/1O2ILQ8Z5l3HHLy4

David Tavan

Heyhey, yes, that's due to the fact that you can think of a surface's normal as a vector pointing in Z-direction which is rotated so that it sits orthogonal on the surface. So we use dihedral() to calculate the quaternion needed to rotate an "initial" vector pointing in Z-direction to the current normal's direction, in effect converting the normal's direction to a quaternion. Cheers, Mo

Entagma

Great video, I have a question. Why the first argument of the dihedral is {0,0,1} ? is that because the original line is {0,0,1} ? Thank you!

Andrea Lazzarini

Awesome, thanks for the update Mo! I ran into the orient issue but for what I was needing, it wasn't a big issue. But thanks for this solution, will definitely come in handy!

Lawrence Jaeger


More Creators