[REQ] Texture Atlas Generator for Sketchup
-
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. -
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
-
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.
-
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
-
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...
-
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).
-
@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?
-
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
-
Blender
-
lol, thanks again Rich, ha ha
Advertisement