noizfactory
Hey Peter,

I've attached a soup setup that I'm trying to build. If I first add a subdivide node to the mesh and then break its connection with the mesh and plug the subdivide node's output to point node I get what I want (i.e. I want to use the U/V divisions in the subd node to drive the points creation).

But when I manually create the polySubdFace node and then connect the mesh output to its inputPolygons and then subd's output to the point node, the sub d node doesn't seem to work anymore.

I cannot seem to find any difference in the connections that Maya does when I add sub d node to the mesh from within the Edit Mesh menu versus the manual method. Is there some other stuff that Maya does in the background that makes the first setup work but not the second one?

--
Sachin

pshipkov
getAttr yourNode.inputComponents - in your created by hand node this attribute will be empty.

the one created by Maya's scripts it will have f[*]

Reply 0 0
noizfactory
Oh, now I get it! Thanks Peter! I connected a group node in mesh-face mode into the inputComponents of the subd node and its working fine now.

--
Sachin

Reply 0 0
noizfactory
Hi Peter,

So I was trying to get the same subdivided output but without using Maya's polySubdFace node since it has limitations on the max number of divisions allowed. I have achieved the same results using the bound node and I'm quite happy with it but for one roadblock.

Since the bound node subdivides the mesh in all 3 axes, I'm getting point duplications for planar surfaces. And since I can not set the Y resolution in bound node to 0 (which is expected since this node is supposed to create a bounding object), I will always get two points at the same spot. This is more evident if I jitter the position values slightly in X and Z in the point node or if you sculpt the original mesh to make it non-planar. I have attached a file which illustrates this. This is more of a problem in my case as I need to use this setup on ground planes which won't be enclosed meshes. Could you please throw me some ideas here?

-Sachin
Reply 0 0
pshipkov
http://www.petershipkov.com/temp/soup_boundNode_point.zip
Reply 0 0
noizfactory
Excellent Peter! That totally works for me. Thanks a ton!

EDIT: Just one hiccup. I'm not able to jitter the point positions randomly anymore with this setup. I might be doing something wrong but is that how this would work? Also, I'm not sure what the bounding object and the second group node are doing since it doesn't seem to matter what size I set the bounding cube to. I noticed that without adding the second group node, the bounding object and the deleteComponents node, the scene still gives the output that I want by just setting the point node's "Use Components" to "Input Component List". But by doing that I lose out on the point randomization.
Reply 0 0
Reply