Page 1 of 5 123 ... LastLast
Results 1 to 20 of 84
  1. #1

    [Addon] UV packing

    I implemented an algorithm for packing UVs quite a bit tighter than Blender does it. The algorithm is quite simple so it took a lot of optimization to make it fast.

    It's up on https://gumroad.com/l/UVShotPacker (paid)

    There is currently a project underway to implement a better UV packing algorithm into Blender (https://blenderartists.org/forum/sho...-2016-UV-Tools). So you might want to wait for that. But it's not certain when that will be finished.

    Any feature requrests and bug reports are welcome.
    Attached Images Attached Images
    CG enthusiast. Tools: Blender - Substance - Unity3D



  2. #2
    Thanks for creatng this addon ambi, way better than blender own. Are you planning to improve it with new features like overlapping uv packing and ipack that kinda features? Just to know im supporting for a reason.



  3. #3
    ipackthat? No, unless SapphireS abandons the current UV packing project. I don't think doing overlapping work is a good idea.

    Improving the current addon with new features, performance? Certainly.

    Overlapping UV packing, I will look into it, but no promises.
    CG enthusiast. Tools: Blender - Substance - Unity3D



  4. #4
    bought. I wish youd set the amount to 2+ so I can pay what I want.



  5. #5
    Works really well. Can I ask how you handle island rotation? The test object I ran through it looks like rotations are locked at 90 degrees, are there any plans to expand it so that users have more control over it? Such as per-island locking the initial rotation so that it doesn't rotate at all, unlocking rotation completely, and locking to 90.

    Might be worth mentioning but the addon threw a python error when I tried to pack my first test object. I took a wild guess based on the error that it was caused by overlapping vertices which seemed to be correct because running remove doubles on it solved the issue.



  6. #6
    Originally Posted by aMars View Post
    Works really well. Can I ask how you handle island rotation? The test object I ran through it looks like rotations are locked at 90 degrees, are there any plans to expand it so that users have more control over it? Such as per-island locking the initial rotation so that it doesn't rotate at all, unlocking rotation completely, and locking to 90.

    Might be worth mentioning but the addon threw a python error when I tried to pack my first test object. I took a wild guess based on the error that it was caused by overlapping vertices which seemed to be correct because running remove doubles on it solved the issue.
    The islands are rotated by 90 degrees to maintain texel orientation. 360 degree rotation is not complicated to implement, but it will increase the packing time by quite a bit.

    Per island locking should not be hard on the algorithm level, but on the interface level it requires a lot more planning. Maybe use UV pins for that?

    Can you send me a .blend on the object that threw the error? I'll look into it. Something like http://pasteall.org/blend/ should work fine.
    Last edited by ambi; 14-Apr-17 at 10:00.
    CG enthusiast. Tools: Blender - Substance - Unity3D



  7. #7
    This is my result, I get islands sticking outside a bit:

    shot_170414_182258.png

    Feature request: Don't leave the edit mode when finished packing.

    360 degree rotation is not complicated to implement, but it will increase the packing time by quite a bit.
    That would be nice. If lowering the rotation steps amount would help performance, you can add that as an option.



  8. #8
    I will tell some of features that I really wanted see some day in blender.

    - Island groups, to have groups allways near.
    - margin in pixels
    - Block islands in the UV and the rest of island conform to this.
    Last edited by DcVertice; 14-Apr-17 at 12:26.



  9. #9
    @PLyczkowski: The addon should now recognize and pack all of the islands. It will take some additional tests and coding before the next release, but I might upload a beta version if there's interest for it.
    Attached Images Attached Images
    CG enthusiast. Tools: Blender - Substance - Unity3D



  10. #10
    Good job I would like to try beta versions



  11. #11
    @aMars: There shouldn't be inner or overlapping islands anymore. The requirement to remove doubles still remains. Unless there's a clear use-case where double vertices is part of the UV workflow, it's out of the scope for now.

    I put the packer_beta.py on the Gumroad.
    Attached Images Attached Images
    Last edited by ambi; 15-Apr-17 at 03:53.
    CG enthusiast. Tools: Blender - Substance - Unity3D



  12. #12
    Member jimpaw80's Avatar
    Join Date
    Sep 2011
    Location
    Stockolm/Sweden
    Posts
    390
    Great Work! This is really what Blender needs!
    BLENDER ADDONS: Smart Fill | Toggle UV
    FACEBOOK | GUMROAD



  13. #13
    Thank you ambi! As far as overlapping vertices go I don't mind the requirement, I only spotted this because I just lazily threw the mesh together. The main reason why I posted it is because the error wasn't particularly descriptive so from a usability standpoint I wasn't sure what the problem was and just had to guess. It would have been nice to receive a more specific warning.



  14. #14
    I purchased your asset recently and did some practice with it using the Suzanne head. The results were very satisfying! I did not save the project but I do have a render that I painted (see below):
    SusanPainted.png

    I would absolutely recommend it to anybody who has troubles sorting UVs.



  15. #15
    The packer_beta.py now has rotation step feature.

    Still, 90 degree rotation and flip seems to be the best alternative when started with Blender pack (CTRL-A, CTRL-P), because it minimizes the bounding box. But, if anyone is interested in trying it out, let me know how you like it.
    Last edited by ambi; 16-Apr-17 at 06:25.
    CG enthusiast. Tools: Blender - Substance - Unity3D



  16. #16
    Bought it and made some small tests so far, it's awesome! Thanks for making this.
    Windows 7 64Bit | i5 4670k @ 3.4GHz | GTX 970 | 16Gb RAM
    http://grav-modulo.com



  17. #17
    I have tried the last aditions, works all perfect.



  18. #18
    Updated the packer_beta.py. 50 iteration the performance is about the same. For 200 iterations the performance is twice as fast.
    CG enthusiast. Tools: Blender - Substance - Unity3D



  19. #19
    Member
    Join Date
    May 2012
    Posts
    100
    Awesome addon for game asset production. I also find it very usefull for packing lightmap uvs for ue4. It would be great to have some kind of progess bar if possible.

    Cheers,
    n1k

    Sent from my LG-D855 using Tapatalk



  20. #20
    Member cgstrive's Avatar
    Join Date
    Aug 2014
    Location
    Estonia
    Posts
    476
    Tommi, sincere admiration to your capability and developed useful tools (such as Curvature>Vertex colors)!

    I work fulltime with gamedev using Blender/Houdini. I tried to throw some production models at your script that I just bought. Some feedback:

    1. Very often fails: www.cgstrive.com/SS/2_4212017__general__b187.png
    2. I think that deselected UV shells should be left UNTOUCHED. For example here's a valid gameUV before and after SA Packer:
      http://cgstrive.com/SS/2_4212017__general__3116.png
      http://cgstrive.com/SS/2_4212017__general__9af4.png (after)
      Note: IPackThat has this feature of locking shells
    3. As you can see in above screenshots it has an issue packing non 1:1 w/h ratio textures. Very often working with 2:1 or 1:2. Here's a closeup of circles: http://cgstrive.com/SS/2_4212017__general__c0a4.png
    4. Bonus. MultiUV is essential plugin in gamedev. While your script gets along with it fine, it deselects and exits the mode. Might be a good idea to develop and test hand in hand


    Thank You



Page 1 of 5 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •