# display objects in right-hand coordinate system

**URL:** <https://forums.unrealengine.com/t/display-objects-in-right-hand-coordinate-system/530247>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [April 16, 2022, 6:57am UTC](https://forums.unrealengine.com/t/display-objects-in-right-hand-coordinate-system/530247 "2022-04-16T06:57:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ultrafrog2012](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ultrafrog2012](https://forums.unrealengine.com/u/ultrafrog2012)\
**Post date:** [April 16, 2022, 6:57am UTC](https://forums.unrealengine.com/t/display-objects-in-right-hand-coordinate-system/530247/1 "2022-04-16T06:57:02Z")

</div>

I am working on a runtime mesh loader using Assimp. My meshes are rendered fine with this code

```auto
    vertex.X = vertexT.x * 100.f;
    vertex.Y = vertexT.y * 100.f;
    vertex.Z = vertexT.z * 100.f;

    normal.X = normalT.x;
    normal.Y = normalT.y;
    normal.Z = normalT.z;

```

vertexT is the vertex from Assimp and vertex is fed to an instance of UProceduralMeshComponent.

However, I want to display all objects in a right-hand coordinate frame. So I tried this

```auto
    vertex.X = vertexT.x * 100.f;
    vertex.Y = -vertexT.y * 100.f;
    vertex.Z = vertexT.z * 100.f;

    normal.X = normalT.x;
    normal.Y = -normalT.y;
    normal.Z = normalT.z;

```

The vertex positions seem fine but the normal vectors are all wrong. I only see black surfaces.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/9/db966b8782a72a2c290a74d23bc10f2b546d10c3.jpeg)

What is a proper way to transform the normal? Is there a way to let unreal recompute the normal automatically with UProceduralMeshComponent?

---

<div class="post-metadata">

**Author:** ![ultrafrog2012](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ultrafrog2012](https://forums.unrealengine.com/u/ultrafrog2012)\
**Post date:** [April 17, 2022, 2:19am UTC](https://forums.unrealengine.com/t/display-objects-in-right-hand-coordinate-system/530247/2 "2022-04-17T02:19:22Z")

</div>

the issue was the index buffer. The order had to be reversed
