enzyme69
I am trying to understand the RayProject SOuP a little better.

The final aim is to project some scattered Points that was originally created from source object, onto the mesh collission ground. Hopefully point number maintaned.

At this moment, I just like to project it flat into the Collision Mesh ground.

I tried the setup like attached, but wondering what the resulting projected mesh is not smooth, even as I increase the tesselation. Any  idea?

Another way is probably to use Point Cloud projection, I have not yet tried that.
Reply 0 0
pshipkov
I am not sure what do you mean here.
If you want to project the scattered points onto the mesh geo below them use rayProject. Pipe the scatter.outPositionPP to rayProject.inGeometry, then groundMesh.worldMesh to rayProject.inCollisionMesh then choose the projection method that best suit the setup you got there and to see the result connect rayProject.outGeometry to displayComponents.inGeometry.
Hope that makes sense.
Reply 0 0
enzyme69

Thanks Peter, I didn't think of using Input Component and Display Component. 

Was a little distracted by the mesh projection, when I was actually wanted to get point projection.

Next question will be:

How to tell the Maya to ignore or filter out points that are outside the ray (not getting any collission)? Would you use Group SOUP bound? Or any other solution?

Thanks.

Reply 0 0
enzyme69
enzyme69 wrote:

Thanks Peter, I didn't think of using Input Component and Display Component. 

Was a little distracted by the mesh projection and the weird result of mesh projection I am getting shown on the first file I attached, when I was actually wanted to get point projection.

Next question will be:

How to tell the Maya to ignore or filter out points that are outside the ray (not getting any collission)? Would you use Group SOUP bound? Or any other solution?

Thanks.

Reply 0 0
noizfactory
enzyme69 wrote:

How to tell the Maya to ignore or filter out points that are outside the ray (not getting any collission)?



If I may chip in here, how about the cage node?

Reply 0 0
pshipkov
If doing meshes - then cage will work fine. Otherwise the more generic solution is group+bound.
Reply 0 0
enzyme69
Cheers all, I will check Cage as well~
Reply 0 0
Reply