Announcement

Collapse
No announcement yet.

"Purge Unused" command purge problem

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

  • "Purge Unused" command purge problem

    Hi,

    the "purge unused" command, purges the materials that compose the Override material applied to objects.

    Is it a bug?


    Sketchup PRO 21.0.339 + VRay for Sketchup 5.00.03
    Windows 10 - RTX 3090 - AMD Ryzen 9 5950X - 128 Go RAM
    Sketchup PRO 23.0.419 + V-Ray 6.20.02
    3DS Max 2024.2.1 + V-Ray 6.20.06
    Chaos Vantage 2.3.0
    GeForce Studio Ready Driver Version 546.01​

  • #2
    Hi DCHA34,

    This is unfortunately the expected behavior.
    SketchUp's purge knows nothing about V-Ray and the way your V-Ray shaders are set up.
    When it finds a material not applied to a scene object it deletes it right away, ignoring the fact that this material might be referenced by another one.

    That is why I'd recommend you use the V-Ray Purge instead.
    It'll respect all the V-Ray material connections and should give you the result you're after:
    Click image for larger version

Name:	purge1.jpg
Views:	982
Size:	49.3 KB
ID:	1098513

    Hope that helps,
    Konstantin

    Comment


    • #3
      Hi,

      thank you for this explanation.

      It is still very regrettable and dangerous. We can lose hours of work with this mechanism.
      This means that from the moment I use an Override material, I can no longer use the "purge unused" command to purge my Sketchup model.

      A solution should be found!
      Windows 10 - RTX 3090 - AMD Ryzen 9 5950X - 128 Go RAM
      Sketchup PRO 23.0.419 + V-Ray 6.20.02
      3DS Max 2024.2.1 + V-Ray 6.20.06
      Chaos Vantage 2.3.0
      GeForce Studio Ready Driver Version 546.01​

      Comment


      • #4
        Hi,
        I dig up this topic to point out that the "purge unused" command also deletes the materials assigned to .vrmesh

        I just lost the morning to redo my scene because I lost all the material assignments on all my .vrmesh

        I hope this is a bug and not the expected behavior as explained before.
        If this is the expected behavior, I don't see the point of using the wonderful features of V-Ray if they are going to be wiped out by a Sketchup command.

        I think a warning should be put in place when executing the "purge unused" command. See with Trimble.
        Windows 10 - RTX 3090 - AMD Ryzen 9 5950X - 128 Go RAM
        Sketchup PRO 23.0.419 + V-Ray 6.20.02
        3DS Max 2024.2.1 + V-Ray 6.20.06
        Chaos Vantage 2.3.0
        GeForce Studio Ready Driver Version 546.01​

        Comment


        • #5
          I'll give you a solution, when you're done with your scene, hit get material samples, then clean up without losing unused materials.xxx.rb into the plugin folder, restart SU.
          Attached Files

          Comment


          • #6
            Hi DCHA34​,

            I dig up this topic to point out that the "purge unused" command also deletes the materials assigned to .vrmesh
            This should not be happening if you assign the proxy mesh materials using the built-in material slots instead of a Multi Material.

            I hope this is a bug and not the expected behavior as explained before.
            If this is the expected behavior, I don't see the point of using the wonderful features of V-Ray if they are going to be wiped out by a Sketchup command.​
            As I mentioned before, SketchUp doesn't give us any way to 'protect' sub-materials and avoid their purging.
            The only workaround that I suspect is used by wzfwzfwzf​ and his script is to assign each sub-material to a peace of geometry or an edge.
            This is something that we can also start doing as a workaround but is not 'fool-proof'. One can always locate the auto-generated edges that are used to store the materials and delete them...

            Konstantin

            Comment


            • #7
              Hi Konstantin,

              This should not be happening if you assign the proxy mesh materials using the built-in material slots instead of a Multi Material.
              Here is an illustrated example of the problem I was talking about.

              Before purge :

              Click image for larger version

Name:	BeforePurge.jpg
Views:	345
Size:	311.6 KB
ID:	1166835

              After purge :

              Click image for larger version

Name:	AfterPurge.jpg
Views:	337
Size:	255.6 KB
ID:	1166836
              Windows 10 - RTX 3090 - AMD Ryzen 9 5950X - 128 Go RAM
              Sketchup PRO 23.0.419 + V-Ray 6.20.02
              3DS Max 2024.2.1 + V-Ray 6.20.06
              Chaos Vantage 2.3.0
              GeForce Studio Ready Driver Version 546.01​

              Comment

              Working...
              X