[Closed] place object on UV @ x,y
If I have an object with a clean UVmap like a plane or something and I want to place a object at UV coords nX,nY is there a quick way to get me there. Or do I always have to go through querying the mapfaces, and get the meshfaces from that then use the bary to get the exact position?!
Basicly I want patchDeform but for poly objects. Quickly query a UV position on a mesh, and with quickly I mean it should be able to handle 100 nodes in realtime. Patchdeform handles that perfectly but it’s a compiled plugin offcourse.
Any pointers would be great!
-Johan
I did something like that a while ago,
you can build a mesh from the uvw channel
or simply copy the uvw channel to the mesh channel
then fire a ray at the wanted uv coordinates and you get the index of the face
and barycentric coordinates on it which you can convert to actual position on the original geometry.
Matan, I thought about something like that, but how fast is it, I’m talking 100 objects moving constantly. I will definitely look into it though, thanks! Really would like to not use patches, since they’re so poorly supported in max/maxscript.
-Johan
Hi Denis, yes that is basically it. I know for my particular case I always have a homogeneous UV set, so no 2 faces sharing the same UV. I know I can query UV’s with the mapfaces etc. But I worry about the speed when it’s done a lot.
-Johan
it will be quick enough if you will do all calculations on tri mesh level using meshop interface