Foliage to Static Mesh

I found a bug with conversion of foliage to static mesh.

  1. Create landscape and draw some foliage on it.

  2. Right click on any foliage mesh.

  3. Select “Convert InstancedFoliageActor to Static Mesh”

  4. All objects will be in the same place. In location with zero coordinates.

But all works fine if I do next steps:

  1. Select instanced foliage actor.

  2. File → Export selected…

  3. Import this FBX file to the engine.

Hope you can fix this in the next release :slight_smile:

Hey mdeni,

Thanks for the clear and precise repro steps. I was able to confirm what you are reporting and have gone ahead and entered a bug report for the issue. You can track the report following the link below on our public issues tracker.

UE-41241

Once the issue has been addressed by our engineers the ticket will be updated and reflected in the public tracker. Let me know if you have further questions or need additional assistance.

Cheers,

I tried your solution but I ran into some problems. Maybe you want to do something different then me. But here is what I achieved with your solution: Following your solution I was successful to export the foliage objects. Now I have many different static meshes in my content view that I can manually place. But what I really want is to basically replace the foliage objects with the individual static meshes at the same position. And it would take ages to replace every single object. Is this possible with you solution to do that?

EDIT: I think I achieved what I wanted. As the newly created meshes share the same origin. So I can just import them all at one and align the origin.
But this creates a new problem. The axes of the objects lie now not a the center of the object. This is very bad, as I need that to create bounding boxes for the individual object.
So again I would be very grateful for your feedback. If you are able to split the foliage in separate objects and have the separate objects then at the same position the foliage was and also have the correct coordinate system for the objects.

Hi! There is no solution. I left static meshes and never change the foliage on this scene. :slight_smile:

There’s a quick way to convert it.

  1. Copy the level
  2. remove everything but landscape and the foliage in the level
  3. right click the level, and choose export
  4. open the fbx file you just exported with Modeling software, and delete the landscape.
  5. import the fbx into UE4 and set the material.
    Done.

I found another way inside UE 5 :

Select your foliage

  • Inside Tool > Merge Actors – merge it

It becomes separate fbx , BUT if you try to add it in scene, most probably it will be extremely heavy and your scene will freeze… and if you turn on Nanite on this fbx it will not help since Nanite struggles with small foliage (planes) type meshes.

  • But to have it exported for another soft yes that would work fine.
3 Likes

Can you please tell me how you achieved this? I am also trying to replace the foliage objects with the individual static meshes, at the same position.

You just make my day, I’m working on 5.03 and it work beautifully