sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    2 tone color fade

    Scheduled Pinned Locked Moved V-Ray
    renderpluginsextensions
    7 Posts 4 Posters 2.0k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      Philw
      last edited by

      is there a way to do this type of color fade in VRay for sketchUp?
      I have 2 vray VSF Car colors I want to use, but I have not found a way to mix the 2 to get this type of fade between the 2 to get this type of result.
      (Image from Google)


      xxx_large.jpg

      1 Reply Last reply Reply Quote 0
      • pbacotP Offline
        pbacot
        last edited by

        Don't you need to create a single texture that has the colors and the blend?

        MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

        1 Reply Last reply Reply Quote 0
        • P Offline
          Philw
          last edited by

          Thought about that but it would just be colors.
          It would not have the "Flake specular" car finish I am looking for. I know in Max I can mix 2 maps and blend the transition between the 2. I have the car finish maps for VRay that some one set up and I am wondering if there is a feature like this in Vray for Sketchup where i can mix maps, so far I have not found this feature in this program.

          1 Reply Last reply Reply Quote 0
          • P Offline
            Philw
            last edited by

            Ok this is what I am looking to do and what got me on this quest to find the solution in VRay for Sketchup.

            I have other personal project I am working on that this would be helpful on.


            Photo


            My 3D model so far


            The Colors I want to mix and control

            1 Reply Last reply Reply Quote 0
            • sdmitchS Offline
              sdmitch
              last edited by

              @philw said:

              Ok this is what I am looking to do and what got me on this quest to find the solution in VRay for Sketchup.

              I have other personal project I am working on that this would be helpful on.

              Given the RGB of the two colors, you can generate a color gradient using the following code

              mod = Sketchup.active_model
              sel = mod.selection
              clr1 = Sketchup;;Color.new [162,63,42]#change rgb to match first color
              clr2 = Sketchup;;Color.new [198,184,51]#change rgb to match second color
              faces=sel.grep(Sketchup;;Face).sort{|a,b|a.bounds.center.x<=>b.bounds.center.x}
              faces.each_with_index{|f,i|
                clr3 = clr1.blend clr2,1.0-i.to_f/(faces.length-1).to_f
                f.back_material=f.material=clr3
              }
              
              

              color blend.gif

              Nothing is worthless, it can always be used as a bad example.

              http://sdmitch.blogspot.com/

              1 Reply Last reply Reply Quote 0
              • P Offline
                Philw
                last edited by

                I will check this out over the weekend.
                Thank you

                1 Reply Last reply Reply Quote 0
                • pilouP Offline
                  pilou
                  last edited by

                  Cool! β˜€
                  colorfun.jpg

                  Frenchy Pilou
                  Is beautiful that please without concept!
                  My Little site :)

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Buy SketchPlus
                  Buy SUbD
                  Buy WrapR
                  Buy eBook
                  Buy Modelur
                  Buy Vertex Tools
                  Buy SketchCuisine
                  Buy FormFonts

                  Advertisement