viper_0711
Hi,

I'm doing a delicate partial morph

first i made a partial mesh (e.g. the nose) from the main character head.
then i use that as inGeometry for bounding object in geometry mode -> attribute transfer weight to drive morph node weight.

now exactly the nose area has the morph weight of one. and the falloff made some nice transition so the deform looks natural. by playing with the radius and falloff ramp i can control the falloff preciously

well, the problem of this setup is the falloff is in world position,  not a "surface propagation" as i intended originally. while i wish my falloff to be "growing" out like soft modification's "surface mode", now it's like "volume mode"

imagine the partial mesh of nose do not have nosils. i wish the nosils area to falloff nicely from the boundary towards inside. The problem is the inside of nosil will affect the outside if my radius of falloff get bigger. 

is there any other way the "surface propagation" falloff can be achieved?

hope that make sense
Reply 0 0
pshipkov
You can try the blurPointAttribute node.
Insert it between the attributeTransfer and morph. It basically propagates data through the surface instead of world space bounding volume.

Another way is to use low-res mesh patch and paint the falloff there then use that as bounding object. This way you can mimic the desired falloff along the surface surface.
Reply 0 0
viper_0711
hi,
thanks for the advice

im going to make "edge to curve" from the partial mesh's boundry. and have it plug into a second bounding object within the same attrTransfer. then i only make this bounding object's radius bigger, while the existing bounding object's (with the partial mesh input) use a very small radius just to make it cover the original contained vertices. while the seocnd one is used as fallOff. it does't do exactly "propagate along the surface" but should solve most issues at thin areas.

questions:

1) i don't seem to figure out how the weights of multiple bounding object adds up, i see them seems clamp to max 1.0, but how are they add up and how does order matter, and any option to control e.g. if i want it to add together, but clamp to 1.0?

2) i also tried using 2 attribute transfer but i then i use blendArray to blend 2 inweights, but the outarray that plug into morph weights gives me a warning that the data type is wrong. also this method cannot clamp the value to one

3) can I set array element (e.g. morph weights) directly similar to using setAttr ? i tried setAttr -type doubleArray but doesn't work

4) your second suggestion => would you tell me how to paint the falloff then use that as bounding object? 

btw, your first suggestion of blurPoint is good but will not fit the purpose for some other reason 


thanks again
Reply 0 0
pshipkov
#1 AttributeTransfer merges bounding object attributes in a way that they always end up normalized. It is not additive.
Think about it as spill from voronoi cells. Play this video: http://soup-dev.com/videos/attributeTransfer_point_voronoiPattern.mov
And open the corresponding example scene. Tweak the number of influences in the attributeTransfer node to see how things blend.

#2. set the output type of the blendArray to doubleArray - that should do it.

#3. Yes. There is nothing special in the weight map attributes of Morph. You can set them any way you want like any other array attribute in Maya.

#4. Load this example scene: attributeTransfer_weightMap.ma
Notice how i created user attribute of type array on the mesh used as bounding object and how passed that to the boundingObject itself. That's what you want to do. You can use the "array attributes manager" tool under the "wrench" shelf button to easily create array attributes and make them paintable. Then connect them to the bounding objects and paint away. Everything else will react accordingly.
Reply 0 0
Reply