• Login
sketchucation logo sketchucation
  • Login
๐Ÿค‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Export all textures in model to one image file?

Scheduled Pinned Locked Moved SketchUp Discussions
sketchup
26 Posts 12 Posters 7.5k Views 12 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.
  • T Offline
    thomthom
    last edited by 18 Apr 2015, 18:59

    Here's one way of doing it - if you have 3dsmax:
    https://www.youtube.com/watch?v=V33AWgKkWYU

    Maybe something similar can be done as an extension, make copies of the faces onto a flat surface. Use a packing solver to fit them into a square. Then one could use the Make Unique Texture function in SketchUp which merges the selected coplanar faces into a simple texture (Which I think might be 1024x1024...). The packing solver is the challenge here. Looking for libraries of polygon packing solvers.

    Thomas Thomassen โ€” SketchUp Monkey & Coding addict
    List of my plugins and link to the CookieWare fund

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 18 Apr 2015, 19:05

      Here's another one - where he's using something called Substance Painter to create the textures:
      https://youtu.be/M4Gz1tgW61o?t=47m4s

      Haven't used it myself, but looking at the video it looks really nice.
      https://www.allegorithmic.com/products/substance-painter

      Thomas Thomassen โ€” SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • topic:timeago-later,3 years
      • F Offline
        francolino
        last edited by 26 Mar 2018, 18:22

        tig.texturebaker.rb is a fake i became a member paying and is not working ...dont' post thing is are not working just for stealing money !

        1 Reply Last reply Reply Quote 0
        • T Offline
          TIG Moderator
          last edited by 26 Mar 2018, 20:58

          @francolino said:

          tig.texturebaker.rb is a fake i became a member paying and is not working ...dont' post thing is are not working just for stealing money !

          You have made several basic errors in your assumptions.

          You do NOT need to have a paid membership to download.
          I do NOT post things that do NOT work.
          I am NOT stealing your money.
          But rather, you are wasting it.

          To accuse me, or SketchUcation, of stealing from you is tantamount to a libel !

          Had you read its guidance notes - and I do describe it as an example 'beta' script - then you might appreciate how it is intended to be used...
          You DO need to do some work to complete the process...
          It might not work how you hope, but it works as advertised...
          Reread the notes...

          As I said, it was a freely offered example of code to be tried out - for any member to download and test - whether or not they had a paid membership !

          AND it's now several years old, and things have moved on...

          TIG

          1 Reply Last reply Reply Quote 0
          • J Offline
            JQL
            last edited by 26 Mar 2018, 23:11

            Questioning Tig's and this forum's usefulness and generosity is shocking... To my knowledge, it has never been tried before.

            www.casca.pt
            Visit us on facebook!

            1 Reply Last reply Reply Quote 0
            • 8 Offline
              823hal
              last edited by 29 Mar 2018, 13:27

              Hi TIG!

              Any ideas why i get this error after installing?

              "Error Loading File TIG-TextureBaker.rb
              Error: #<NameError: uninitialized constant TIG>
              C:/Users/Workstation/AppData/Roaming/SketchUp/SketchUp 2018/SketchUp/Plugins/TIG-TextureBaker.rb:24:in `<top (required)>'
              "

              I really need this extention to work. I have 28000 bitmaps that i need to combine ๐Ÿ˜ž

              /823

              1 Reply Last reply Reply Quote 0
              • T Offline
                TIG Moderator
                last edited by 30 Mar 2018, 11:52

                Unless you have other scripts by me loading, then the module "TIG" is defined in a compatible way, and that caused the error.
                I have changed the code in the attached RBZ to fix that.
                https://sketchucation.com/forums/viewtopic.php?p=561750#p561750
                I suggest you download and reinstall that newer RBZ...

                Also any one having similar issues show get this modified version and retry...

                Note that it is an old script and might not do what you hope - it was created for discussion purposes and things moved on...

                TIG

                1 Reply Last reply Reply Quote 0
                • C Offline
                  chippwalters
                  last edited by 2 Apr 2018, 12:23

                  I spend a bunch of time converting SU models for use in Unity. I really like SketchUp as an input modeler for Unity for a bunch of reasons:

                  • It has great smoothing control of polys which transfers nicely to Unity
                  • It has native Unity import (but I prefer OBJ export from SU)
                  • It is very accurate and can create water tight rooms which are great for not showing "light leaks" in GI renders.
                  • Instancing and local axis support in SU is superb for architectural work.
                  • Works well with 3D Coat (my UVMapper of choice) as well as Substance Painter.

                  I need to do some more 3D Coat tutorials for SU -> UVmapping -> Unity (or back to SU). I finished one recently, which is pretty basic:

                  But the real power in 3DC's UVmapper comes in when you need to unwrap complicated models. It has one of the best auto unwrapper's in the business.

                  I used it to unwrap the rolled up geometry (after being Flowified) in the image below. Unfortunately, Flowify cannot maintain UVs when Flowifying. The unwrap was done in only 3 mouseclicks. Pretty awesome.

                  https://filedn.com/lLMW4jXsJqxXkRYjd1UCoKL/3d/untitled.193.jpg

                  Currently working with Cross-Reality technologies

                  1 Reply Last reply Reply Quote 0
                  • topic:timeago-later,about a year
                  • J Offline
                    JoeWinko
                    last edited by 28 Sept 2019, 06:19

                    @tig said:

                    This simple script might do some of what you want.

                    File goes in Plugins folder [install it from the RBZ].

                    In the Ruby Console type [or copy/paste]: TIG::TextureBaker.new()

                    All Textures in the Model are assembled into a 'ComboTexture' Material.
                    Which contains a 'ComboTexture.png' image which you can export.
                    You could also add code to export it automatically.
                    The textures are arranged side by side, but you can manually edit the image to rearrange them, or add an algorithm into the code to arrange in a block rather than a line.

                    This is a beta-version - please save before using in case of issues - it's not yet in the Pluginstore...

                    hey, im just wondering, how do i get this to work? does it work with Sketchup 2018? i actually have a model that im trying to convert the textures into one image file. im not sure how to do it with this though

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      TIG Moderator
                      last edited by 28 Sept 2019, 17:45

                      My script was a clunky idea, fraught with issues.
                      I don't recommend it for use ๐Ÿ˜ฎ

                      TIG

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

                      Advertisement