Pizzaman
Hello,
I have a problem recovering the information from the pointCloudToMesh. I build a PTC to which I pass a normal from another mesh thanks to the pointOnMeshInfo. The pointCloudToMesh gather both the position and the normal. I plug it into a point Node, but when I check the normal tab enable, I can't get anything. I have to plug the normal into a pointAttribute (check the normal) and plug it into the input of my pointNode.
Am I not supposed to be able to grab it with $X=$NX, etc ?
pshipkov
"I have to plug the normal into a pointAttribute" - what do you mean here ?
There is a switch on pointCloudToMesh to output normals. Is it turned on ?
Reply 0 0
Pizzaman
Precisely, I have to plug the out.geometry of the pointCloudToMesh into a pointAttributeToArray, check the "normal" box, and plug the pointAttributeToArray.outNormal into the point.inNormal.

If I only plug the pointCloudToMesh into the in.geometry of the point node, I can't recover the normals.
And yes, the switch for outputting normal is on.

I'll prepare a scene at home and send it tonight.
Reply 0 0
Pizzaman
Here it is :

Try to delete the pointAttributeToArray, and the normals are not passing to the point node anymore.
Reply 0 0
pshipkov
Actually that's the correct behavior, or at least that's how Maya works.
When you pass the resulting mesh from pointCloudToMesh to the point node you per-face-vertex normals only. That's what maya passes through the connection. Even you apply average normals modifier to that mesh the data will not be propagated outside the node. You will need the trick you are using to get the right (averaged) normals.
Reply 0 0
Pizzaman
Ok, good to know. Sorry for bringing this again on the table, I came across a post with a guy trying to orient instances according to vertex normals... looks like the same topic.
Reply 0 0
pshipkov
No worries man, thats the point of this forum.
Reply 0 0
Reply