Announcement

Collapse
No announcement yet.

Tool to update old material libraries to v6 standards

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    What is the reason that the resulting .mat file is much smaller after running the script? (3.6mb vs. 2.4mb)
    https://www.behance.net/Oliver_Kossatz

    Comment


    • #17
      I don't quite know.
      The methods i use are Max's own (i.e. saveMaterialLibrary).
      If the materials are all there, then it's possibly because of versioning the file up (assuming the format got more efficient.).
      If they aren't, then perhaps there is some error in my code, and i'd love to have said matlib (no textures needed).
      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


      • #18
        Is there a quick way to get the number of materials inside a mat file?
        https://www.behance.net/Oliver_Kossatz

        Comment


        • #19
          Run the attached script.
          Attached Files
          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


          • #20
            The script says they're matching. So indeed the matlib files seem to have been modified to be smaller in size.

            Regards and thanks again for both of the scripts.

            Olvier
            https://www.behance.net/Oliver_Kossatz

            Comment


            • #21
              Any chance of converting old normalmap maps to vraynormal maps too?
              And perhaps setting the bump amount to 100, taking whatever that number was, dividing by 100, and using that as the normal map strength in the newly created vraynormal map?

              Or are we getting a bit too involved here?
              James Burrell www.objektiv-j.com
              Visit my Patreon patreon.com/JamesBurrell

              Comment


              • #22
                Eh, touching map influences and such gets sketchy quickly, but if it's the same thing the standard scene converter does (i.e. from legacy max to v-ray), i can likely add it in without too much worry.

                I'll look into this in the coming week.
                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


                • #23
                  Quick feedback: Seems to break when there's a map in a .mat

                  Click image for larger version

Name:	image.png
Views:	229
Size:	14.2 KB
ID:	1165702
                  James Burrell www.objektiv-j.com
                  Visit my Patreon patreon.com/JamesBurrell

                  Comment


                  • #24
                    mh, thanks for the report, will fix this.
                    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


                    • #25
                      It's fixed, v006 has been updated in the OP.
                      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


                      • #26
                        Originally posted by ^Lele^ View Post
                        It's fixed, v006 has been updated in the OP.
                        Thank you
                        James Burrell www.objektiv-j.com
                        Visit my Patreon patreon.com/JamesBurrell

                        Comment


                        • #27
                          You're welcome.
                          Notice that lone bitmaps in material libraries will be skipped, however, for conversion to vrayBitmap.
                          I'm trying to think of a good way to process them, but hopefully skipping them isn't an issue.
                          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


                          • #28
                            Script version 0.07 adds the resetting of map coordinates' blur to 1.0 (only works on Max files treated as scenes. Won't touch matlibs.), and also turns on the new anisotropy model along with Energy conservation (the highlight will not turns into anisotropic, however.).
                            There is also a fix for a potential corner-case bug (that was not reported, however.).

                            Script and screenshots have been updated in the OP.​
                            Last edited by ^Lele^; 29-11-2022, 05:01 AM.
                            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


                            • #29
                              Originally posted by ^Lele^ View Post
                              Script version 0.07 adds the resetting of map coordinates' blur to 1.0 (only works on Max files treated as scenes. Won't touch matlibs.), and also turns on the new anisotropy model along with Energy conservation (the highlight will not turns into anisotropic, however.).
                              There is also a fix for a potential corner-case bug (that was not reported, however.).

                              Script and screenshots have been updated in the OP.​
                              Thanks. Is the new anisotropy the new default? Also is there really any reason to use anything other than the default other than for legacy support?
                              James Burrell www.objektiv-j.com
                              Visit my Patreon patreon.com/JamesBurrell

                              Comment


                              • #30
                                It is the default for newly created vrayMtl, yes (that's why is UI-less).
                                It's superior to the old one (this one is physically accurate, and works for the whole GTR BRDF), for analogous performance, so i wouldn't bother with the old at all.
                                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