• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Color Going From 0% to 100% Opacity

Scheduled Pinned Locked Moved SketchUp Discussions
sketchup
10 Posts 4 Posters 458 Views
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.
  • T Offline
    TeamSDA
    last edited by 9 Apr 2012, 21:24

    Hi Everyone,

    We are looking for a way to make a color inside of sketchup to go from 0% to 100% opacity over a distance on a face. I am aware that it can be done using textures, it would just be more efficient if there is a way to do it in Sketchup.

    I've read several post discussing gradients inside of Sketchup not being possible. The posts I've read were from a couple years ago. Does anyone know of a plugin, DCs or a new setting in Sketch I am not aware of.

    Thank you for your help,

    Christian

    1 Reply Last reply Reply Quote 0
    • T Offline
      TIG Moderator
      last edited by 9 Apr 2012, 21:42

      You could make a texture gradient as a transparent png file and use that in a material, colorized as desired...


      B&WgradientMaterial.PNG


      B&WgradientMaterial.skp


      B2Wgradient.png

      TIG

      1 Reply Last reply Reply Quote 0
      • S Offline
        Simon B
        last edited by 9 Apr 2012, 22:08

        oh wow, that's really clever TIG!

        1 Reply Last reply Reply Quote 0
        • T Offline
          TeamSDA
          last edited by 10 Apr 2012, 00:05

          Hi TIG,

          Thank you for your response. I've added an examples to your original file. As you can see for our application using a graphic texture doesn't work. What I would like to be able to accomplish is using DC to switch color of Sketchup created "transparent gradient", which then gives me the ability using DC to extend and widen cone without having to create new graphics.

          Any ideas?

          Thank you for your help,

          Christian


          Example File

          1 Reply Last reply Reply Quote 0
          • T Offline
            TIG Moderator
            last edited by 10 Apr 2012, 08:25

            Capture.PNG

            TIG

            1 Reply Last reply Reply Quote 0
            • T Offline
              TeamSDA
              last edited by 10 Apr 2012, 21:11

              Hi TIG,

              I see want you did and it works for the situation. For our end goal of being able to extend and widen the cone using the same material or color this technique would still break. Or is there something I am missing?

              Christian

              1 Reply Last reply Reply Quote 0
              • G Offline
                Gaieus
                last edited by 10 Apr 2012, 21:37

                If you enclose the cone into a group or component, you can scale it in any direction, the texture will scale with it.

                cone.png


                cone.skp

                Gai...

                1 Reply Last reply Reply Quote 0
                • T Offline
                  TeamSDA
                  last edited by 10 Apr 2012, 22:48

                  Hi Gaieus,

                  Thanks for the example. Now that I have your file I see you are projecting the texture on to the cone. Is there a way to switch the projected texture using DC?

                  Christian

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    Gaieus
                    last edited by 10 Apr 2012, 22:57

                    I haven't got the slightest clue about DC's sorry. 😳

                    Gai...

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      TIG Moderator
                      last edited by 11 Apr 2012, 08:00

                      There's no access to many aspects of 'materials' through the API or DCs.
                      So 'projected' is not one of them...
                      You do not need to project the texture on the cone.
                      Indeed, you need to apply it as desired onto one face and then repeat the mapping around the remaining facets.
                      As Gai says once made the material should 'scale' with the object...

                      How would you 'normally' apply a material to any part of a DC ?
                      Wouldn't you have it pre-applied to a cone which is then shown or not ?
                      You can't apply/map a material in a DC [at least not without some arcane/convoluted new 'functions' being added to the DC, via Ruby and not native DC coding - which then means DC users need the .rb loaded too]...

                      TIG

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

                      Advertisement