Kornelius
Hello everybody!!
I've got a baked curve from the scatter node wrapped on a deformed mesh, in this way the points are sticking on the surface even when the mesh is deforming.

I've then applied a peak deformer to the baked curve, and here is my problem:

the baked curve hasn't mapped uv's that I can change, and I'd like to drive my peak deformation on my curve with a texture map, how can I do it?

cheers,

Simo.
win 7 maya 2014 x64
Reply 0 0
pshipkov

Why don't you feed the scattered points into pointCloudToMesh node then attributeTransfer UVs or hook it to pointsOnMeshInfo node and associate its points to UVs from the closest to them points on the base mesh. Then feed the UVs to textureToArray node.

I will add an exportUVs option to the scatter node.

Reply 0 0
Kornelius

with the transfer attribute method I'm getting something! cheers Peter!! the problem is that creating a mesh from the scattered point slows everything down incredibly, I can't tumble the viewport neither, so I was hoping for a solution on the curve itself.

I can't figure out how to use the pointsOnMeshInfo to transfer the uvs from the original mesh to the one created from the scatter baked curve, but I will probably have the same problem if it entails to create a mesh out of the curve?

win 7 maya 2014 x64
Reply 0 0
Pizzaman
Here's what Peter suggested :
The UVs are passed to a pointCloudToMesh, used to compute the array you need for the weight (check the animated texture). I've used a point node to displace the CVs in the direction of the underlying surface, although you can plug the resulting array into the weight input of a peak node. The original scatter baked curve is wraped on the surface, and moves with the soft mod. I also passed the normal to the point node through the RGB channels because I think it can't retrieve vertex normals passed through the inNormal of the pointCloudToMesh.


Reply 0 0
pshipkov
thanks Pizzaman !
Reply 0 0
Kornelius
Thanks pizzaman! I'm goin to give it a try as soon as I get to work tomorrow!

In the process of rendering the instances out of the baked curve, I've noticed that it gives me problems with the renderfarm, like when you try to render over the renderfarm non cached particles.
I've solved the problem geocaching the baked curve, but I don't understand why it should give me that kind of problem, seen that is not a dynamic but simply a curve!!!
Have you got any Idea?


Thanks Guys.
win 7 maya 2014 x64
Reply 0 0
Reply