# Importing tree from Blender gives me working leaves but a black trunk

**URL:** <https://forums.unrealengine.com/t/importing-tree-from-blender-gives-me-working-leaves-but-a-black-trunk/341358>\
**Category:** Pipeline & Plugins\
**Tags:** Blender, unreal-engine, editor, question\
**Created:** [December 13, 2015, 6:54pm UTC](https://forums.unrealengine.com/t/importing-tree-from-blender-gives-me-working-leaves-but-a-black-trunk/341358 "2015-12-13T18:54:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_3bc48f321](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3bc48f321](https://forums.unrealengine.com/u/anonymous_user_3bc48f321)\
**Post date:** [December 13, 2015, 6:54pm UTC](https://forums.unrealengine.com/t/importing-tree-from-blender-gives-me-working-leaves-but-a-black-trunk/341358/1 "2015-12-13T18:54:31Z")

</div>

So like my title mentions I have a black trunk an dno idea how to get rid of that. But iwhen i export the trunk alone the its working fine. So i used the sapling addon, created an uv map for the trunk and an additional uv channel for the leaves. then the leaves are working but the trunk is not.

 ![70465-problem.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/4/fd47fd466bae1c7af5edc0c25a9965982961df40.png)

---

<div class="post-metadata">

**Author:** ![smilingrob](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/smilingrob/32/947302_2.png) [@smilingrob](https://forums.unrealengine.com/u/smilingrob)\
**Post date:** [December 13, 2015, 9:10pm UTC](https://forums.unrealengine.com/t/importing-tree-from-blender-gives-me-working-leaves-but-a-black-trunk/341358/2 "2015-12-13T21:10:34Z")

</div>

I usually get this issue when I have overlapping UVs. So what I do is create a second UV map in Blender under “Object Data” (the menu that looks like a mesh triangle). And with that second UV Map highlighted, I unwrap “Lightmap Pack”. UE4 will use the first UV map for texturing, and the second UV map for lightmaps. Then the shadows baked by UE4 from one part of the tree won’t appear on the wrong part.

Notice the “trunk only” version has black branches, not white, so it also appears to have the same issue.

---

<div class="post-metadata">

**Author:** ![smilingrob](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/smilingrob/32/947302_2.png) [@smilingrob](https://forums.unrealengine.com/u/smilingrob)\
**Post date:** [December 13, 2015, 9:13pm UTC](https://forums.unrealengine.com/t/importing-tree-from-blender-gives-me-working-leaves-but-a-black-trunk/341358/3 "2015-12-13T21:13:10Z")

</div>

Also you may have to combine all the instances of leaves into one mesh (Ctrl+J) to get a single UV set.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3bc48f321](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3bc48f321](https://forums.unrealengine.com/u/anonymous_user_3bc48f321)\
**Post date:** [December 14, 2015, 10:01am UTC](https://forums.unrealengine.com/t/importing-tree-from-blender-gives-me-working-leaves-but-a-black-trunk/341358/4 "2015-12-14T10:01:44Z")

</div>

I figured that out in the time. I actually created a second uv channel for the leaves but forgot to create one for the trunk aswell. But thanks for replying now all is working fine.

---

<div class="post-metadata">

**Author:** ![xSheim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xSheim](https://forums.unrealengine.com/u/xSheim)\
**Post date:** [April 11, 2018, 6:43pm UTC](https://forums.unrealengine.com/t/importing-tree-from-blender-gives-me-working-leaves-but-a-black-trunk/341358/5 "2018-04-11T18:43:09Z")

</div>

I am still having troubles with the lighting of my trees. They seem to be really low resolution in some places, even if I increase their lightmaps resolution in blender up to 4096 px. I have already changed the resolution of the landscape to 5. I think that it might be caused by the branches (because of their count - it’s 1k). When I turn on the Stationary Lighting, everything is fine. Maybe there’s a way to ‘bake’ the lightmap used for the stationary lighting and use it as the lightmap for the static lighting?  
Statically Lit Tree:

 ![237154-treestaticl1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/f/2/4f2b942fd75ff6328366d37f253f0ce54931c328.png)

 ![237155-treestaticl2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/9/639317df606f963a37c2284f48ea6dae7d07c1f3.png)

Stationary Lit Tree:

 ![237157-treestationaryl1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/4/2e4ee2d95acbde0e0e9997a20a1df7dc18755ab7.png)

 ![237158-treestationaryl2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/c/d5cf0f61b4e6c62a3de4d58b4aa26b1b865043eb.png)

I’d like to add that the objects in my texture UV are overlapping, because branches are then easier to texture, similarly to the other objects, but I think that it shouldn’t matter if I have external lightmap also? I have checked not to auto generate lightmaps and not have any errors with overlapping UVs.  
LightmapUV:

 ![237167-lightmapuv.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/3/1535dddfa543fac755d6376078f61d58ee2e0207.png)

Thanks in advance for the help!

---

<div class="post-metadata">

**Author:** ![xSheim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xSheim](https://forums.unrealengine.com/u/xSheim)\
**Post date:** [April 11, 2018, 7:10pm UTC](https://forums.unrealengine.com/t/importing-tree-from-blender-gives-me-working-leaves-but-a-black-trunk/341358/6 "2018-04-11T19:10:19Z")

</div>

I have noticed that there’s also a parameter for the lightmap resolution inside Unreal. After setting it from 16 to 2k, everything is better, but the tree is still much darker that the stationary lit one. Anyway isn’t it too much for a foliage tree? Tried also 512 - odd look.

 ![237168-lightmaphighres.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/9/b69b0c2ca48df8f3fe76b3a3907a8f262300189e.png)
