Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Texture Packer Tool

Discussion in 'Assets and Asset Store' started by wolvz38, May 7, 2014.

  1. wolvz38

    wolvz38

    Joined:
    Feb 6, 2013
    Posts:
    66
    I put together this tool with some help from the unity documentation and the unity 3d wiki pages. With this tool you can pack textures together into their own atlas textures and output the UV data to an XML file. That's not all, you can also take the new UV data and use it to export your new models with the updated UV's for your atlas. This allows you to have shared materials for your objects which saves draw calls!

    The scripts I used to help me write this tool are:
    XML Serializer
    OBJ Exporter
    Array GUI thanks to Jake L.

    and various documentation such as:
    Texture2D.PackTextures
    Editor Window Doc

    Here is a screenshot of the custom editor window:
    $tp screenshot 1.png

    Here are the results you are likely to get:
    $tp screenshot 3.png
    Here is a single diffuse atlas texture on 6 barricade models sharing the same material. Uses 1 draw call and batches the other 5.

    $tp screenshot 2.png
    Here is 3 textures bumped specular diffuse on 6 barricade models sharing the same material. Uses 3 draw calls and batches the other 3.

    You can download the tool here:
    View attachment $texturePacker.unitypackage
     
    Last edited: May 12, 2014
  2. p6r

    p6r

    Joined:
    Nov 6, 2010
    Posts:
    1,158
    Interesting but the link doesn't work !?!
    6R
     
  3. wolvz38

    wolvz38

    Joined:
    Feb 6, 2013
    Posts:
    66
    try the new link
     
  4. p6r

    p6r

    Joined:
    Nov 6, 2010
    Posts:
    1,158
    It doesn't work ! I have a link to a .php file...
    6R
     
  5. wolvz38

    wolvz38

    Joined:
    Feb 6, 2013
    Posts:
    66
    try it again im not sure why its not working for you
     
  6. p6r

    p6r

    Joined:
    Nov 6, 2010
    Posts:
    1,158
    It was an issue with Internet Explorer ! It works fine with Chrome...
    Thanks,
    6R
     
  7. wolvz38

    wolvz38

    Joined:
    Feb 6, 2013
    Posts:
    66
    cool! let me know if you have any issues with it. Right now it only does obj files.
     
  8. Dorian01

    Dorian01

    Joined:
    Nov 3, 2013
    Posts:
    2
    how to use ??
    I need scence with demo object....
     
  9. Dorian01

    Dorian01

    Joined:
    Nov 3, 2013
    Posts:
    2


    texture work well but mesh atlas :/
     
  10. _milla_

    _milla_

    Joined:
    Aug 29, 2013
    Posts:
    3
    nice work - but concerning creation ot the mesh i get the same error message as Dorian ... does anybody know how to fix this?