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

    [REQ] Texture Atlas Generator for Sketchup

    Scheduled Pinned Locked Moved Plugins
    11 Posts 5 Posters 3.5k 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.
    • A Offline
      Aerilius
      last edited by

      I once had started some code for this... But it is a lot of work and you probably get faster results by exporting to Vue (works even in the free PUEL version) and saving back to skp. Vue doesn't keep the textures in there orignal state but bakes a texture atlas.

      For creating a plugin we need to:
      • probably make all textures unique since we get otherwise problems with tiling textures
      • copy all faces into a plane
      • pack them efficiently into a square. This is the most time consuming because most heuristic algorithms don't pack so efficiently. We could allow the user to tweak the positions of faces.
      • merge the textures into one, either with SketchUp's "combine textures" or an external image editing library
      • calculate the UV coordinates that have changed because the new texture atlas has bigger boundaries
      • map the new texture back to all faces.

      1 Reply Last reply Reply Quote 0
      • iichiversiiI Offline
        iichiversii
        last edited by

        Thanks for the tip Aerilius, ill look into Vue later and see if it does what I need done, ill post here how I get on with this, it has being an issue asked by many members over time on these forums, I believe sketchup needs some sort of feature with generating a texture atlas but if Vue can do something similar then I'm happy, thanks again 👍

        Bring on the Rain...

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          And I think you might get problems if you wanted to export a model atlas textures - as SU tend to export faces with distorted textured into separate bitmaps.

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

          1 Reply Last reply Reply Quote 0
          • D Offline
            Daikan
            last edited by

            Curiously, has anyone had any success using the proposed SU <-> Vue export/import "workaround" for creating a texture atlas and would care to share their experience?

            Of course that's unless there is a better way how to do it...

            Thanks 😉

            1 Reply Last reply Reply Quote 0
            • iichiversiiI Offline
              iichiversii
              last edited by

              I forgot about this post, unfortunately i didn't succeed, but i only tried the once, i create my own texture atlas using gimp and SU, its a long process and very time consuming, im curious to know how its done using Vue and if there is any video tutorials demonstrating this...

              Bring on the Rain...

              1 Reply Last reply Reply Quote 0
              • A Offline
                Aerilius
                last edited by

                When I imported a SketchUp model into Vue, it automatically merged all textures into one file. I needed nothing to do on my own. But I didn't find the map useful for transferring back to SketchUp because small face ended up only some pixels wide, and I couldn't use bigger (32k×32k) textures in SketchUp.

                I have a "TextureCombinator" (soon to be released). It does however not resolve the UV distortion issue (it does not bake distortions into the atlas).

                1 Reply Last reply Reply Quote 0
                • iichiversiiI Offline
                  iichiversii
                  last edited by

                  @aerilius said:

                  When I imported a SketchUp model into Vue, it automatically merged all textures into one file. I needed nothing to do on my own. But I didn't find the map useful for transferring back to SketchUp because small face ended up only some pixels wide, and I couldn't use bigger (32k×32k) textures in SketchUp.

                  I have a "TextureCombinator" (soon to be released). It does however not resolve the UV distortion issue (it does not bake distortions into the atlas).

                  So you decided to further develop the plugin you mentioned you started further up the post? 😍

                  Bring on the Rain...

                  1 Reply Last reply Reply Quote 0
                  • iichiversiiI Offline
                    iichiversii
                    last edited by

                    Its been well over a year since i posted this, so i said i would revisit this and see has there been any solution to this

                    Bring on the Rain...

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

                      Blender

                      Download the free D'oh Book for SketchUp 📖

                      1 Reply Last reply Reply Quote 0
                      • iichiversiiI Offline
                        iichiversii
                        last edited by

                        lol, thanks again Rich, ha ha

                        Bring on the Rain...

                        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