sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Semi-transparent materials and shadows

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    21 Posts 5 Posters 789 Views 5 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.
    • hellnbakH Offline
      hellnbak
      last edited by

      Can a material, just a color, set to less than 100 percent opacity be made to receive shadows?

      "Politicians are just like diapers -- they need to be changed often, and for the same reason"

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

        Like this? Not directly out of SketchUp. Simple manipulation and a couple of image exports combined and you can get it.
        HNB.png

        Etaoin Shrdlu

        %

        (THERE'S NO PLACE LIKE)

        G28 X0.0 Y0.0 Z0.0

        M30

        %

        1 Reply Last reply Reply Quote 0
        • Rich O BrienR Offline
          Rich O Brien Moderator
          last edited by

          That's a very interesting find Steve.... πŸ‘

          Looks like if a color or image with any transparency is unable to receive shadows.

          Download the free D'oh Book for SketchUp πŸ“–

          1 Reply Last reply Reply Quote 0
          • hellnbakH Offline
            hellnbak
            last edited by

            Thanks Dave, but that sounds like the dreaded (for me) post processing. For whatever reason I like my models (and the photos of the models) to be pure SU. Yeah, I are odd.

            Yes Rich, it's interesting but a real pain in the butt. It's been a big problem with several models recently. Seems like the shadows should still be there, but their darkness would correspond with the opacity setting.

            I was sort of hoping for a miracle work-around, or maybe a plugin or magical Harry Potter spell or something. Dang. 😒

            Don't know what I'll do now

            "Politicians are just like diapers -- they need to be changed often, and for the same reason"

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

              Might be time to look at that "dreaded post-processing" again and maybe give it a chance. πŸ˜‰

              Etaoin Shrdlu

              %

              (THERE'S NO PLACE LIKE)

              G28 X0.0 Y0.0 Z0.0

              M30

              %

              1 Reply Last reply Reply Quote 0
              • hellnbakH Offline
                hellnbak
                last edited by

                Nah, I'm stubborn

                "Politicians are just like diapers -- they need to be changed often, and for the same reason"

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

                  We already knew that. πŸ˜‰ πŸ˜†

                  Etaoin Shrdlu

                  %

                  (THERE'S NO PLACE LIKE)

                  G28 X0.0 Y0.0 Z0.0

                  M30

                  %

                  1 Reply Last reply Reply Quote 0
                  • BoxB Offline
                    Box
                    last edited by

                    There is a plugin that lets you draw on shadows, can't think what it is just now. Something from Rederiza I think.

                    Tig has shadow projector which I think will outline the shadows for you so you can alter the material where the shadow should be so it looks like a shadow, if that makes sense.

                    1 Reply Last reply Reply Quote 0
                    • TIGT Offline
                      TIG Moderator
                      last edited by

                      And another thing...
                      A textured material using a PNG will not accept shadows even when it is not transparent at all.

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • hellnbakH Offline
                        hellnbak
                        last edited by

                        Box-
                        Thanks for the tips, I'll check them out and see what they can do. Even if they don't solve my problem, maybe they can be useful in some other way.

                        TIG -
                        Not sure I understand. Are you saying that if I import a texture as a PNG file vs JPG it will not accept shadows?

                        "Politicians are just like diapers -- they need to be changed often, and for the same reason"

                        1 Reply Last reply Reply Quote 0
                        • TIGT Offline
                          TIG Moderator
                          last edited by

                          No, a textured material will accept a shadow IF it has NO transparency.
                          BUT if the texture is a PNG it will NEVER accept a shadow.
                          [EDIT: to clarify - if it has a transparency layer set - even if all pixels are opaque!]

                          TIG

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

                            TIG, I'm not sure I'm following you.

                            Here's a PNG image.
                            Cam Clamp.png

                            I imported it as a texture which is applied to a face.
                            Cam Clamps.png

                            It seems to be accepting shadows.

                            Or do you mean that if there are any transparent pixels in a PNG texture image, none of it will accept shadows?

                            Etaoin Shrdlu

                            %

                            (THERE'S NO PLACE LIKE)

                            G28 X0.0 Y0.0 Z0.0

                            M30

                            %

                            1 Reply Last reply Reply Quote 0
                            • hellnbakH Offline
                              hellnbak
                              last edited by

                              I also do not understand. I imported the stone texture as a PNG and it too seems to have no problems accepting the shadow


                              2014-09-28_130433.png

                              "Politicians are just like diapers -- they need to be changed often, and for the same reason"

                              1 Reply Last reply Reply Quote 0
                              • Rich O BrienR Offline
                                Rich O Brien Moderator
                                last edited by

                                Try a .png in which the pixels are transparent

                                Download the free D'oh Book for SketchUp πŸ“–

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

                                  @rich o brien said:

                                  Try a .png in which the pixels are transparent

                                  Thanks. That makes it clear. πŸ˜„

                                  Etaoin Shrdlu

                                  %

                                  (THERE'S NO PLACE LIKE)

                                  G28 X0.0 Y0.0 Z0.0

                                  M30

                                  %

                                  1 Reply Last reply Reply Quote 0
                                  • hellnbakH Offline
                                    hellnbak
                                    last edited by

                                    What's weird is how the shadow looks with different texture opacity settings -

                                    72 percent2014-09-28_130920.png
                                    84 percent 2014-09-28_131017.png
                                    99 percent 2014-09-28_131105.png
                                    and 100 percent 2014-09-28_131124.png

                                    "Politicians are just like diapers -- they need to be changed often, and for the same reason"

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

                                      At 72% you're seeing the shadow on the ground. At 99% the texture isn't transparent enough to see through.

                                      Etaoin Shrdlu

                                      %

                                      (THERE'S NO PLACE LIKE)

                                      G28 X0.0 Y0.0 Z0.0

                                      M30

                                      %

                                      1 Reply Last reply Reply Quote 0
                                      • hellnbakH Offline
                                        hellnbak
                                        last edited by

                                        Had to really think about that but then the "doh!" moment happened. Never would have figured that out on my own, thanks for explaining.

                                        "Politicians are just like diapers -- they need to be changed often, and for the same reason"

                                        1 Reply Last reply Reply Quote 0
                                        • TIGT Offline
                                          TIG Moderator
                                          last edited by

                                          To recap...

                                          Materials with < 100% opacity [i.e. transparent] of any kind - plain-color/jpg/png etc - will never receive a shadow.
                                          If they are >= 70% opacity they will cast shadows - unless they use certain types of texture file, see below...

                                          Textured materials that are NOT transparent [100% opaque] will receive and cast shadows, IF the texture file has NO 'transparency layer' defined - e.g. it's a JPG file...

                                          BUT if the texture file is a PNG, AND it also has a 'transparency layer' defined, then it will not receive shadows, AND also it will never cast shadows - even if the material itself is set to be is 100% opaque.
                                          BUT if the material's texture is a PNG file with no 'transparency layer' defined, then it can accept/cast shadows, just like if a JPG file had been used.

                                          TIG

                                          1 Reply Last reply Reply Quote 0
                                          • hellnbakH Offline
                                            hellnbak
                                            last edited by

                                            Yeah, what he said πŸ˜‰

                                            "Politicians are just like diapers -- they need to be changed often, and for the same reason"

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

                                            Advertisement