Monday 26 September 2016

Stretch / Compression Deformer

Just a quick one this week. I saw a great video on Vimeo for a sort of stretch / compression deformer and it inspired me to try it out.

I figured it was in some way based on the area of the polygons, so as they get smaller, they push outwards along their normals.

Luckily, MItMeshPolygon has a getArea function for that (although I did compute it using the tri's and a few cross products at first...doh!).

I didn't include any stretch in this, if the area increases past it's default, it'll just do whatever it's doing, but if it gets smaller, it'll take an average of all surrounding faces and bulge, based on the painted deformer weight values.




Thanks to hippydrome.com for the model :)

Friday 16 September 2016

Collision Deformer

yay collision!

It's been a while so I thought I'd update with  progress on a collision deformer I've been working on. 

I must have made 4 or 5 unsuccessful attempts at this before giving up. I had a time out for a month or so and came back to it with a fresh mind. I think it helped. I finally got there in the end but there's still more that can be added.