arjanM
Hi there,

I am trying to create an effect, where cubes are crawling over the surface of an animated character in the direction of the V coord of the UV. I was thinking I could create a particle expression where I change the Ugoal and Vgoal every frame and then plug the particle position into the copier.
But because I want the cubes eventually to be an cloth object and want to avoid problems, like conflicts between the particle system and the ncloth at the end of the stream.
Would it be possible to use a point node instead of the particle system. Is it even possible to animate your points with the node? I couldn't get it to evaluate every frame.
Or does somebody know another way to something like this, like for example with the arrayexpression?
Thanks.
Arjan


Reply 0 0
pshipkov
Yes, it is possible, but i would try to do it without custom plugins and stuff.
I think your first approach may work fine. You can turn-off collisions on particles or cloth, or just set them on different collision layers.

But if you don't mind using custom tools (it sounds like that), then what you can do is to pre-create the tubes and then "hide" or delete parts of them over time - this way you fake a growing effect.
To do that - select edge loop and then convert it to curve. Then extrude disk along it and make the extruded object polygon.

- Set their vertex colors to white + solid alpha and use can use attributeTransfer with bounding objects to make parts of them transparent.

- Or use group object + bounding objects + deleteComponents to actually delete faces from the tubes. This method is more tricky since it changes topology over time and that messes up MR. So you have plug computeVelocity in there, convert the velocity vectors to vertexColor (as a separate color set) and then in the mesh shape specify that set in the "motion vectors color set". This way you can supply point velocities to the MR renderer and make it motion blur any geometry regardless of consistent or inconsistent point count over time.

I think the first method is somehow simpler, since you rely more on established in Maya rendering workflow - masking your shader with vertex colors map.
Reply 0 0
arjanM
Thanks for your reply and explanation.

That looks like a solid workflow, but I think you thought I meant tubes instead of cubes.
And I wanted to have more control over how the cubes are crawling over the surface.
I just found out that I could make the point evaluate every frame by connecting the time node to it :S
So I could try something with animated nurbsurfaces and the pointOnSurface function with the point node. But I think I'll try to make it work first with the particle system, by exluding the collisions or even use different nucleus solvers.

And by the way, I want to thank you for these really great tools. I think I can't work with maya without them anymore.
Reply 0 0
JeremyR
To throw a spanner in the works, you could hook up a fluid.outAlpha into textureCoords.U and V and control particle position that way either via SOuP or expressions. I believe nParticles has some sort of force field attribute allowing it to adhere to surface objects. 

Just a suggestion.
Reply 0 0
pshipkov
My bad. I was rush reading and replying.
Check the attached file. I use couple of nodes that do what you described.
There i use texture to "offset" the points along the surface, but the setup allows to insert controllers pretty much at any point. You can script something in the point node, or use series of textures and attributeTransfer+boundingObjects for local control over every point.

I didn't spend much time on this and i feel that it can be streamlined and simplified a lot.
I consider writing dedicated node that will allow us to do that stuff easily.

--------------------

Another possible approach that bypasses simulation (and if the number of cubes is not too big) you can convert edge loops from the base surface to curves and use them as anim paths.
Reply 0 0
arjanM
Thanks for making this example. I never thought of using the wrap deformer for this. I think that I can get the control I want, over the points with this workflow. I am going to try it out. The only thing I don't exactly understand is, what the variable $F is in the point node. It is not declared in the start block.
Reply 0 0
plarson
The $F is an int for the time. $FF can be used for a float. This blog has some nice info on the point node that might come in handy. http://mayaspiral.blogspot.com/2012/06/soup-point-position-and-time.html
Reply 0 0
pshipkov
I just noticed that these two variables are not described in the "quick help" section of the node's AE template. Added them. Will be there in the next release.
Reply 0 0
arjanM
Ahh good to know, thanks.
Maybe it would be nice to have a node which converts position arrays to UV arrays and the other way around. You can combine this with the PointOnMeshInfo node for additional information and you can use the meshtomap node with it. This way you won't have to use a wrap deformer to have points stick to a surface. Although the wrap deformer is a good alternative, so maybe something for in the future.

Reply 0 0
Reply