# Possible to change lighting channels on foliage?

**URL:** <https://forums.unrealengine.com/t/possible-to-change-lighting-channels-on-foliage/114059>\
**Category:** UDK Content Creation and Design\
**Tags:** unreal-engine\
**Created:** [July 24, 2018, 1:01pm UTC](https://forums.unrealengine.com/t/possible-to-change-lighting-channels-on-foliage/114059 "2018-07-24T13:01:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathaniel3W](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Post date:** [July 24, 2018, 1:01pm UTC](https://forums.unrealengine.com/t/possible-to-change-lighting-channels-on-foliage/114059/1 "2018-07-24T13:01:56Z")

</div>

I have some bushes in an outdoor level placed with the foliage tool. And I have some small rocks in a cave also placed with the foliage tool. I have separate sky lights and directional lights on separate lighting channels for the static meshes in each level. But the foliage seems stuck on the static lighting channel. Is there a way to customize which channels affect foliage?

---

<div class="post-metadata">

**Author:** ![Nathaniel3W](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Post date:** [July 24, 2018, 1:02pm UTC](https://forums.unrealengine.com/t/possible-to-change-lighting-channels-on-foliage/114059/2 "2018-07-24T13:02:43Z")

</div>

And if that’s not possible, is there a way to convert placed foliage into static meshes, so that I can change the lighting channels on the static meshes without placing them all by hand?

---

<div class="post-metadata">

**Author:** ![O\_and\_N](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/o_and_n/32/731038_2.png) [@O\_and\_N](https://forums.unrealengine.com/u/O_and_N)\
**Post date:** [July 24, 2018, 8:44pm UTC](https://forums.unrealengine.com/t/possible-to-change-lighting-channels-on-foliage/114059/3 "2018-07-24T20:44:39Z")

</div>

I think you can select the foliage in the editor and export it as a fbx.Than merge in another software and reimport.But than it will be a static mesh and I’m not sure how will you go with the lightmap.(unless you attach one bone to all of the exported combined foliage and make it a skeletal mesh as those don’t need the light map channel.)

---

<div class="post-metadata">

**Author:** ![Chosker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chosker/32/710746_2.png) [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Post date:** [July 25, 2018, 5:55am UTC](https://forums.unrealengine.com/t/possible-to-change-lighting-channels-on-foliage/114059/4 "2018-07-25T05:55:48Z")

</div>

exporting the foliage as fbx would be a very bad idea 😃  
each mesh wouldn’t be a mesh by itself, but one big mesh. so huge memory impact and no occlusion/frustum culling

to convert foliage into meshes you could try running code in the editor ([https://forums.unrealengine.com/lega…rved-in-editor](https://forums.unrealengine.com/legacy-tools-unreal-engine-3-udk/udk-programming-and-unrealscript/1382418-actor-properties-set-during-the-game-preserved-in-editor)) to access the foliage instance data ([https://forums.unrealengine.com/lega…ol-performance](https://forums.unrealengine.com/legacy-tools-unreal-engine-3-udk/udk-programming-and-unrealscript/1344053-improving-the-foliage-tool-performance)) and use that to spawn actors. I’m not sure if the instance data has all the info you need and I don’t know if you can actually spawn stuff. worth a try

or maybe accessing the instance data via code allows setting lighting channels 😃

---

<div class="post-metadata">

**Author:** ![Nathaniel3W](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Post date:** [July 25, 2018, 4:03pm UTC](https://forums.unrealengine.com/t/possible-to-change-lighting-channels-on-foliage/114059/5 "2018-07-25T16:03:02Z")

</div>

Thanks very much for the information and advice both of you.

I’ll see what info I can get from the foliage instance in the editor. I knew I needed to learn that brush trick ever since I first heard you mention it. Maybe now I’ll force myself to go do it.
