Robert K
I'm trying to uniformly distribute points on mesh and using ramp or vertex maps to spread them apart.  Perhaps best to imagine a bird body where the feathers closer to the beak are much smaller and much more of them, they are evenly spaced and as you travel down the bird body the feathers get bigger and less of them evenly spaced.  The scatter node has options but it doesn't put enough points, even if you crank up the density really high. mesh2arrays has no options but it nicely spaces the points.  Any thoughts on this ??

-Rob
Reply 0 0
pshipkov
mesh2arrays has an useVertexColorsparameter to control distribution density.
Turn it on and paint colors, or generate themprocedurally.
The scatter node has minPointToPoint distance attribute that makes the points distributed regularly. If you can - share the geo you are working with and I can take a look.
Reply 0 0
Robert K
Thanks Peter,

I didn't realize how high value I need to put in the relax field.  I attached my little test, I put the relax up to 1000 to get better dist. 

-R
Reply 0 0
pshipkov
It sounds to me that you achieved it.
Not clear if you need further assistance ?
Reply 0 0
Robert K
For best control I ended up layering few scatter nodes.  I'm using copier to distribute feather shafts on body and then I use ray project with ramp to have the shaft follow the body.  Then shaft surface is used as xgen description surface for generating the vanes with some expression on top of ramps.  The bottleneck is the conversion of colorSet to ptex.  I need to layout the shaft uv and use "vertex color to texture" in the wrench tab.  It would be great to have a tool that converts colorSet to ptex properly.  I found couple of option that come with the xgen tool.

cmds.ptexBake and a node createPtexUV but didn't have much luck using those.

Here's a link to the wip:
https://www.youtube.com/watch?v=pZ4uh_ifZ7o

I'm also getting a tiny jitter on couple of feathers. I'm hoping it's the underlying surface being low poly.

Cheers,
R

    
Reply 0 0
pshipkov
This looks pretty stable.
If you can - please share the scene so other people can learn from you.
Thanks.
Reply 0 0
Robert K
Hi Peter,

I'm having success using the ptexBake command to bake color sets and now streamlining my setup I'm thinking how!

copier node as one input colorPP attr with it's colorset name.  I like to have 5 custom colorPP and five named colorSets. Is there an easy way to accomplish this?

thanks,
R
Reply 0 0
pshipkov
Yes. Notice the inDataPP attribute of the copier node. You can pipe arbitrary data through it.
Reply 0 0
Robert K
Thanks Peter.  I plug textureToArray into inDataPP on copier.  It overwrites one of the set that comes with the node.  I wold like to turn off originalVertexColor and inheritVertexColor and build my own named colorsets.  I'm struggling finding out the right order of where and which nodes to use.  Could it be.  
textureToArray -> copier -> colorSet -> boungingObject -> attributeTransfer etc or am I own the wrong path.  It can get quite confusing once nodes are all over the place :)

-R
Reply 0 0
pshipkov
I know very well what you are struggling with.
The way Maya handles color sets is just not good.
I had a lot of "fun" with that when worked on the Instance Manager.
If you check the underlying networks there you will see how you can work around the problem.

Or check the attached example.
Basically you need to insert pairs of polyColorPerVertex + arrayToPointColor nodes.
Make sure you set properly the polyColorPerVertex.colorSetName attribute (whatever is the color set name you want).
Reply 0 0
Robert K
Well thank you Autodesk then.  My mistake was using createColorSet instead of using polyColorPerVertex.  I'm able to use both plugging createColorSet.colorSetName  into polyColorPerVertex.colorSetName.  Maybe would be great to have colorSet input field on the polyColorPerVertex node especially when colorSets are baked into the shape node.   Playing with your file when I tweak the ramps they don't update unless I run dgdirty -a.  Is that normal ?

I don't know if you consider it a bug but if I forget to connect the outMesh into the textureToArray.inMesh before connecting it to the copier.inDataPP Maya crashes.

I'll post some progress on the feather rig once ready :)

Cheers and million thanks for your help.

R
Reply 0 0
pshipkov
About the update issues - check if you are in PE mode.

Will look into the crash thing. There should be no crashes no matter what the workflow is.
Reply 0 0
pshipkov
Cannot get it to crash the way you explained.
Can you be more specific about the workflow that leads to a crash ?
Reply 0 0
Robert K
here's my crash file.  Connect the textureToArray.outrgbaPP to copier inDataPP.

Here's my latest feather rig.  I use soup to define root and tip colors on feathers.  Works great but not perfect.  I still need to get rid of the jitter o fhe feathers.   tension map could be useful to make the feathers relax when bending. 

https://www.youtube.com/watch?v=5biyK-lOrq8


Reply 0 0
pshipkov
That bug is fixed now.

The test is looking good.
Reply 0 0
Reply