nuki
As the title suggests I've been trying to use the ray project node to flatten the back of condensation water drops so they dont intersect with my glass surface. The problem is that I cannot figure out exactly how to achieve this.

As in the attached image, when acting as a splinewarp the rayproject will fill the collision object with the source object. Using a cage node to gather only the components inside the collision objects i tried to invert the ray direction on the inside components, with no luck (as it seems that the ray project processes only the inside components per default).

How could I rayProject the intersecting part of my waterdrops onto the surface of the bottle instead of its inside/the adjacent surface? I'm using Maya 2013 with the latest SOuP build that still supports it (2013/01/20). rayProject.jpg
Reply 0 0
pshipkov
There are many ways to achieve this.
Check the attached file - it shows the most simple and straightforward one - notice the maxDistance attribute on the rayProject node.
Reply 0 0
nuki

thank you for your quick reply! while this approach seems to work perfectly when the drops pivot (or normal average?) is outside of the cylinder it doesnt when the object intrudes the cylinder too far. When I expand the setup to eg. a particle mesh the result is very different - I assume because the drops are generated with their center directly on the cylinders surface?

I have attached a scene demonstrating the issue (maya 2015).

Reply 0 0
pshipkov
Here is an accurate method.

This actually gives me an idea to add outComponentList to the pointsOnMeshInfo node - it will be very handy and very fast to detect points inside/outside volumes.
Reply 0 0
nuki
now I'm embarrassed that I couldn't come up with that myself, it makes so much sense...I guess I was too focussed on the ray project node. Thank you so much for your help!
Reply 0 0
pshipkov
Don't feel bad.
Next time is yours :)
Reply 0 0
nuki
So this works like a charm on Maya > 2013, but there seems to be an issue with the cage node in the older SOuP release. The cage node correctly outputs the outlying faces, but incorrect vertices/edges. I was wondering how i could convert the face component list to a vertex component list? There are no examples on the component nodes so I'm a bit lost again ^^

components.JPG 
Reply 0 0
pshipkov
There is a node called componentToComponent. Use that.
Reply 0 0
nuki
yea, i figured that was the way to go. What you see in these screen shots already is the output of a componentToComponent. Maybe the vertex order gets messed up somewhere along the way?
Reply 0 0
pshipkov
I think you need this instead:

cage1.outVertComponents -> displayComponents1.inComponents
cage1.minDistance = 9999
Reply 0 0
nuki
it works fine even with the default Max Distance in any recent SOuP release. In the 2013 version there is no Max Distance parameter yet, thats why i was looking for some kind of hack for this issue.

i tried deleting the faces returned by the cage node via deleteComponents, returning all the vertices that are left but that causes the vertex numbering to be built anew unfortunately.
Reply 0 0
Reply