Announcement

Collapse
No announcement yet.

Converting .vrmat to Modo V-Ray material?

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

  • Converting .vrmat to Modo V-Ray material?

    Like the topic, is it possible? Or is it possible to access the vrmat's properties from a script, so that I can make a converter myself?

  • #2
    I just noticed that the vrmat files are some sort of xml like structured text files, should be pretty easy to create a converter script. I'll give it a try.

    Comment


    • #3
      It may be possible, however the .vrmat files can use shading nodes that do not have equivalents in Modo.

      Best regards,
      Vlado
      I only act like I know everything, Rogers.

      Comment


      • #4
        Thanks, I'll see how far I get.

        Comment


        • #5
          I've had a quick look and started on a converter script. I noticed that RGB values go from 0.0 to 1.2. Why is that?

          Comment


          • #6
            Which RGB values?

            Best regards,
            Vlado
            I only act like I know everything, Rogers.

            Comment


            • #7
              In the .vrmat file. Here's an example:


              <Asset url="/SuperTex/BRDFVRayMtl/translucency_color" type="texture" layout="" renderer="vray">
              <plugin>
              <vrayplugin name="TexCombineColor" type="texture">
              <parameters>
              <parameter handler="default" name="color" type="color">
              <value><r>1.2</r><g>1.2</g><b>1.2</b></value>
              </parameter>
              <parameter handler="default" name="texture" type="acolor texture">
              <value></value>
              </parameter>
              <parameter handler="default" name="texture_multiplier" type="float">
              <value>1.0</value>
              </parameter>
              </parameters>
              </vrayplugin>
              </plugin>
              </Asset>


              Originally posted by vlado View Post
              Which RGB values?

              Best regards,
              Vlado

              Comment


              • #8
                In this particular case, someone probably wanted to boost the translucency result. But it's pointless anyways as V-Ray will clamp the colors internally.

                Best regards,
                Vlado
                I only act like I know everything, Rogers.

                Comment


                • #9
                  That example is from a testing material I made myself in 3ds max. I just tried again in both max 2014 and 2015, if I set a color to 255,255,255, it comes out as 1.2 in the .vrmat file.

                  Comment


                  • #10
                    Also, I can't find the self illumination value in the .vrmat file. Is that not yet supported?

                    Comment


                    • #11
                      Originally posted by Monkeybrother View Post
                      That example is from a testing material I made myself in 3ds max. I just tried again in both max 2014 and 2015, if I set a color to 255,255,255, it comes out as 1.2 in the .vrmat file.
                      Then it seems like a conversion bug - will look into it.

                      Best regards,
                      Vlado
                      I only act like I know everything, Rogers.

                      Comment


                      • #12
                        Hi,
                        Could you send us .vrmat file, please?
                        Also I would like to ask you do couple of steps and then test conversion again.
                        1. Open MaxScriptEditor from MaxScript main menu
                        2. File->Open... from <C:>\Program Files\Autodesk\3ds Max <2013,2015..>\scripts\Startup select vraymtlexport.ms and open it.
                        3. Press Ctrl + E or Tools->Evaluate All
                        Do the same (step 2 and 3) for vrvismatconvertor.ms

                        Best regards,
                        Anna

                        Originally posted by Monkeybrother View Post
                        In the .vrmat file. Here's an example:


                        <Asset url="/SuperTex/BRDFVRayMtl/translucency_color" type="texture" layout="" renderer="vray">
                        <plugin>
                        <vrayplugin name="TexCombineColor" type="texture">
                        <parameters>
                        <parameter handler="default" name="color" type="color">
                        <value><r>1.2</r><g>1.2</g><b>1.2</b></value>
                        </parameter>
                        <parameter handler="default" name="texture" type="acolor texture">
                        <value></value>
                        </parameter>
                        <parameter handler="default" name="texture_multiplier" type="float">
                        <value>1.0</value>
                        </parameter>
                        </parameters>
                        </vrayplugin>
                        </plugin>
                        </Asset>

                        Comment


                        • #13
                          Sure. Where do you want me to send it?

                          I did exactly what you described and the file came out the same, with 1.2 values.




                          Originally posted by anna.zaharieva View Post
                          Hi,
                          Could you send us .vrmat file, please?
                          Also I would like to ask you do couple of steps and then test conversion again.
                          1. Open MaxScriptEditor from MaxScript main menu
                          2. File->Open... from <C:>\Program Files\Autodesk\3ds Max <2013,2015..>\scripts\Startup select vraymtlexport.ms and open it.
                          3. Press Ctrl + E or Tools->Evaluate All
                          Do the same (step 2 and 3) for vrvismatconvertor.ms

                          Best regards,
                          Anna

                          Comment


                          • #14
                            Send it to anna@chaosgroup.com . Thanks!
                            And one more test, please
                            First evaluate vrvismatconvertor.ms and then vraymtlexport.ms.
                            Test conversion again.

                            Originally posted by Monkeybrother View Post
                            Sure. Where do you want me to send it?

                            I did exactly what you described and the file came out the same, with 1.2 values.

                            Comment


                            • #15
                              Originally posted by Monkeybrother View Post
                              Like the topic, is it possible? Or is it possible to access the vrmat's properties from a script, so that I can make a converter myself?
                              We do plan on adding a vrscene material importer to V-Ray for MODO. It should be easy to make it work with vrmat files as well as these can be loaded as a vrscene internally.
                              The importer will probably have to resort to using nodal shading for more complex materials though. But first we need to get nodal shading working in V-Ray for MODO.

                              Greetings,
                              Vladimir Nedev
                              Vantage developer, e-mail: vladimir.nedev@chaos.com , for licensing problems please contact : chaos.com/help

                              Comment

                              Working...
                              X