sketchucation logo sketchucation
    • Login
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Texture Transparency

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    15 Posts 5 Posters 425 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.
    • pbacotP Offline
      pbacot
      last edited by

      Hmm.

      Doesn't for me. This is a .png--perhaps that matters..

      WAIT it can work for .png. Not sure why it didn't last night. I guess I was trying to adjust the texture of the group. I needed to work on the face itself. Since it is projected I have to make unique then sample and adjust the transparency, repaint. HOWEVER I can't recommend it as in this particular drawing it took faces away and created ghost images of my other geometry and generally made a mess. Something to study on the side. [OK I think I got it to work without the errors, Thanks!]

      So, let's say I make a solid texture. Can an image texture receive a shadow?

      Starting at the beginning: I import jpg or png as texture. place on a surface and it doesn't receive shadows. Is that right? Any way to cast shadows on this? In the entity window it says receive shadows for those faces.

      MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

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

        Are shadows on at all? Any texture should receive shadows.

        Gai...

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

          A PNG texture [with built-in-transparency] doesn't receive shadows.
          A transparent material [irrespective of its texturing] doesn't receive shadows.
          A face using a material with low opacity does not cast a shadow.
          A PNG used as a texture in a material with low opacity should be translucent [see-through].
          A PNG with an alpha-channel [i.e. a color set so that parts appear transparent] will be see-through for those areas even when the material using it as a texture is fully opaque - however, the whole face will cast a shadow, including seemingly see-through areas.
          There should be no visual different between a PNG Image and and PNG Image that you've exploded so it's become a face with a new material applied that uses the PNG as a texture [except that the face's edges become visible and the face will cast a shadow - unlike an Image!]
          If you want to convert an Image [that is a transparent PNG] into a 'cut-out' face that casts true shadows etc, and also receives shadows, then you need to use something like my ImageTrimmer tool on it...
          However, some preprocessing of the PNG might be needed, to ensure proper fully transparent and fully solid areas of color are available for processing.
          ๐Ÿ˜•

          TIG

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

            @tig said:

            A PNG texture [with built-in-transparency] doesn't receive shadows.

            But TIG, I get png textures to receive shadows!

            Gai...

            1 Reply Last reply Reply Quote 0
            • V Offline
              Vicspa
              last edited by

              I just did a test on that, and I too get shadows on PNGs

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

                IF you use a non-transparent PNG as a material-texture then it casts shadows - just like a JPG would.
                BUT IF that PNG has an alpha-channel [transparency] then it doesn't cast a shadow ever - irrespective of whether or not the material using it is fully opaque !

                TIG

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

                  Ah TIG, originally you said the with or withouttransparency and that confused me (I have seen the moderator logs about you editing ๐Ÿ˜› )

                  Gai...

                  1 Reply Last reply Reply Quote 0
                  • V Offline
                    Vicspa
                    last edited by

                    Thanks Tig, always willing to learn something new.

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

                      @gaieus said:

                      Ah TIG, originally you said the with or withouttransparency and that confused me (I have seen the moderator logs about you editing ๐Ÿ˜› )
                      You are right - I meant the materials transparency - it was ambiguous I edited it for clarity... ๐Ÿ˜ณ

                      TIG

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

                        ๐Ÿ‘

                        Gai...

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

                          I think that's it. Give that man a cigar!

                          I added Alpha channel at the beginning to be able to eliminate the white around the borders of the site. The rest of it was solid opaque. I'll check by other methods

                          Thanks!

                          Peter

                          MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

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

                            Because of the issue I added an extra step near the end of my ImageTrimmer tool.
                            The PNG Image initially needs transparency to work out what;s to be cut off the shape.
                            But then you have a component face with a material using the PNG as a texture that won't receive shadows ๐Ÿ˜’
                            SO you are then asked if you want to 'flatten' to texture image so it works [like a JPG], rather than the transparent PNG ! Answering 'yes' fixes it [it's automatically made anyway and is discarded if you decide not to use it!]
                            ๐Ÿ˜ฎ

                            TIG

                            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