Announcement

Collapse
No announcement yet.

add material IDs to every material in scene?

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

  • add material IDs to every material in scene?

    Is there a way to automatically set materialIDs for all shaders in a scene?

    In Maya, you just add a Vray materialID node to every shader you want and set a colour (or use a script like Deex's Vray Arsenal to add them automatically to every shader).
    Is there anything like this in 3ds Max? Being limited to Max's paltry 15 material IDs is horrible! Plus I often forget to add them.

    Cheers
    Last edited by Richard7666; 27-08-2015, 12:05 AM.

  • #2
    You can add more in the Vray material options.
    Win10 x64, 3DS Max 2017 19.0, Vray 3.60.03
    Threadripper 1950x, 64GB RAM, Aurous Gaming 7 x399,

    Comment


    • #3
      Originally posted by DPS View Post
      You can add more in the Vray material options.
      Sorry, can you explain better please ? I don't see anywhere in VRay Material Options to add more.
      Jez

      ------------------------------------
      3DS Max 2023.3.4 | V-Ray 6.10.08 | Phoenix FD 4.40.00 | PD Player 64 1.0.7.32 | Forest Pack Pro 8.2.2 | RailClone 6.1.3
      Windows 11 Pro 22H2 | NVidia Drivers 535.98 (Game Drivers)

      Asus X299 Sage (Bios 4001), i9-7980xe, 128Gb, 1TB m.2 OS, 2 x NVidia RTX 3090 FE
      ---- Updated 06/09/23 -------

      Comment


      • #4
        'Override material effect Id'

        It's naming is a little obscure. I had to do a search as I had forgotten.
        Win10 x64, 3DS Max 2017 19.0, Vray 3.60.03
        Threadripper 1950x, 64GB RAM, Aurous Gaming 7 x399,

        Comment


        • #5
          Originally posted by DPS View Post
          'Override material effect Id'

          It's naming is a little obscure. I had to do a search as I had forgotten.

          Thanks for that DPS

          It'd be great if it were possible to assign random numbers to those Effect ID's (I have Olly's wonderful VMC script which can handle Effect ID's but not assign every scene material a unique one - I'll ask him if he can modify VMC to accommodate this).

          Thanks again.
          Jez

          ------------------------------------
          3DS Max 2023.3.4 | V-Ray 6.10.08 | Phoenix FD 4.40.00 | PD Player 64 1.0.7.32 | Forest Pack Pro 8.2.2 | RailClone 6.1.3
          Windows 11 Pro 22H2 | NVidia Drivers 535.98 (Game Drivers)

          Asus X299 Sage (Bios 4001), i9-7980xe, 128Gb, 1TB m.2 OS, 2 x NVidia RTX 3090 FE
          ---- Updated 06/09/23 -------

          Comment


          • #6
            Yes that's a great idea. Been hoping for something like that for ages. It should be simple enough, I'd have thought.
            Alex York
            Founder of Atelier York - Bespoke Architectural Visualisation
            www.atelieryork.co.uk

            Comment


            • #7
              Not sure if these would help?

              http://www.scriptspot.com/3ds-max/sc...ectschannelset

              http://www.scriptspot.com/3ds-max/sc...l-id-organizer
              Win10 x64, 3DS Max 2017 19.0, Vray 3.60.03
              Threadripper 1950x, 64GB RAM, Aurous Gaming 7 x399,

              Comment


              • #8
                ^they still seem very clunky though. Am not in front of PC right now but "Material ID Organizer" might warrant a look. Cheers

                Basically, if I can find a way to set up a materialID render element with every material in the scene represented as a different colour, I'll be happy. If I can do it in 3 clicks like in V-ray for Maya, I'll be even happier.

                Comment


                • #9
                  Out of interest - which compositing app are you using?
                  Win10 x64, 3DS Max 2017 19.0, Vray 3.60.03
                  Threadripper 1950x, 64GB RAM, Aurous Gaming 7 x399,

                  Comment


                  • #10
                    www.chaosgroup.com/en/2/material_ID_channel.html



                    This is the sort of thing that would be ideal. A little swatch on the V-ray material that you pick your matID colour in, and viola
                    (Is that V-ray for sketchup that has the feature?!!)

                    Originally posted by DPS View Post
                    Out of interest - which compositing app are you using?
                    I have no qualms in revealing I'm using the immensely mighty.... Photoshop CS5. Because I mainly only do stills.
                    Last edited by Richard7666; 11-11-2015, 04:12 AM.

                    Comment


                    • #11
                      Could you use the Gbuffer + MultiMatteElement? (or selection sets per material + MultiMatteElement, depending on your favorite approach.)
                      Would end up with the same 'idea'.

                      On our side, we are also using wirecolor. As we apply materials, we make sure that the wirecolors are identical, and we add a VrayWireColor pass.

                      With these 2 methods, you cans get out everything you want. Probably not in the same way as what you are used with Vray for Sketchup, but in a similar way.

                      On a sidenote, when we only need quick fixex of masks, there is always this script, that works really well.

                      http://www.scriptspot.com/3ds-max/scripts/rendermask
                      Alain Blanchette
                      www.pixistudio.com

                      Comment


                      • #12
                        So I'm an idiot. DPS said in the third post where the option to add additional IDs was, and I completely missed it.

                        I guess if that box was automatically checked and the number randomised by default the situation would be pretty perfect.

                        However (slightly off topic) for some reason I get really jagged edges from it?

                        here is my MatID

                        Yet when I do this same thing in Maya, the materialID pass has no jaggies and is nicely aliased?



                        I do notice the Multimatte element doesn't give this jaggy result in Max, but with Multimatte you wind up with a zillion layers (depending on how many materials you need masks for) because they only have 3 channels, R G and B
                        Last edited by Richard7666; 12-11-2015, 08:04 PM.

                        Comment


                        • #13
                          Originally posted by thablanch View Post
                          Could you use the Gbuffer + MultiMatteElement? (or selection sets per material + MultiMatteElement, depending on your favorite approach.)
                          Would end up with the same 'idea'.

                          On our side, we are also using wirecolor. As we apply materials, we make sure that the wirecolors are identical, and we add a VrayWireColor pass.

                          With these 2 methods, you cans get out everything you want. Probably not in the same way as what you are used with Vray for Sketchup, but in a similar way.

                          On a sidenote, when we only need quick fixex of masks, there is always this script, that works really well.

                          http://www.scriptspot.com/3ds-max/scripts/rendermask
                          Don't those methods all work on a per-object basis though?

                          Comment


                          • #14
                            There are Material Effect IDs, which are the 0-15 number selection set in the material that you can override in the VRayMtl as well as mentioned before.
                            Also there are the GBuffer Object IDs in the object properties. Both can be rendered with the MultiMatte element.

                            Then there are the confusingly-named (Face) Material IDs that you set per face on the object, for example to switch a multi-sub material. You can set it for the whole object with a Material modifier. You can render those with a VRayMultiSubTex in a VRayExtraTex. Set the VRayMultiSubTex to Face material ID and add as many colours and IDs as you want. I prefer just three set to R, G and B. Forest pack uses these so this can be a great way to render masks for different objects in those.

                            Just some options, as combining those can be very powerful and will reduce your need for many IDs, as you can select objects based on several different masks.
                            Rens Heeren
                            Generalist
                            WEBSITE - IMDB - LINKEDIN - OSL SHADERS

                            Comment


                            • #15
                              TL: DR but this script is awesome: http://www.scriptspot.com/3ds-max/sc...automultimatte
                              James Burrell www.objektiv-j.com
                              Visit my Patreon patreon.com/JamesBurrell

                              Comment

                              Working...
                              X