# UV unwrapping SLIM algorithm

**URL:** <https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922>\
**Category:** Blender and CG Discussions\
**Created:** [May 1, 2017, 5:09pm UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922 "2017-05-01T17:09:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChameleonScales](https://blenderartists.org/user_avatar/blenderartists.org/chameleonscales/32/603022_2.png) [@ChameleonScales](https://blenderartists.org/u/ChameleonScales)\
**Post date:** [May 1, 2017, 5:09pm UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922/1 "2017-05-01T17:09:48Z")

</div>

Thanks to Aurel Gruber, UV unwrapping is getting a massive improvement (which you can try on a Blender 2.79 branch):

[![](https://blenderartists.org/uploads/default/original/4X/a/d/9/ad9d835c1a41c8b7c1dfd2a9b972f9e1b96975cb.jpeg "UV unwrapping gets an overhaul") ](https://www.youtube.com/watch?v=PLUoLQUK3-s)

## Build on Linux :

- if it’s your first time buiding Blender, follow [the wiki](https://wiki.blender.org/index.php/Dev:Doc/Building_Blender/Linux), build the master branch and make sure you have a working Blender executable from it.
- Now, cd to your local repository, (e.g. `~/blender-git/blender`)
- `git checkout 'uv_unwrapping_slim_algorithm'`
- `git checkout 'uv_unwrapping_slim_algorithm@{2017-05-24 17:23:54}'`
- `./build_files/build_environment/install_deps.sh`.  
You may have to add `--skip-osl` (Open Shading Language failed installing in my case, but it doesn’t affect the SLIM UV part).  
If other parts fail installing, run `./install_deps.sh --help` to know how to skip them.
- copy the long make command it gives you at the end and run it

Hopefully it works and you can have fun with SLIM UV unwrapping.  
If not, tell us where it went wrong in this topic.

## Build on Windows:

- Follow the [wiki](https://wiki.blender.org/wiki/Building_Blender) and first build a working Blender.exe with the master branch (if you’re new to this)
- `cd C:\blender-git\blender`
- `git checkout 'uv_unwrapping_slim_algorithm'`
- follow the wiki steps for compiling

If it doesn’t work in the end, try replacing the checkout command given above by this one:  
`git checkout 'uv_unwrapping_slim_algorithm@{2017-05-24 17:23:54}'`

## Build on Mac:

I don’t really know. Follow the [wiki](https://wiki.blender.org/wiki/Building_Blender) and catch what you can from the above instructions.

# Original videos accompanying the technical papers

[![](https://blenderartists.org/uploads/default/original/4X/4/d/f/4df2236efcfdd4796fe49a107595faf012ef7f6e.jpeg "Locally Injective Mappings") ](https://www.youtube.com/watch?v=FeDg11ta0ys)

[![](https://blenderartists.org/uploads/default/original/4X/f/4/4/f4409cd88f830dd5dd9b308012d8340b4ff9bdb4.jpeg "Scalable Locally Injective Mappings (SLIM)") ](https://www.youtube.com/watch?v=R0uhG1DHzVc)

---

<div class="post-metadata">

**Author:** ![anon80875028](https://blenderartists.org/letter_avatar_proxy/v4/letter/a/779978/32.png) [@anon80875028](https://blenderartists.org/u/anon80875028)\
**Post date:** [May 2, 2017, 2:11am UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922/2 "2017-05-02T02:11:07Z")

</div>

Well, the actual unwrap is good, but other solution for some case will be perfect.

---

<div class="post-metadata">

**Author:** ![BigBlend](https://blenderartists.org/user_avatar/blenderartists.org/bigblend/32/1324_2.png) [@BigBlend](https://blenderartists.org/u/BigBlend)\
**Post date:** [May 2, 2017, 5:36am UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922/3 "2017-05-02T05:36:00Z")

</div>

Nice stuff. Organic unwrapping is usually a pain.

---

<div class="post-metadata">

**Author:** ![stargeizer](https://blenderartists.org/letter_avatar_proxy/v4/letter/s/ce73a5/32.png) [@stargeizer](https://blenderartists.org/u/stargeizer)\
**Post date:** [May 2, 2017, 5:45am UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922/4 "2017-05-02T05:45:35Z")

</div>

> - does it take advantage of the PARADISO solver ?

PARADISO solver is commercial software, requires licensing, and only free to students for one year. The student license seems incompatible with the GPL (but IANAL) and the library is closed, so probably Blender cannot use it.

---

<div class="post-metadata">

**Author:** ![ChameleonScales](https://blenderartists.org/user_avatar/blenderartists.org/chameleonscales/32/603022_2.png) [@ChameleonScales](https://blenderartists.org/u/ChameleonScales)\
**Post date:** [May 3, 2017, 5:58pm UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922/5 "2017-05-03T17:58:13Z")

</div>

[**stargeizer**](https://blenderartists.org/forum/member.php?19000-stargeizer) oh that’s right, I forgot about that.

---

<div class="post-metadata">

**Author:** ![JoseConseco](https://blenderartists.org/user_avatar/blenderartists.org/joseconseco/32/526735_2.png) [@JoseConseco](https://blenderartists.org/u/JoseConseco)\
**Post date:** [May 5, 2017, 1:48am UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922/6 "2017-05-05T01:48:46Z")

</div>

So how do you transfer uv from triangulated mesh back to original one?

---

<div class="post-metadata">

**Author:** ![AurelGruber](https://blenderartists.org/letter_avatar_proxy/v4/letter/a/c77e96/32.png) [@AurelGruber](https://blenderartists.org/u/AurelGruber)\
**Post date:** [May 22, 2017, 6:36am UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922/7 "2017-05-22T06:36:02Z")

</div>

Hey guys, if you are wondering how to build it on linux, it should work pretty straight forward:

OK, so I compiled it on ubuntu and it works just fine.

I can try to summarize:

- follow the exact steps here:  
[https://wiki.blender.org/index.php/D…x/Ubuntu/CMake](https://wiki.blender.org/index.php/Dev:Doc/Building_Blender/Linux/Ubuntu/CMake)

MAKE SURE THAT BLENDER WORKS!

- then, navigate to the blender-git top-folder , i.e. that is blender-git/blender if you follow the instructions in the above link, and type in

git checkout uv\_unwrapping\_slim\_algorithm

- then, you have to edit the file intern/CMakeLists.txt and change on the last line SLIM to slim. Sorry, that is my mistake. Linux is case sensitive.

- then, you can again navigate to blender-git/build or wherever your build directory is and type  
make

and then

make install

now, blender should run with the slim unwrapping algorithm

hope this helps

---

<div class="post-metadata">

**Author:** ![ChameleonScales](https://blenderartists.org/user_avatar/blenderartists.org/chameleonscales/32/603022_2.png) [@ChameleonScales](https://blenderartists.org/u/ChameleonScales)\
**Post date:** [May 25, 2017, 2:38pm UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922/8 "2017-05-25T14:38:32Z")

</div>

It works ! Thank you Aurel, I can’t wait for my next work to show some results !

---

<div class="post-metadata">

**Author:** ![erickBlender](https://blenderartists.org/user_avatar/blenderartists.org/erickblender/32/544921_2.png) [@erickBlender](https://blenderartists.org/u/erickBlender)\
**Post date:** [May 27, 2017, 1:54am UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922/9 "2017-05-27T01:54:56Z")

</div>

It working well in windows here is a short video i wanted to demonstrate the different [https://youtu.be/IKzra5Gjh5E](https://youtu.be/IKzra5Gjh5E)

- SLIM is pretty robust in term of reducing stretches but perform poorly in packing UVs, because it always rotate UVs.
- Angle base default: it reduce stretching better than conformal but poor packing algorithm.  
-Conformal: really good packing algorithm align your uvs well but stretch them.

I didn’t test the uv pinning feature nor live unwrap.

Thanks Aurel and Brecht, I finally learn how to write your name LOL, can’t wait to see it in master and start to use it as default 🙂

---

<div class="post-metadata">

**Author:** ![JoseConseco](https://blenderartists.org/user_avatar/blenderartists.org/joseconseco/32/526735_2.png) [@JoseConseco](https://blenderartists.org/u/JoseConseco)\
**Post date:** [May 27, 2017, 3:17am UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922/10 "2017-05-27T03:17:40Z")

</div>

erickBlender - awesome. Can you provide link to windows build with working slim uv mapping?

---

<div class="post-metadata">

**Author:** ![erickBlender](https://blenderartists.org/user_avatar/blenderartists.org/erickblender/32/544921_2.png) [@erickBlender](https://blenderartists.org/u/erickBlender)\
**Post date:** [May 27, 2017, 2:39pm UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922/11 "2017-05-27T14:39:12Z")

</div>

> [@JoseConseco](#):
>
> erickBlender - awesome. Can you provide link to windows build with working slim uv mapping?

Yeah sure here is a link win64 [https://drive.google.com/file/d/0B62B6BmVbltVSTd5ZDlxaVN2UGc/view?usp=sharing](https://drive.google.com/file/d/0B62B6BmVbltVSTd5ZDlxaVN2UGc/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![JoseConseco](https://blenderartists.org/user_avatar/blenderartists.org/joseconseco/32/526735_2.png) [@JoseConseco](https://blenderartists.org/u/JoseConseco)\
**Post date:** [May 29, 2017, 1:37am UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922/12 "2017-05-29T01:37:52Z")

</div>

Thanks. I works very well. I wish this was included in blender 2.79, it’s huge time saver with organic meshes.

---

<div class="post-metadata">

**Author:** ![anon80875028](https://blenderartists.org/letter_avatar_proxy/v4/letter/a/779978/32.png) [@anon80875028](https://blenderartists.org/u/anon80875028)\
**Post date:** [May 29, 2017, 1:56am UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922/13 "2017-05-29T01:56:58Z")

</div>

Uffff, it’s impressive the SLIM solution. why it is not in the offiicial yet?

---

<div class="post-metadata">

**Author:** ![erickBlender](https://blenderartists.org/user_avatar/blenderartists.org/erickblender/32/544921_2.png) [@erickBlender](https://blenderartists.org/u/erickBlender)\
**Post date:** [May 29, 2017, 3:29am UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922/14 "2017-05-29T03:29:38Z")

</div>

@joseConseco yes it is pretty fast and time saver you can get away with few seams with it 🙂

> [@anon80875028](#):
>
> Uffff, it’s impressive the SLIM solution. why it is not in the offiicial yet?

Because we are already in bcon3 and according to yesterday discussion, Release Candidate should be branched out before gsoc starts, this patch might bring more bugs which isn’t good and the 2 devs who are working on the branch are volunteers. Over all the real truth is all this are just my speculations may be today or tomorrow someone might step in and merge in master …

---

<div class="post-metadata">

**Author:** ![anon80875028](https://blenderartists.org/letter_avatar_proxy/v4/letter/a/779978/32.png) [@anon80875028](https://blenderartists.org/u/anon80875028)\
**Post date:** [May 29, 2017, 4:02am UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922/15 "2017-05-29T04:02:36Z")

</div>

> [@erickBlender](#):
>
> @joseConseco yes it is pretty fast and time saver you can get away with few seams with it 🙂
> 
> Because we are already in bcon3 and according to yesterday discussion, Release Candidate should be branched out before gsoc starts, this patch might bring more bugs which isn’t good and the 2 devs who are working on the branch are volunteers. Over all the real truth is all this are just my speculations may be today or tomorrow someone might step in and merge in master …

I only must tell that after try in some models of productions the results was impressive. But it’s true that I find a crash with one mesh.

---

<div class="post-metadata">

**Author:** ![ChameleonScales](https://blenderartists.org/user_avatar/blenderartists.org/chameleonscales/32/603022_2.png) [@ChameleonScales](https://blenderartists.org/u/ChameleonScales)\
**Post date:** [May 29, 2017, 4:20am UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922/16 "2017-05-29T04:20:04Z")

</div>

I edited the first post to give instructions on how to build on Ubuntu but I don’t have windows or mac, so if someone knows the instructions for those I’d like to add them too.

---

<div class="post-metadata">

**Author:** ![erickBlender](https://blenderartists.org/user_avatar/blenderartists.org/erickblender/32/544921_2.png) [@erickBlender](https://blenderartists.org/u/erickBlender)\
**Post date:** [May 30, 2017, 6:04am UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922/17 "2017-05-30T06:04:31Z")

</div>

> [@ChameleonScales](#):
>
> I edited the first post to give instructions on how to build on Ubuntu but I don’t have windows or mac, so if someone knows the instructions for those I’d like to add them too.

In windows it is straight forward for anybody who build in windows, no extra settings needed 🙂

> But it’s true that I find a crash with one mesh.

May be better to share the blend file so that other can test it 🙂

---

<div class="post-metadata">

**Author:** ![gorion103](https://blenderartists.org/user_avatar/blenderartists.org/gorion103/32/1443290_2.png) [@gorion103](https://blenderartists.org/u/gorion103)\
**Post date:** [June 9, 2017, 12:34am UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922/18 "2017-06-09T00:34:51Z")

</div>

@erickBlender  
is that build you post earlier is the newest build?

i found scenario when trying to unwrap with slim crashes blender.  
It happens then uv seam is in middle of island eg. something like that:

 ![](https://blenderartists.org/uploads/default/original/4X/5/5/e/55ee7c9a0b01a01847d6525d46a3ac33b033818e.png)

---

<div class="post-metadata">

**Author:** ![erickBlender](https://blenderartists.org/user_avatar/blenderartists.org/erickblender/32/544921_2.png) [@erickBlender](https://blenderartists.org/u/erickBlender)\
**Post date:** [June 20, 2017, 1:45pm UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922/19 "2017-06-20T13:45:04Z")

</div>

> [@gorion103](#):
>
> @erickBlender  
> is that build you post earlier is the newest build?
> 
> i found scenario when trying to unwrap with slim crashes blender.  
> It happens then uv seam is in middle of island eg. something like that:  
> [ATTACH=CONFIG]487229[/ATTACH]

Sorry for late reply, i didn’t check this thread for long time ☹  
Yes that the latest build i didn’t see any update. I m a “only quad” man, so may be if you send your mesh i can test it out. i did have this problem so far like 🙂

---

<div class="post-metadata">

**Author:** ![JoseConseco](https://blenderartists.org/user_avatar/blenderartists.org/joseconseco/32/526735_2.png) [@JoseConseco](https://blenderartists.org/u/JoseConseco)\
**Post date:** [June 22, 2017, 8:07am UTC](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922/20 "2017-06-22T08:07:39Z")

</div>

erickBlender -is it possible to make new build with slim and blender 2.79?

[Next page](https://blenderartists.org/t/uv-unwrapping-slim-algorithm/688922.md?page=2)
