nuki
I'm trying to edit the normal of my surface before I scatter points on it. That way, when I sample the normals using pointsOnMeshInfo I should have the edited (in this case binormal) direction of my Scatter points to further use it as velocity direction in a pointCloudParticleEmitter.

Somehow I cant get it right. How can I get the binormal direction (nstead of the normal direction) as normal vector for the Points of my Scatter node?
Reply 0 0
nuki

here is an example scene to illustrate the problem;

ma scatter_normals_example.ma

Points on Mesh info can only sample normals from the surface, not tangents/binormals. But i need the binormals of the surface to be the normals of my scattered points. So my approach so far is to attributeTransfer the binormals into the normals of my mesh before i sample it with pointsOnMeshInfo. but somehow it doesnt seem to work....I guess I'm using attributeTransfer wrong.

Reply 0 0
nuki
just fyi -> I could solve the problem using the "Point" node which also offers the option to use an expression to change your point properties, which is awesome.
Reply 0 0
pshipkov
I am not sure i understand.

pointsOnMeshInfo (the SOuP node) can output normals, tangents, binormals and rotations.
Can't you just use that ?
Reply 0 0
nuki
well, my problem was that I was emitting my particles from points scattered on the surface, not the mesh vertices directly. So i needed to find the mesh binormal of the closest vertex to my scattered points, but pointsOnMeshInfo only offers the ability to sample the mesh normal, not the binormal. That's why i had to copy my binormals to normals, so the normal sampled by pointsOnMeshInfo actually resembles the binormal of my mesh ;)
Reply 0 0
pshipkov
I think you should take a closer look.
It does exactly what you are looking for.
Reply 0 0
Pizzaman
You can replace the normals of your mesh by its binormals (pointAttributeToArray->point.inNormalPP) before querying it with the pointOnMeshInfo.
Another hack consists in putting the binormal values into the mesh colorPerVertex thanks to the arrayToPointColor, and then query the color instead of the normal for your binormal needs.
Reply 0 0
nuki

@Peter:

My bad -> I probably should have mentioned that I'm using an old build (maya 2013 / SOuP 2013_01_20). Here I really only see an option/output for the normals

@Pizzman:

That's exactly what I am doing now, using the Points node


thank you for your replies!

Reply 0 0
Reply