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

    Animations with Alpha Channel

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    13 Posts 7 Posters 1.1k Views 7 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.
    • A Offline
      Aerilius
      last edited by

      You would need to export an image sequence of png images.

      There are two fileformats covering animation with alpha channel ("the better gif"). One is mng, which comes from the original png developers but is not widely implemented (Paintshop Pro, Gimp) and the other is an enhancement of png, called apng by the Mozilla group.

      1 Reply Last reply Reply Quote 0
      • M Offline
        Mary_1.0
        last edited by

        You also may want to consider using the trial version of Swift3D. Swift3D will allow you to import a vector image like a logo and extrude it to give it some depth and then rotate it, and render the animation. It also imports 3ds files. The trial version does not allow rendering as a Flash swf, but it should allow avi and mov renders and png image sequences. Set the environment background to black and it will render as transparent and also prevent flickering around the edges of the animated objects.

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

          Switch off ground/sky etc in your current Style and make your set of Scene tabs...
          Set your Style's background to a notable and easily pickable color - like 'green'.
          Render the animation as a set of image files [say png].
          Batch edit those image files in your preferred image-editor*** so that the 'green' is replaced by the transparent color. Assemble the images into an animated gif file and save...
          ***Here I used 'Animation Shop 3' to make this very quick example that has a fully transparent background...aGIF.gif

          TIG

          1 Reply Last reply Reply Quote 0
          • M Offline
            mikeewilly
            last edited by

            Thanks to all for the suggestions. I was hoping to avoid the "frame-by-frame, port to another app" workflow. My fervent hope was someone would recommend a codec that did it for me. πŸ˜‰

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

              Many gif applications will insert all files in one go, no need to do frame by frame.
              And select the background as transparent.

              And SU certainly exports multiple frames with a few clicks.

              1 Reply Last reply Reply Quote 0
              • Chris FullmerC Offline
                Chris Fullmer
                last edited by

                But png's don't export from windows with transparent backgrounds. The backgrouns is always white (or whatever other color is specified). So its not that simple. TIG's solution of coloring the background to something garish so it can easily be removed in s batch process is probably the best way.

                I could also see the possibility to make everythng black, and leave the background white and then export all the frames again that way and use those frames as an alpha channel to add to your movie. I have never tried that, but it seems like it should work? I guess one would need a movie editor that could take the 2 video streams and treat the black and white one as an alpha for the full color one.

                Lately you've been tan, suspicious for the winter.
                All my Plugins I've written

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

                  No they don't, but most gif programs can find the green and make it transparent.

                  My current Avatar has a transparent background.

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

                    'Animation Shop 3' [and others] loads all of the images in one go - recognizing their order from their name. You then select a color to be 'ignored'/deleted to leave the back ground transparent [I used 'green' if you recall] - you also have options to apply that to all frames all at once, and you also set the 'range' to catch color-bleed at the edges where green might merge with red body or the edges/black etc, especially if there's anti-aliasing. Finally you optimize the gif and save it - it takes as long to describe and type it as it does to do it! Shucks - if you were to PM me a suitable zipped image set then I could post an animated gif just a few minutes later 😎 ... But I AM going to sleep right now though.... zzz πŸ˜‰

                    PS: I gave my avatar gif a transparent background this afternoon too... β˜€

                    EDIT: here's your face with a transparent backgroundface.gif

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      mikeewilly
                      last edited by

                      @chris fullmer said:

                      I could also see the possibility to make everythng black, and leave the background white and then export all the frames again that way and use those frames as an alpha channel to add to your movie. I have never tried that, but it seems like it should work? I guess one would need a movie editor that could take the 2 video streams and treat the black and white one as an alpha for the full color one.

                      Now THAT'S an interesting idea....

                      1 Reply Last reply Reply Quote 0
                      • Chris FullmerC Offline
                        Chris Fullmer
                        last edited by

                        @box said:

                        most gif programs can find the green and make it transparent.

                        Ahh, gotcha. I thought you were saying that SU could somehow export the transparency. (well, on a Mac it can, just not on windows).

                        Lately you've been tan, suspicious for the winter.
                        All my Plugins I've written

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

                          That I didn't know, I must try a Mac one day.

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

                            There are some rendering applications that can export an alpha mask (white for the rendered objects and black for the background). Have a look at Kerkythea for instance (free). Then it's just a matter of multiply layering the images.

                            Gai...

                            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