Announcement

Collapse
No announcement yet.

vDenoise Command Line tool Helper (Maxscript UI)

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

  • Originally posted by slizer View Post

    There is something fishy around the multi gpu denoising and we are checking it now.

    About the denoising the elements and comping them back together - can you describe your workflow and why exactly are you missing this method?
    Hi Peter,

    "From the VRay 3.6 Command Line -Help Options" -elements=1

    -elements=0/1 - when 0, the colors in the final image are denoised in one
    pass; when 1, the render elements are denoised separately and then
    composited together.
    (default is 0 - single pass RGB denoising only)

    This is what I mean by denoising by elements and comping them back together. I have been using the V-Ray denoiser since the command line was the only option to denoise images back in the alfa build days.
    It seems that the VRay Next denoiser does not use per element denoising, the result are not as good as the V-Ray 3.6 version, fine details get blurred out, it looks like VRay Next is set to (default is 0 - single pass RGB denoising only)

    My second issue is Multi GPU support not working.

    I have (3) Nvidia Titan Xp's in my system and only (1) seems to be used when denosing.

    "From the VRay 3.6 Command Line -Help Options" --useGpu=2

    -useGpu=0/1/2 - when 0 will use CPU for denoising.
    when 1 attempts to use the best OpenCL; fall back to CPU if unsuccessful.
    (experimental) when 2 attempts to use all suitable OpenCL devices, fall back to CPU if unsuccessful
    (default is 0)

    Thanks,

    -E

    "I have not failed. I've just found 10,000 ways that won't work."
    Thomas A. Edison

    Comment


    • 1. Can you please share a scene where the old version of the denoiser does a better job than the Next one?

      2. What devices do you see when you open the "Select rendering devices for V-Ray GPU" tool?
      If it was that easy, it would have already been done

      Peter Matanov
      Chaos

      Comment


      • nevermind!
        (sorted)
        Kind Regards,
        Morne

        Comment


        • First you comp with the un-denoised render elements, and after you Denoise?
          or
          First you Denoise all your render-elements, and just comp with them?

          confused here...
          anywhere a documented workflow for that?

          just can't get this baby done... uuahhhh
          www.bernhardrieder.com
          rieder.bernhard@gmail.com

          Comment


          • Hello ^Lele^​. thanks for your help.
            I was bit curious to learn something from you.
            I have seen the code of the ached File vDenoise_3.40.02.ms

            in the function getDenoiserPath it looks like this:

            Code:
            fn getDenoiserPath =
            (
            theMaxVersion=("20"+(((maxVersion())[1]/1000)-2)as string)
            oslPath=systemTools.getEnvVariable ("VRAY_OSL_PATH_3DSMAX"+theMaxVersion+"_x64")
            if oslPath != undefined do
            (
            denoiserPath=(substring oslPath 1 (oslPath.count-6))+@"tools\vdenoise.exe"
            )
            if not (doesFileExist denoiserPath) do denoiserPath=""
            )


            It works fine in Vray 5.

            but when I try to use VRAY 6
            Code:
            systemTools.getEnvVariable ("VRAY_OSL_PATH_3DSMAX"+theMaxVersion+"_x64")
            This code is returns "Undefined"
            I don't know how did you find the code to discover the Vray Path from 3DsMax Script.

            If you could please tell me a way or code line to find the Environment Path for the Vray 6 folder would be Very Helpful.

            in Vray 6 for 3DsMax 2021 the Path is
            C:\Program Files\Chaos Group\V-Ray\3ds Max 2021\bin
            in Vray 6 for 3DsMax 2024 the Path is
            C:\ProgramData\Autodesk\ApplicationPlugins\VRay3ds Max2024\bin

            if you could share the code to find this path variables directly from 3dsmax Script, It would be a life saver.

            Thanks a lot in advanced.

            Comment


            • Narihito, hello!
              You're very right, 3ds Max changed where plugins should go in version 2022 (i think.).
              Attached some code that works (two functions: one to find the max major version as a string (it comes with vrutils, so it can be launched as it is.), and the other to go grab the full bin folder path.

              Code:
              fn findVRayBinFolder6 = -- V-Ray 6.x bin folder search
              (
              MaxVer=getMaxReleaseAsString()
              envVar = (systemTools.getEnvVariable ("VRAY_FOR_3DSMAX"+maxVer+"_MAIN"))
              
              theBinFolder = pathConfig.normalizePath envVar + @"\"
              try
              (
              MaxVer=getMaxReleaseAsString()
              theBinFolder = pathConfig.normalizePath envVar + @"\"
              )
              catch
              (
              theBinFolder=undefined
              )
              theBinFolder
              )
              I remain at disposal for any further clarification.​
              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


              • @Lele
                Thanks a lot it worked like magic.

                I would love to know, how did you find the name of this string
                Code:
                "VRAY_FOR_3DSMAX2021_MAIN"
                I searched for a few days on the internet in 3dsmax documentation and Vray documentation. It was not available on any place.
                Thanks in advance for your reply.

                Comment


                • Ah! That's found in the computer configuration, where the system variables are set.
                  We should probably make it obvious in the documentation.

                  One way to get to the right place: press the start/windows key, and type "Environment". Click on "Edit the System Environment Variables", and click on the "Environment Variables" button at the bottom right of the new window.
                  You'll find the V-Ray set variables (likely) at the end of the list in the bottom window.
                  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

                  Working...
                  X