Home Technical Talk

Good Settings for Xnormal Curvature Map?

greentooth
Offline / Send Message
CheeseOnToast greentooth
As the thread title suggests, I'm trying to find the magic numbers that'll get me a decent curvature map out of Xnormal. I'm getting something out but the results are too subtle to be useful. I'd like to get something similar to the vert curvature shader for Maya (sorry, can't find the link to it right now, search-fu is weak). Any help appreciated.

Replies

  • r_fletch_r
    Options
    Offline / Send Message
    r_fletch_r polycounter lvl 9
  • CheeseOnToast
    Options
    Offline / Send Message
    CheeseOnToast greentooth
    Cheers fletch, that was the example I was looking for.
  • probiner
    Options
    Offline / Send Message
    probiner polycounter lvl 12
    Sorry for necroposting, maybe it's a rational necro, let's see...

    I am trying to generate a Grayscale Curvatures Map like Blender's Dirty Vertex Paint (pic), or Lightwave's Dpont Curvatures node (pic-top row, second from left) so:

    Black=Concave | 50%Gray=Flat | White=Convex

    I know that there is a 'monochrome' option in the settings, but the problem is; even when I bake with Two Colors and default settings, the map doesn't even look like Post#2 of this thread (was that done in xNormal?).

    If I replace the colors channels to get a Grayscale or bake in Monochrome, I get something like something like the 1st Attachment, a DifuseShading/AO Map. While i should be getting something like the 2nd Attachment \/.

    I'm using the same High-Low Definition Mesh setup I used to bake good Normal and AO maps, so I don't think it's a mesh problem. AO is unchecked in my Baking Options list.

    From my understanding a Curvatures Map would be generated in the High Definition Mesh as a vertex color map, where each vertex would have input from their neighbours, and then baked out to the Low Definition Mesh UV.
    I tryed to bake again with "ignore-per-vertex-color" option UNchecked, and it still sme result.


    Anyone had go through these hoops before? Ty for any light
    Cheers
  • Ace-Angel
    Options
    Offline / Send Message
    Ace-Angel polycounter lvl 12
    Just decimate your high poly model, and apply this: http://rpmanager.com/plugins/TensionMod.htm

    xNormal is great at a great number of things, and bless the binary codes of said program, but if it has one major issue, is proper documentation about curvature maps, and why they don't work.

    I wish the Real-Time height map feature in Xnormal could be also be made available for curvature maps.
  • probiner
    Options
    Offline / Send Message
    probiner polycounter lvl 12
    Thanks, will check it out. Pitty that now I found xNormal,I have to look to another place to bake this particular and handy map.


    To me xNormal only needs 2 things in the Curvature Map department.
    1: To actually render a Curvature Map. The example I posted shows it doesn't actually do it.
    2: Scale input like Convexity. So you decide the contrast. And yeah that decision would be nice to be done in Real-Time tone-mapping, like Height map.

    Another solution would be to import the model into Blender, use the Dirty Vertex script, which computes easy, and export it back with the vertex color map and bake it in xNormal.
    But like your suggesting I would have to decimate the model, since 11Ml polygons in Blender are a but too much in my PC. I'm not happy about decimating, though :/

    Thanks again.
    Cheers
  • boyluya
    Options
    Offline / Send Message
    boyluya polycounter lvl 10
    Sorry for the noob question guys, but what's the use of curvature maps for texturing? Does it differ from ordinary AO bakes? Thanks!!
  • passerby
    Options
    Offline / Send Message
    passerby polycounter lvl 12
    boyluya wrote: »
    Sorry for the noob question guys, but what's the use of curvature maps for texturing? Does it differ from ordinary AO bakes? Thanks!!

    you can use it to get grey scale masks of concave and convex areas, very usefull for masking dirt and grime into certain areas, and what it is mostly used for is getting easy edge highlights to put in your spec or for masking scratches for your edges.
  • probiner
    Options
    Offline / Send Message
    probiner polycounter lvl 12
    boyluya wrote: »
    Sorry for the noob question guys, but what's the use of curvature maps for texturing? Does it differ from ordinary AO bakes? Thanks!!

    Notice that Occlusion gets really dark in those internal areas and really bright on the exposed areas. It reveals where there will be more loss of light in the mesh.
    It's blended as Multiply.

    Curvatures has nothing to do with light/rays, it reveals every change on the flatness of the mesh. And many times where AmbOcc gives you no detail, Curvatures still have something to say.
    It can make dirt in concave areas and give a sense of less thickness in the convex areas.
    It's blended as Overlay for color, or used for specularity/reflection.

    index.php?app=core&module=attach&section=attach&attach_rel_module=post&attach_id=9639
  • kodde
    Options
    Offline / Send Message
    kodde polycounter lvl 18
    This might be of use for you Maya users who want an alternative to xNormals curvature map.
    http://www.polycount.com/forum/showthread.php?t=74251
  • Valandar
    Options
    Offline / Send Message
    Valandar polycounter lvl 18
    A curvature map is also good for pointing out areas that would be rubbed shiny on a given surface when frequently held or picked up... it's kinda like a drybrush in model painting.
  • probiner
    Options
    Offline / Send Message
    probiner polycounter lvl 12
    After jogshy suggestion of playing with the search distance in the Curvatures Map options, I got much more expected results (attached)

    Used a Curvatures search distance around the same figure as the one I would use for Ray Distance, if I weren't using a cage to bake.

    It seems that "Bias" should be as default to get good 50% gray flat areas.

    Cheers
  • Wilson_B
    Options
    Offline / Send Message
    In xNormal 3.17 Curvature options I see no option for Ray distance...? Any suggestions?

    Thanks,
    Wilson
  • ErikHallberg
    Options
    Offline / Send Message
    Posted too soon. Apparently I didn't exactly make sure that toggleShadeMode was... well, toggled.

    So, it works! Thanks! I still get the same error with the assign bake-material though. But now the Calculate button does something for me! ;)
  • Shivner_E
    Options
    Offline / Send Message
    Shivner_E polycounter lvl 2
    I can not see the images in the 2nd post. What was the settings he said to use for Xnormal?

    Cheers.
  • Eric Chadwick
    Options
    Offline / Send Message
    Shivner_E wrote: »
    I can not see the images in the 2nd post. What was the settings he said to use for Xnormal?

    Cheers.

    The images are from the wiki, which we moved in the last year when we upgraded. They don't show settings though. http://wiki.polycount.com/wiki/Curvature_map
  • NAIMA
    Options
    Offline / Send Message
    NAIMA polycounter lvl 14
    Shivner_E wrote: »
    I can not see the images in the 2nd post. What was the settings he said to use for Xnormal?

    Cheers.

    The images are from the wiki, which we moved in the last year when we upgraded. They don't show settings though. http://wiki.polycount.com/wiki/Curvature_map
    Can't find in the wiki the xnormal Settings?
  • FourtyNights
    Options
    Offline / Send Message
    FourtyNights polycounter
    For some reason I'm getting artifacts when baking the curvature with a cage. Normal maps ALWAYS come out perfectly. But I was able to reduce artifacts completely by setting the search distance to a lower value, and bakes came out quite nice. One problem though - floating geometry still gets unwanted borders. Why isn't curvature settings having the "ignore backface hits" checkbox, like AO has?
Sign In or Register to comment.