sketchucation logo sketchucation
    • Login
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Transparency shadow threshold

    Scheduled Pinned Locked Moved Developers' Forum
    16 Posts 6 Posters 3.0k Views 6 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.
    • Dave RD Offline
      Dave R
      last edited by

      Jan, Thank you for this but I must be doing it wrong.

      I drew a vertical rectangle so that it would cast a shadow on the ground. I applied a texture to it and made it a group. I've tried setting the threshold to .5 but I still don't get a shadow when the opacity slider is set below 70. Or is this only functional on textures imported with transparency?

      Etaoin Shrdlu

      %

      (THERE'S NO PLACE LIKE)

      G28 X0.0 Y0.0 Z0.0

      M30

      %

      1 Reply Last reply Reply Quote 0
      • jenujacobJ Offline
        jenujacob
        last edited by

        yea even i dont get it.. how do we actually do this threshold thingy? should we make the object into a group??? πŸ˜’

        1 Reply Last reply Reply Quote 0
        • PixeroP Offline
          Pixero
          last edited by

          You have misunderstod its purpose.
          It's for setting objects with transparency to cast shadows or not.
          The only way to get SketchUp to cast shadows matching a texture with alpha channel would be to "cut it out" in the shape of the image.

          1 Reply Last reply Reply Quote 0
          • Dave RD Offline
            Dave R
            last edited by

            So, in other words this doesn't change the opacity level at which materials/textures applied in SU cast shadows. Instead it would be used to prevent the transparent parts of components from casting shadows. Maybe like in the case of the 2D trees?

            Etaoin Shrdlu

            %

            (THERE'S NO PLACE LIKE)

            G28 X0.0 Y0.0 Z0.0

            M30

            %

            1 Reply Last reply Reply Quote 0
            • GaieusG Offline
              Gaieus
              last edited by

              No Dave, I think the other way round. This does not change SU behaviour with png files and alpha transparency but should let you decide when to cast shadows and when not (not just at the 70% threshold).

              Gai...

              1 Reply Last reply Reply Quote 0
              • Dave RD Offline
                Dave R
                last edited by

                But apparently not with texture/materials applied to geometry in SketchUp?

                Etaoin Shrdlu

                %

                (THERE'S NO PLACE LIKE)

                G28 X0.0 Y0.0 Z0.0

                M30

                %

                1 Reply Last reply Reply Quote 0
                • GaieusG Offline
                  Gaieus
                  last edited by

                  I don't know - haven't tried.
                  Try with a simple colour first to see...

                  Gai...

                  1 Reply Last reply Reply Quote 0
                  • Dave RD Offline
                    Dave R
                    last edited by

                    I did. I applied a color to a face. I selected it and then tried setting the threshold to .5 and then adjusted the opacity slider in the Edit materials box. As soon as the opacity dropped to 69 the shadow disappeared.

                    Etaoin Shrdlu

                    %

                    (THERE'S NO PLACE LIKE)

                    G28 X0.0 Y0.0 Z0.0

                    M30

                    %

                    1 Reply Last reply Reply Quote 0
                    • Dave RD Offline
                      Dave R
                      last edited by

                      Here's an example.

                      Rectangle with a color applied. Shadows turned on.

                      Picture 1: Opacity set to 70. Shadow Visible.

                      http://smg.photobucket.com/albums/v506/weekender410/th_Shadow1.jpg

                      Picture 2: Face selected and threshold set to .5.

                      http://smg.photobucket.com/albums/v506/weekender410/th_Shadow2.jpg

                      Picture 3: Opacity slider set to 69. Shadow gone.

                      http://smg.photobucket.com/albums/v506/weekender410/th_shadow3.jpg

                      Etaoin Shrdlu

                      %

                      (THERE'S NO PLACE LIKE)

                      G28 X0.0 Y0.0 Z0.0

                      M30

                      %

                      1 Reply Last reply Reply Quote 0
                      • GaieusG Offline
                        Gaieus
                        last edited by

                        Yeah, I get the same results (downloaded it finally).
                        Hm...

                        Gai...

                        1 Reply Last reply Reply Quote 0
                        • PixeroP Offline
                          Pixero
                          last edited by

                          Hmmm... there seem to be a problem. Now it doesnt work the way it did when I tested it.
                          I'll try it more at work tomorrow.
                          For now you can use the other script, jsShadowControl, to turn shadow casting and shadow receiving on or off. Even for non transparent objects. πŸ˜„

                          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