Announcement

Collapse
No announcement yet.

Override material; exclude material instead of object.

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

  • Override material; exclude material instead of object.

    I know it's a bit of a long stretch; but I have to work a lot with models from Revit or other programs; that aren't set up like I usually built my own models. So overriding all but exclude one or more materials would speed things up when testing lighting or materials.

    For instance I replace all glass materials with a vray glass material, but sometimes these are part of multisub materials. So instead of having to detach those and exclude the object with the glass material. I would exlclude the glass material instead of the objects with the glass assigned to them.

    Would this be possible.
    A.

    ---------------------
    www.digitaltwins.be

  • #2
    +10

    Would be incredibly useful for clay renders with glass material excluded, so it remains as-is.
    Alex York
    Founder of Atelier York - Bespoke Architectural Visualisation
    www.atelieryork.co.uk

    Comment


    • #3
      Hello

      Great idea indeed, you've got my vote as well !
      Nicolas Caplat
      www.intangibles.fr

      Comment


      • #4
        Originally posted by alexyork View Post
        +10

        Would be incredibly useful for clay renders with glass material excluded, so it remains as-is.
        Not only for Clay/Glass renders but also for testing a specific material without all the other complex materials.
        A.

        ---------------------
        www.digitaltwins.be

        Comment


        • #5
          Originally posted by Vizioen View Post
          Not only for Clay/Glass renders but also for testing a specific material without all the other complex materials.
          You could also use it as a really quick and easy way to re-render certain objects based on their mats, a bit like Render Mask, but with more control...
          Alex York
          Founder of Atelier York - Bespoke Architectural Visualisation
          www.atelieryork.co.uk

          Comment


          • #6
            +1, Yip, can come in VERY handy
            Kind Regards,
            Morne

            Comment


            • #7
              +1 - glass in subobject is always an issue with override material.
              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


              • #8
                If you use the same material IDs for all of your glass elements - you could stick a Multisubtex in the refraction slot of your clay material. Set default to black. And set white for your Glass ID. Delete all the other slots.

                No longer need to create exclude lists.
                Win10 x64, 3DS Max 2017 19.0, Vray 3.60.03
                Threadripper 1950x, 64GB RAM, Aurous Gaming 7 x399,

                Comment


                • #9
                  Originally posted by DPS View Post
                  If you use the same material IDs for all of your glass elements - you could stick a Multisubtex in the refraction slot of your clay material. Set default to black. And set white for your Glass ID. Delete all the other slots.

                  No longer need to create exclude lists.
                  Yeah problem is, if you import a model from Revit or whatnot, the materialIDs are assigned automatically. I wouldn't have asked for this (at first, although I see multiple uses out of this now) if it weren't for this.
                  A.

                  ---------------------
                  www.digitaltwins.be

                  Comment


                  • #10
                    Anyone from ChaosGroup who can maybe reply, if this is a good idea or not?
                    A.

                    ---------------------
                    www.digitaltwins.be

                    Comment


                    • #11
                      It is a good idea, but for the moment I'm not sure how to implement it, for the following reasons:

                      *) 3ds Max doesn't have a built-in dialog or support structures in the SDK for this and we must code those from scratch;
                      *) I'm not sure what would happen if the material is inside a multi/sub material or inside a blend material. Do you expect the particular layer in the blend material to be replaced by the override material, leaving the other layers intact?
                      *) Non V-Ray materials will be totally unsupported and there's nothing we can do about them (f.e. Blend, Shellac etc).

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

                      Comment


                      • #12
                        Hey guys have a look at this post:
                        http://forums.chaosgroup.com/showthr...267#post655267

                        I posted a scripted solution to this.
                        Maxscript made easy....
                        davewortley.wordpress.com
                        Follow me here:
                        facebook.com/MaxMadeEasy

                        If you don't MaxScript, then have a look at my blog and learn how easy and powerful it can be.

                        Comment


                        • #13
                          I've now put the script on my blog with a load of cool extra features.

                          https://davewortley.wordpress.com/20...-mat-switcher/

                          Preserve Bump/Displace/Opacity Maps.
                          Works on all nested material structures.
                          Maxscript made easy....
                          davewortley.wordpress.com
                          Follow me here:
                          facebook.com/MaxMadeEasy

                          If you don't MaxScript, then have a look at my blog and learn how easy and powerful it can be.

                          Comment


                          • #14
                            Originally posted by Dave_Wortley View Post
                            I've now put the script on my blog with a load of cool extra features.

                            https://davewortley.wordpress.com/20...-mat-switcher/

                            Preserve Bump/Displace/Opacity Maps.
                            Works on all nested material structures.
                            Haha omg you're the best Dave! Thank you so much. I have a new project coming up so I'll be sure to use it. Is it also possible to add a checkbox where you could specify a custom material to exclude the chalk setup? Similar to the exclude object function?

                            EDIT: nevermind; found it
                            Last edited by Vizioen; 05-06-2015, 06:04 AM.
                            A.

                            ---------------------
                            www.digitaltwins.be

                            Comment


                            • #15
                              Yeah it's easy enough, I'll do it later.
                              Maxscript made easy....
                              davewortley.wordpress.com
                              Follow me here:
                              facebook.com/MaxMadeEasy

                              If you don't MaxScript, then have a look at my blog and learn how easy and powerful it can be.

                              Comment

                              Working...
                              X