Constrain to UV (transform controller)

 
 
 
Posted by:EPHERE
Data created:25 October 2012

Here is a transform controller Lab plugin I created for this video:

http://youtu.be/mkgLU1HQ8CU

It takes a mesh and a UV coordinate and constrains resulting transformation to "stick" to that mesh at that UV coordinate.

 

img2

img1


Attached Files:

>uv_to_xyz.ctx (81330 bytes),

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Cool! To me, that is a really exciting tutorial, thanks very much! It shows a lot of interesting concepts and at the same time provides an interesting new function that is missing in 3ds Max. ;-)

Which version of Lab was used?

Is the MeshProjectedGrid function identical/similar to what is avilable in MAXScript and what is also used in the Projection modifier?

Functions like Closest Point and Ray Intersections are IMHO extremly important for advanced rigging functions if they are fast for dense meshes. Great to see you are working on those!

Thanks!
Martin

Martin

 

Error opening cortex file.

1

Please forgive me for my English :)

 

Roman: Apologies for not specifying this, but this is build using upcoming 0.1.3.0 version so you will have to wait until then.

Martin: The PolygonMeshProjectedGrid is just a basic grid-optimizer class I built to speed up looking for spatial data, so I do not think it has any resemblance to existing classes. It is rather simple and only practical for 2d closest point on mesh lookup (like with UV example) or checking if a 3d point is inside or outside a mesh.

We are currently researching ways of exposing other useful functions like ray casting, mesh intersections, and other. Sadly, there don't seem to be many well established C#/.NET libraries for this out there. I would like to stay away from using native C++ methods but it is a possibility. Another way would be to write something from scratch. I might create a BSP algorithm to handle mesh queries.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

An efficient, BSP-based point query system would be really good - it opens up a wide world of really cool setups.

This project or Accord.NET might be starting points?

Martin

Martin

 

Interesting, both those projects are machine learning libraries. Do you have any specific use cases you'd like to see addressed with them? I actually already have a node in Lab from a long time ago for backpropagation neural network, but I couldn't think of a good way to use it in CG.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

I guess nearest neighbours and closests points are common problems in machine learning, so I looked for C# projects for that. I assume there are also plenty of Computer Graphics projects for csharp like this one with a kd-tree?

Martin

Martin

 

With the newest build I get this error message when loading the .crtx file:

http://i.imgur.com/O0zNU.png?1

If I assign a node using the button, Max crashes.

 

As for nerual networks, I was thinking of maybe making a wall avoiding controller. It would not be the most optimal way of doing it, but it would at least be more cool knowing there is a neural net controlling it!

Yup, I can confirm both of these. I already fixed the message box popup (it is basically saying "please assign a mesh if you want to get texture coordinates") and we are investigating the crash, it is an internal Max problem.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Hi - Would it be possible to setup a 'basic' questions/help thread on the forum ? I've got questions but the News and other headings dont cover them :)

Hello,

Absolutely. I just made the general forum available to everyone (and not just commercial users). Please feel free to post your questions there.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Absolutely. I just made the general forum available to everyone (and not just commercial users). Please feel free to post your questions there.

 

Hi - Sorry to be thick but where is this ?

Should be available here: https://ephere.com/plugins/autodesk/max/lab/forums.html

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Thanks Marsel - I see nowhere to post questions. Just the headings Documentation,News and Lab creations.

The Ornatrix forum for example has General Discussion,Feature Requests etc....likewise with the Zookeeper forum

 

Cheers.

Ah, seems like I assigned wrong permissions. Please try again.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Hi!, I can't find the "toBarycentriccoordinates"  node :( . It have another name on new builds?

 

BTW The CHM help file don't work, it says Broken link when I try to look on it.

 

BTW The CHM help file don't work, it says Broken link when I try to look on it.

 

This is a windows security thingy (sometimes) - right click on the .chm go to properties 

  1. On the "General" tab, click the "Unblock" button.

http://www.helpsmith.com/chm-cannot-be-displayed.php