PDA

View Full Version : distance


minos365
09-04-2003, 06:01 PM
how can i calculate distance from particle to surface,when surface is no flat

alexx
09-05-2003, 10:43 AM
you can use the custom created nodes:

- distanceBetween
and
- closestPointOnSurface

to get that

cheers

alexx

minos365
09-05-2003, 07:03 PM
i know this node,
but i want do this in particle expresion or mel

minos365
09-09-2003, 05:31 PM
can you tell me a way to do this

alexx
09-09-2003, 05:34 PM
i am not good enough to tell you how to calc the distance to the surface (non planar) and i would presume doing that in MEL will freeze your performance to about 0.

i would really suggest using these nodes in your script..
you can still have them in an expression..
just create the nodes and in your script feed them with the values and surfaces you want and let them do the calculation.

cheers

alexx

minos365
09-10-2003, 05:08 PM
thanks i will try,i hope i can do it:p :p :p :p

galactor
09-10-2003, 05:19 PM
Are you talking about closest distance between particle and surface, else it would make not much sense !

:: Galactor ::

CGTalk Moderation
01-16-2006, 02:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.