Announcement

Collapse
No announcement yet.

VRMats Gamma issues

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

  • VRMats Gamma issues

    I have 246 vrmats coming from Rhino. The Rhino renders look fine, but using the same vrmats in max results in washed out images, almost like double gamma.

    Max is setup with LWF. I'm not sure how Rhino was setup with the source files. Is there a quick way to fix it in max without having to modify each vrmat?
    Kind Regards,
    Morne

  • #2
    what 3ds max version are you using?

    if you are using 3ds max 2014, try this script:

    fileInGamma = 2.2
    fileOutGamma = 2.2
    Best regards,
    Jackie Teh
    --

    3ds Max 2023, V-Ray 7 [7.00.05 build 32980]
    AMD Ryzen 9 7950X 16-Core Processor@4.50 GHz | 64GB RAM | Nvidia RTX 4090
    Website: https://www.sporadicstudio.com
    Email: info@sporadicstudio.com
    YouTube: https://www.youtube.com/c/SporadicStudio

    Comment


    • #3
      Thanks for trying to help, but I'm not having Max gamma issues
      The gamma issues are with vrmat files. If you ever used them, you'd understand what I mean
      Kind Regards,
      Morne

      Comment


      • #4
        Originally posted by Morne View Post
        Thanks for trying to help, but I'm not having Max gamma issues
        The gamma issues are with vrmat files. If you ever used them, you'd understand what I mean
        oppssss...sorry i cannot help you

        may i know what is vrmat? can i use it with vray 2.40.04?
        Best regards,
        Jackie Teh
        --

        3ds Max 2023, V-Ray 7 [7.00.05 build 32980]
        AMD Ryzen 9 7950X 16-Core Processor@4.50 GHz | 64GB RAM | Nvidia RTX 4090
        Website: https://www.sporadicstudio.com
        Email: info@sporadicstudio.com
        YouTube: https://www.youtube.com/c/SporadicStudio

        Comment


        • #5
          Originally posted by jackieteh View Post
          oppssss...sorry i cannot help you

          may i know what is vrmat? can i use it with vray 2.40.04?
          It's a special type of material that you stick into a VRayVRmatMtl (instead of a VRayMtl). It basically lets you transfer the exact material between, max, sketchup, rhino etc.
          I havent used 2.4 in a while, but yes, I think you can use it. However, I don't think you want to. Trust me on this one, you want to avoid those as much as you can. You can set the gamma individually for each one. You can't see the maps in the viewport. Also it uses a special ChaosGroup material editor, not the max one. There's just too many limitations to use it fully. It's a nice idea, just need some work. For now however, if you can avoid it, do so.

          There's some free low res samples here: http://www.chaosgroup.com/en/2/downl...-ray-materials
          Last edited by Morne; 25-07-2016, 01:08 AM.
          Kind Regards,
          Morne

          Comment


          • #6
            I work with a lot of Rhino and Sketchup files, so it's a bit more complex to avoid using the vrmats.
            Kind Regards,
            Morne

            Comment


            • #7
              Originally posted by Morne View Post
              I have 246 vrmats coming from Rhino. The Rhino renders look fine, but using the same vrmats in max results in washed out images, almost like double gamma.

              Max is setup with LWF. I'm not sure how Rhino was setup with the source files. Is there a quick way to fix it in max without having to modify each vrmat?
              Can you show us or send us a Rhino/3dsMax scene with the same .vrmat so we could investigate what's going on?
              Svetlozar Draganov | Senior Manager 3D Support | contact us
              Chaos & Enscape & Cylindo are now one!

              Comment


              • #8
                Inside each vrmat, the gamma ranges between 1 and 1.6. Seems it was used to set the lightness/darkness in Rhino, or so it appears. I've remade most of the materials painstakingly over a couple of days. If we had a converter for this, I would have been done in 5 minutes
                Kind Regards,
                Morne

                Comment


                • #9
                  Do the materials in Rhino have the same gamma values?
                  If the gamma values are the same in both platforms Rhino and 3DSmax I see no issues here.
                  Svetlozar Draganov | Senior Manager 3D Support | contact us
                  Chaos & Enscape & Cylindo are now one!

                  Comment


                  • #10
                    Originally posted by svetlozar.draganov View Post
                    Do the materials in Rhino have the same gamma values?
                    If the gamma values are the same in both platforms Rhino and 3DSmax I see no issues here.
                    I don't touch the gamma of the vrmat. However, in Max, if I simply open the VRay mat editor and just click the "Preview" button without changing anything, then the preview changes form the nice looking mat, to a washed out version of it. Bit hectic at the moment, but will send some sample later in the week when I get time
                    Kind Regards,
                    Morne

                    Comment


                    • #11
                      So the VRmat looks fine in Rhino but the same one appears washed out in Max?
                      Svetlozar Draganov | Senior Manager 3D Support | contact us
                      Chaos & Enscape & Cylindo are now one!

                      Comment


                      • #12
                        Originally posted by svetlozar.draganov View Post
                        So the VRmat looks fine in Rhino but the same one appears washed out in Max?
                        Yes, basically
                        Kind Regards,
                        Morne

                        Comment


                        • #13
                          You think it could be because Rhino itself is set to Gamma 1.0, but max itself is set to gamma 2.2?
                          Kind Regards,
                          Morne

                          Comment


                          • #14
                            Not sure if Rhino/Max gamma is taken into account by the V-Ray Material Editor.
                            Might be better to pack rhino/max scene along .vrmat file for investigation.
                            Svetlozar Draganov | Senior Manager 3D Support | contact us
                            Chaos & Enscape & Cylindo are now one!

                            Comment


                            • #15
                              OK here's a sample of one of the vrmats.

                              When I select the vrmat to load, it gives me a preview of how it should look. Which is correct. A nice black glossy ball.
                              Click image for larger version

Name:	1.jpg
Views:	1
Size:	119.5 KB
ID:	862883


                              In the max material editor however, I can see that it is not looking correct. More of a washed out black
                              Click image for larger version

Name:	2.jpg
Views:	1
Size:	94.8 KB
ID:	862884


                              If I then open the Editor, I get the correct nice black ball when I loaded the vrmat, but as soon as I click on "Preview" the ball changes to the same washed out black as in the max matrial editor
                              Click image for larger version

Name:	3.jpg
Views:	1
Size:	44.4 KB
ID:	862885


                              This is a simple example. When there's textures invovled, most of the vrmats have been setup wtih maps that in the editor is set to either "linear" gamma 1, or "gamma corrected" gaam1 1, instead of the expected "sRGB"
                              If I set the textures to sRGB, then the file is correct max, but because the VRay editor is LIMITED, there's no quick way to do this across 246 vrmat files.

                              In the example above, the black gloss, I don't see a gamma setting so not sure how to set it.

                              It would be great if Lele or some other clever person can write either a maxscript, or batch script, to edit the gamma across miltiple vrmats (which is just an XML). Or if we can get an update to the VRayVRmatMtl with an override gamma setting

                              Here's the VRMAT
                              Black Gloss.zip

                              Oh and my Max gamma is setup correctly for LWF. fileingamma and fileoutgamma is 2.2. All normal VRayMtl and textures show correctly, just all VRMATS are off
                              Kind Regards,
                              Morne

                              Comment

                              Working...
                              X