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

    Transparency - png?

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    16 Posts 8 Posters 2.4k Views 8 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.
    • R Offline
      remus
      last edited by

      in what respect is it not see through? bit more context please πŸ˜’

      http://remusrendering.wordpress.com/

      1 Reply Last reply Reply Quote 0
      • FrederikF Offline
        Frederik
        last edited by

        Please note that the transparency channel in the png-file can be broken... πŸ˜•
        Have you tried re-creating it in PS or whatever application you normally would use..??

        Cheers
        Kim Frederik

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

          Any chance of sharing the file, Bruce?

          Gai...

          1 Reply Last reply Reply Quote 0
          • AnssiA Offline
            Anssi
            last edited by

            I don't know if anyone can confirm this, but there seems to be a limit in how small an image can be for the transparency to work. The nifty trick of using a totally transparent PNG to create an invisible face that still casts shadows did not work with a very small image (1, 4, 16 pixels).

            Also, it might be fixed in some of the latest maintenance releases, but PNG files used to lose the transparency if exported from a SU model.

            Anssi

            securi adversus homines, securi adversus deos rem difficillimam adsecuti sunt, ut illis ne voto quidem opus esset

            1 Reply Last reply Reply Quote 0
            • Alan FraserA Offline
              Alan Fraser
              last edited by

              Well, it's a png, but it's not a transparent png. It's just on the background layer in Photoshop. For it to be transparent it needs to be on Layer 0...without the background behind it. Like this. Maybe you flattened it after producing it?


              lattice.png

              3D Figures
              Were you required to walk 500 miles? Were you advised to walk 500 more?
              You could be entitled to compensation. Call the Pro Claimers now!

              1 Reply Last reply Reply Quote 0
              • H Offline
                Howard leslie
                last edited by

                See attached,
                In Photoshop (or equivalent):

                1. Open Layers Pallette, R Click on Background Layer - Layer from Background
                2. Magic Wand Tool - Select Black Line - Then Select Inverse - All White Squares are now Selected
                3. Hit Delete Key - Chequerboard Pattern appears (white squares are deleted) = Transparent areas.
                4. Save as *.png
                  ...
                  Hope this helps
                  Howard L'

                lattice2.png

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

                  Yeah, thats normal SU treats any image as an image applied to a rectangle when you import it, wether or not it is transparent in places.

                  http://remusrendering.wordpress.com/

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

                    Something curious
                    An imported png image "transparent" in SU
                    is not right rendering in Podium ?
                    Is that normal?

                    I know of course the "Clipmap" method but want to know πŸ˜„


                    transparency.skp


                    test.zip


                    testpodium.jpg

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

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

                      THX πŸ˜„

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

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

                        Bruce,

                        I don't use photoshop but corel photopaint nevertheless it works quite similar.

                        Anyway, I have just used the "magic wand" to create a mask of the black parts and saved the image with the mask. Now it's transparent where the white parts are - see attached.

                        Pilou, Podium (as it is based on the Kerkythea engine) do not use the transparency channel of png files. You will need to use a clipmask (i.e. - with Bruce's image as an example - an inverted image where the white will be displayed while the black won't).

                        lattice1.png


                        EDIT:
                        Well, guys, as I'm watching the original file of bruce, it seems to have a transparency channel as well. I don't know what the problem is but will investigate it a bit further.

                        OK, I have applied Bruce's image on one face and mine on another one in this model. Transparency seems to work well on both faces.


                        Bruce.skp

                        Gai...

                        1 Reply Last reply Reply Quote 0
                        • S Offline
                          sorgesu
                          last edited by

                          Bruce, I can't see how it would be working in other programs UNLESS it was being treated as a grayscale image and those programs internally use an alpha mask for all white areas on the image. Some programs, such as Vectorworks don't require it to be grayscale, depending on which manner the item is read into the program, it will simply treat the white as tranparent. But that transparency is created from within the program, it isn't coming from the PNG file if the white has NOT been cut out. So in those programs the white would be treated as tranparent, even though it isn't really.
                          As an RGB image, you have no tranparncy in this image. To put what Alan said a different way, PNG files DO NOT save layers or mask layers. You need to copy the image to new layer which is transparent. You need to select all the white stuff and cut it out. And then you need to delete the orignal layer which was't transparent.
                          PNG files are not like tiff files or PSD files where you can just turn off the background layer.

                          Susan Sorger
                          Former Seller Hand Rendered Entourage
                          Former Canadian Authorized Training Centre, SketchUp

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

                            @unknownuser said:

                            Thanks very much for your efforts Gai,....I find that the image is working everywhere but SU....a bit frustrating!! I'll continue to experiment....thanks all!!

                            I don't know, Bruce - it works for me in SU. Does the attached skippy not show transparency for you? 😲 It does for me!

                            Gai...

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              sorgesu
                              last edited by

                              Bruces ORIGINAL image does not have transparency in the white areas. The original image does NOT work in SketchUp because it does not have an alpha channel.

                              Gai, I don't know which version of Bruce's texture you used for your example, but the original one that he posted simply does not work.
                              I have taken your skp and and added 2 surfaces. I a painted one with Bruce's orignal texture by "importing" it in as an image, exploding it, sampling it and painting with the sampled texture. No transparency.
                              Then I created a texture from within the material browser using the Bruce's first image, and it also has no transparecy. Totally as expected, because the white stuff is IN the PNG, has not been cut out to reveal a transparency below within the single PNG layer.


                              Bruce[2].skp

                              Susan Sorger
                              Former Seller Hand Rendered Entourage
                              Former Canadian Authorized Training Centre, SketchUp

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

                                Hm... Maybe I saved it after creating the alpha mask and did not notice? πŸ˜’

                                Gai...

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

                                  Bruce works fine for me too πŸ˜‰
                                  But the only interest is just for SU if you must make other things for rendering πŸ˜„

                                  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