Announcement

Collapse
No announcement yet.

Ptex for multiple objects

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

  • Ptex for multiple objects

    Couldn't find any mention of this. What's the vray workflow for ptex on multiple objects? Since the ptex map only seems to accept a single ptex file, are you supposed to have 100 VRayPtex maps plugged into a VrayMultisub map? Or can you specify a wildcard of some sort so that the ptex loader will automatically match a directory of appropriately named ptex files to its associated object in the scene?

    - Neil

  • #2
    I'm not sure this is going to work. Since ptex is vertex based you cant combine it in any way, you cant use it on other objects. Its severely limited and can't be re-purposed. I burned my self pretty hard when I painted a ptex on a set of combined objects, and then I had to detach them for other reasons, and the ptex stopped working since the vertex order has changed!
    Dmitry Vinnik
    Silhouette Images Inc.
    ShowReel:
    https://www.youtube.com/watch?v=qxSJlvSwAhA
    https://www.linkedin.com/in/dmitry-v...-identity-name

    Comment


    • #3
      VRayMultiSubTex in object ID mode should work fine; in Maya we also support user tags in Ptex file names - not sure if this was carried over to 3ds Max, I need to check.

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

      Comment


      • #4
        So you need to assign object id's to geometry, then match those to multisubtex then it would work.
        Dmitry Vinnik
        Silhouette Images Inc.
        ShowReel:
        https://www.youtube.com/watch?v=qxSJlvSwAhA
        https://www.linkedin.com/in/dmitry-v...-identity-name

        Comment


        • #5
          Originally posted by Morbid Angel View Post
          I'm not sure this is going to work. Since ptex is vertex based you cant combine it in any way, you cant use it on other objects. Its severely limited and can't be re-purposed. I burned my self pretty hard when I painted a ptex on a set of combined objects, and then I had to detach them for other reasons, and the ptex stopped working since the vertex order has changed!
          I'm not talking about using the same ptex file for multiple objects, I'm talking about having 5 ptex files, 5 objects, and wanting to avoid creating 5 materials.

          - Neil

          Comment


          • #6
            Originally posted by vlado View Post
            VRayMultiSubTex in object ID mode should work fine; in Maya we also support user tags in Ptex file names - not sure if this was carried over to 3ds Max, I need to check.
            Would love max to include both user tags and object name would be incredibly useful as well. It would be a lot faster than setting up a VRayMultiSubTex with say 1000 submaps.

            - Neil

            Comment


            • #7
              Originally posted by vlado View Post
              ... in Maya we also support user tags in Ptex file names -
              Best regards,
              Vlado
              interesting... is this workflow documented... how does it work..?

              Comment


              • #8
                In Venice we've seen things you people wouldn't believe....

                Comment


                • #9
                  Originally posted by FSGFX View Post
                  interesting... is this workflow documented... how does it work..?
                  In Maya, it works the same as the tags in File nodes - you can use f.e. something like "texture_<mytag>.ptx" as the Ptex file name, and during render time, V-Ray will look up the value of the "mytag" tag in the V-Ray user properties for the shaded object. Like I said I'm not sure this is in 3ds Max yet for Ptex files, though it does work for file names in VRayHDRI (and in 3ds Max we just do the look up from the node user properties).

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

                  Comment


                  • #10
                    Originally posted by vlado View Post
                    In Maya, it works the same as the tags in File nodes - you can use f.e. something like "texture_<mytag>.ptx" as the Ptex file name, and during render time, V-Ray will look up the value of the "mytag" tag in the V-Ray user properties for the shaded object. Like I said I'm not sure this is in 3ds Max yet for Ptex files, though it does work for file names in VRayHDRI (and in 3ds Max we just do the look up from the node user properties).
                    I'm sure you're busy Vlado, but if you can get it in there for max, I'd be happy to write a detailed tutorial on the process and post it to my site so people can use it.

                    - Neil

                    Comment


                    • #11
                      Hey Vlado, just wanted to mention I updated my 3dsmax texture Baking script to now use the vray 3 User Definable tags in VrayHDRI. Works like a charm. Now if we can just get User Definable Tags working in VrayMultiSubTex (so we can use maps, not just bitmaps) and the same working for PTEX, we'll be 100% golden

                      http://neilblevins.blogspot.com/2014...17th-2014.html
                      http://www.neilblevins.com/cg_educat...er_id_type.htm

                      - Neil

                      Comment


                      • #12
                        Cool stuff We will work on support for user properties for Ptex and VRayMultiSubTex and I hope there will be something soon.

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

                        Comment


                        • #13
                          Awesome, can't wait.

                          - Neil

                          Comment

                          Working...
                          X