mahuro
Hi all,

I've been trying to find a "curvature" pluging for maya (2013) that dowes something similar to this:

http://wiki.polycount.com/CurvatureMap


I have been pointed out to SOup .. and been told that I can accomplish it with it .... errrr however there is no clear documentation guys ... lots of nodes and no idea how to connect things ....

Basically I need to build a shader or define a map, that separates or defines the concave and convex areas of geo in a model, the objective is to produce procedural textures that are photoreal...such a map is great to produce grime, dirt , aging, weather worn surfaces etc......and before you tell me just use AO ... it is not the same !!

Been told the "Tension Map" in SOup can help ... but how?

 I will be very grateful for your help.

Thanks in advance.


Mahuro
Reply 0 0
pshipkov
Almost, but not really.
The tensionMap tracks topology changes when deformations are applied to geometry.
What you need is a tool that measures angles between vertex normals - if < 90 - make it red, otherwise blue, etc.
This is very simple to achieve and i think the links you provided point to existing tools that do that.
Or you need a "live" data generator ?
Reply 0 0
noizfactory
While not accurate, something close can be achieved using the group node...? The second one is inverted to collect the other faces.
 
soup_groupNode_angle.jpg 
Reply 0 0
mahuro
Thank you for both of you for your kind replies both point in the right direction. 

What I really would like in the end is to be able to compile a shader that specifically determines curvature (separating concave from convex, in the way Peter "pseudocode suggests) the purpose of this is to be able to plug that shader in a shading network and render realistic looking objects.

I'll give a try to using the group node as you suggest Noixfactory, but I think I need to dwell a bit deeper into MEL-Python and try to code it into a shader or shading node utility for maya that can be used with vray or mental ray equally.

Thanks a lot !


Mahuro.
Reply 0 0
pshipkov
I think you can just use the curvature script that will generate vertex colors and then pipe these colors to vray as "texture".
Reply 0 0
mahuro
Hi Peter,

Thanks for the reply....which curvature script are you talking about ? one in soup ? a link to it would be great ...sounds a working solution....Thanks !!!


Mahuro.
Reply 0 0
djx
Looks like there was a script at the link you posted. Provided as .pyc, but you can probably convert back to .py with a little googling. Better still, there was a link to a mentalray curvature shader, with source code provided.

David
Reply 0 0
pshipkov
On the page you provided link to in your original post you can download python script that does the coloring of verices. I didnt try it but even if it does not work you can check the code and make your own tool.
Reply 0 0
Reply