Announcement

Collapse
No announcement yet.

Diffuse color to Vraycolor script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Diffuse color to Vraycolor script

    I'm pulling up some old models and the colors don't render quite right because they have not been gamma corrected. All the texture maps are corrected by the MAX gamma input settings for bitmaps - that's great. But any basic vraymaterials that have only a diffuse color are off.

    So far I've been copying the diffuse color and pasting it into a Vraycolor map with gamma 2.2 enabled, and everything renders as expected. I have to believe there is a script or other method to automate this! Anyone?

    Thanks!
    sigpic
    J. Scott Smith Visual Designs


    https://jscottsmith.com/
    http://www.linkedin.com/in/jscottsmith
    http://www.facebook.com/jssvisualdesigns

  • #2
    can be done easily, sure (part of it are in that old script that converts materials with output maps and vray color maps to lower the diffuse multiplier).
    What exactly do you need? Would you want also reflection and refraction colors to be converted into maps? which other map slow would you want converted like so?
    Lele
    Trouble Stirrer in RnD @ Chaos
    ----------------------
    emanuele.lecchi@chaos.com

    Disclaimer:
    The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

    Comment


    • #3
      Hey Lele!

      Yeah - I'm sure that it's not horribly difficult, but for a guy like me that's too thick to learn a new language, it is. I'm sure your existing scripts have a bunch of the framework already done.

      I would suppose the ideal solution would go something like:

      (1) See what is in diffuse slot. If a bitmap, verify that it is set to "Use system default gamma".
      (2) If nothing in diffuse slot, drop a vraycolor map in there. Verify that it is set to "Specify", and "2.2". Then grab the RGB of the diffuse color and paste it in.
      (3) Verify that diffuse map is enabled and set to 100.0

      If you really wanted a task, you could do the same inside of other maps as well (gradient, etc.) However, I think that's probably more effort than it's worth. One alternative would be to dump out a text file containing names of materials that could not be addressed. Then the user could look at them separately if necessary.

      Basically, I'm trying to cludge together a manual workaround for the V-Ray Scene Converter. IMO, this is one thing that should be included, as well as ticking the trace reflection and refraction boxes.
      sigpic
      J. Scott Smith Visual Designs


      https://jscottsmith.com/
      http://www.linkedin.com/in/jscottsmith
      http://www.facebook.com/jssvisualdesigns

      Comment


      • #4
        Just caught your other note. I suppose the reflect and refract colors should be included also. This wasn't a huge priority for me... I'm mainly looking to get older models to a usable state. I'm still going to go tweak material settings. I just want to get them looking like they were intended to as a starting point.
        sigpic
        J. Scott Smith Visual Designs


        https://jscottsmith.com/
        http://www.linkedin.com/in/jscottsmith
        http://www.facebook.com/jssvisualdesigns

        Comment


        • #5
          there is a "linear workflow" option in the color mapping rollout for this.
          Give it a try and see if it does what you need
          Chris Jackson
          Shiftmedia
          www.shiftmedia.sydney

          Comment


          • #6
            and on a hating sidenote the options in the bitmap loading dialogue for overriding gamma or setting it to system gamma or not changable via mxs. We tried a lot to get that going heh

            Regards,
            Thorsten

            Comment


            • #7
              Thanks Chris. But as I understand it from other threads, materials with a gamma-corrected bitmap or vraycolor in them (most of my material library) will be double corrected.
              sigpic
              J. Scott Smith Visual Designs


              https://jscottsmith.com/
              http://www.linkedin.com/in/jscottsmith
              http://www.facebook.com/jssvisualdesigns

              Comment


              • #8
                i have a scene in max2010 that was made in 09 and it wants the old colour correct plugin that hasnt been ported to 2010 yet. Is there anyway to rip that DLL requirement out of the max file? Driving me nuts because you cant use backburner with the missing DLL error.
                WerT
                www.dvstudios.com.au

                Comment


                • #9
                  There is a ColorCorrect 2010 beta version around, but it has some issues:
                  http://www.cuneytozdas.com/forum/topic.asp?TOPIC_ID=645

                  You can try to can replace it with Max Color Correction with the script I posted on this thread:
                  http://www.chaosgroup.com/forums/vbu...ad.php?t=47225
                  (Note you need to run it in a Max that has Color Correct installed)

                  If you try it, tell me how it works for you

                  Comment

                  Working...
                  X