# UBX\_ from Blender to UE4

**URL:** <https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** unreal-engine, Performance, Performance-Profiling, UE4-27\
**Created:** [January 9, 2022, 10:47pm UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279 "2022-01-09T22:47:57Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![phil123456](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil123456](https://forums.unrealengine.com/u/phil123456)\
**Post date:** [January 10, 2022, 1:53pm UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279/21 "2022-01-10T13:53:31Z")

</div>

ok it works with your blend file, I re exported the fbx

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/0/4084886975b85c899a74c3daedb5f504cb21fbb4.jpeg)

now I gotta figure out why my model is not working 🙂

I am gonna restart from scratch

thx Limanima

---

<div class="post-metadata">

**Author:** ![Limanima](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/limanima/32/248560_2.png) [@Limanima](https://forums.unrealengine.com/u/Limanima)\
**Post date:** [January 10, 2022, 1:54pm UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279/22 "2022-01-10T13:54:40Z")

</div>

You don´t have a skeletal do you?

---

<div class="post-metadata">

**Author:** ![phil123456](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil123456](https://forums.unrealengine.com/u/phil123456)\
**Post date:** [January 10, 2022, 1:55pm UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279/23 "2022-01-10T13:55:42Z")

</div>

I got many things in my blend, I also got linked blend files with skeletals

but I only export the select nodes

![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/0/f07ce05a7938846cc43eef5eab2505b90c65b9ee.png)

---

<div class="post-metadata">

**Author:** ![Limanima](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/limanima/32/248560_2.png) [@Limanima](https://forums.unrealengine.com/u/Limanima)\
**Post date:** [January 10, 2022, 2:01pm UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279/24 "2022-01-10T14:01:20Z")

</div>

If you want send me the blend file and I’ll check it.  
Edit:  
Not sure if it can start with “\_00”

---

<div class="post-metadata">

**Author:** ![phil123456](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil123456](https://forums.unrealengine.com/u/phil123456)\
**Post date:** [January 10, 2022, 2:12pm UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279/25 "2022-01-10T14:12:29Z")

</div>

[test2.blend](https://forums.unrealengine.com/uploads/short-url/y3qNzHzjERvGPhXM6pj4RcMIuRj.blend) (925.3 KB)  
here you go

---

<div class="post-metadata">

**Author:** ![JoSf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoSf](https://forums.unrealengine.com/u/JoSf)\
**Post date:** [January 10, 2022, 2:15pm UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279/26 "2022-01-10T14:15:10Z")

</div>

It does, you can even import only a single collision mesh with \_00

---

<div class="post-metadata">

**Author:** ![phil123456](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil123456](https://forums.unrealengine.com/u/phil123456)\
**Post date:** [January 10, 2022, 2:16pm UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279/27 "2022-01-10T14:16:14Z")

</div>

yeah I tried 00-\>01 , same problem anyway

I simplified my blend

juste one mesh, its 4 collisions, removed everything else

it still regenerates the collision instead of using mine ☹

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/2/8238e8696fe7f53d055385fcab88e3ecf821f232.jpeg)

---

<div class="post-metadata">

**Author:** ![Limanima](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/limanima/32/248560_2.png) [@Limanima](https://forums.unrealengine.com/u/Limanima)\
**Post date:** [January 10, 2022, 2:23pm UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279/28 "2022-01-10T14:23:01Z")

</div>

The problem is that your boxes are not really boxes, so you have to export with UCX:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/8/68eaad1f31d4428768ba86c77e59efcfba61ee3f.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/4/74eda90c3e58fcf78309e168d7dfbfe32dc3ac52.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/9/69b9363231ad36547d79a4714642ed6c8129ec4f.jpeg)

---

<div class="post-metadata">

**Author:** ![JoSf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoSf](https://forums.unrealengine.com/u/JoSf)\
**Post date:** [January 10, 2022, 2:27pm UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279/29 "2022-01-10T14:27:42Z")

</div>

It’s kind of weird, now that I look at the documentation, it states UBX would be a rectangular prism, which that definitely is, but I do remember testing it some time ago and basically anything but an uniformly scaled box would get rejected. Even the documentation with the lollipop example uses UCX for something that is a rectangular prism.

EDIT: Ah, now I get it! You cannot move the vertices around in any way even if it remains a rectangular prism, but you can scale it non-uniformly, as long as it is a rectangular prism. So therefore even the lollipop box in the example could be UBX. Great, I’ve been using UCX so far for a lot of collision meshes that could be UBX, though I don’t know how much of a performance difference that makes. I’d assume UBX is somewhat lighter.

Therefore, you’re fine using UBX as long as you’re only scaling the object in object mode. Don’t enter edit mode at all. EDIT: nvm, just keep it rectangular and it’s fine

---

<div class="post-metadata">

**Author:** ![Limanima](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/limanima/32/248560_2.png) [@Limanima](https://forums.unrealengine.com/u/Limanima)\
**Post date:** [January 10, 2022, 2:39pm UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279/30 "2022-01-10T14:39:25Z")

</div>

And I suspect if you want to rotate the box, you can’t apply rotation or else it will not be seen as a box anymore even if it’s still a box. But I’m not sure of this…

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [January 10, 2022, 2:43pm UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279/31 "2022-01-10T14:43:29Z")

</div>

… by definition, a convex hull is a parallelepiped - shrinking only one face of a box Is a parallelepiped, definitely not a box anymore.  
Same reason the tower I shared has to use UCX essentially…

You can definitely rotate the whole box and manipulate scaling however you see fit…

---

<div class="post-metadata">

**Author:** ![JoSf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoSf](https://forums.unrealengine.com/u/JoSf)\
**Post date:** [January 10, 2022, 2:43pm UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279/32 "2022-01-10T14:43:34Z")

</div>

You can rotate the box, actually, you can also move the vertices in edit mode, I guess it’s just extremely touchy about it? Not actually even sure but UBX seems to be working fine right now for me.

Just really weird that even the lollipop example uses UCX instead of UBX, I do remember having issues with UBX but testing it now it seems to work for any rectangular shape.

---

<div class="post-metadata">

**Author:** ![JoSf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoSf](https://forums.unrealengine.com/u/JoSf)\
**Post date:** [January 10, 2022, 2:48pm UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279/33 "2022-01-10T14:48:20Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/f/ff50828c095fe76af1a647ad1392a06525127634.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/c/6c70cbf5687ac561165fb70271d9cc5e4decc37e.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/f/8fe95b8c0f20c5e2ce7abbe091fcd8124d333e0d.jpeg)

/shrug

---

<div class="post-metadata">

**Author:** ![Limanima](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/limanima/32/248560_2.png) [@Limanima](https://forums.unrealengine.com/u/Limanima)\
**Post date:** [January 10, 2022, 2:49pm UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279/34 "2022-01-10T14:49:12Z")

</div>

Did you applied rotation in blender?

---

<div class="post-metadata">

**Author:** ![JoSf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoSf](https://forums.unrealengine.com/u/JoSf)\
**Post date:** [January 10, 2022, 2:52pm UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279/35 "2022-01-10T14:52:41Z")

</div>

[test.blend](https://forums.unrealengine.com/uploads/short-url/oJC5w2GTHQnEA8RbTtBteApdck0.blend) (796.6 KB)

This is the .blend file.

---

<div class="post-metadata">

**Author:** ![Limanima](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/limanima/32/248560_2.png) [@Limanima](https://forums.unrealengine.com/u/Limanima)\
**Post date:** [January 10, 2022, 2:56pm UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279/36 "2022-01-10T14:56:52Z")

</div>

Yes you did, so rotate the boxes is not a problem.

---

<div class="post-metadata">

**Author:** ![JoSf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoSf](https://forums.unrealengine.com/u/JoSf)\
**Post date:** [January 10, 2022, 2:59pm UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279/37 "2022-01-10T14:59:41Z")

</div>

Yep. His rectangles didn’t conform to the shape, because the sides were slanted. You actually highlighted that in the small image. I somehow missed that.

I just vaguely remember testing that UBX should’ve been uniformly scaled Box, even the example uses UCX where UBX should suffice. Turns out you don’t even need to keep the origin in the center for the box to be accepted. Not sure if it’s the engine, blender, or something that has changed since. Well, good to know at least.

---

<div class="post-metadata">

**Author:** ![phil123456](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil123456](https://forums.unrealengine.com/u/phil123456)\
**Post date:** [January 11, 2022, 12:20am UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279/38 "2022-01-11T00:20:12Z")

</div>

> [@Limanima](#):
>
> The problem is that your boxes are not really boxes, so you have to export with UCX:

it does not look like my model…besides I created blender cubes, resized them, then applied transforms

---

<div class="post-metadata">

**Author:** ![phil123456](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil123456](https://forums.unrealengine.com/u/phil123456)\
**Post date:** [January 11, 2022, 12:22am UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279/39 "2022-01-11T00:22:50Z")

</div>

wow, it does not get touchier than this

I’ll recreate the boxes

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [January 11, 2022, 6:03am UTC](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279/40 "2022-01-11T06:03:12Z")

</div>

If you want to know why it’s so touchy, open up the mesh editor, edit the collisions, select the hull, and try to manipulate the numbers of a UBX.

You can also create the ubx in engine.  
Either way, it should become clear how it works 😉

[Previous page](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279.md?page=1)

[Next page](https://forums.unrealengine.com/t/ubx-from-blender-to-ue4/271279.md?page=3)
