# The CreatePolyhedron method yields different results on different devices

**URL:** https://forum.babylonjs.com/t/the-createpolyhedron-method-yields-different-results-on-different-devices/42314
**Category:** Questions
**Tags:** mesh
**Created:** [July 11, 2023, 3:23am UTC](https://forum.babylonjs.com/t/the-createpolyhedron-method-yields-different-results-on-different-devices/42314 "2023-07-11T03:23:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lk\_Aierk](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/lk_aierk/32/10323_2.png) [@lk\_Aierk](https://forum.babylonjs.com/u/lk_Aierk)
#### Post date: [July 11, 2023, 3:23am UTC](https://forum.babylonjs.com/t/the-createpolyhedron-method-yields-different-results-on-different-devices/42314/1 "2023-07-11T03:23:20Z")

</div>

Hi everyone  
I have some vertex data, and I use the **CreatePolyhedron** method to render them. However, there is a problem with the rendering result. At first, I thought it was caused by the vertices not being sorted clockwise or counterclockwise. But on my colleague’s computer, there is no such problem.

One thing that must be mentioned is that on my Windows device, there are problems with Chrome, Edge, and Firefox, while my colleague’s device has no problems with Edge and Safari.

### my computer

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/c/d/cdc8762e1bcf21631ce91b3d4dd55492d77b5aa0.png)

### colleague’s computer

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/f/c/fc7cadf96661704ebc122a04f16f125c468d9d1f.png)

* * *

I uploaded the simple code to [Playground](https://playground.babylonjs.com/#GUHWFP),Hope someone can answer this question.My English is not very good, so I used AI for translation. hope you can understand the translation result.  
Thank

---

<div class="post-metadata">

### Author: ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)
#### Post date: [July 11, 2023, 8:52am UTC](https://forum.babylonjs.com/t/the-createpolyhedron-method-yields-different-results-on-different-devices/42314/2 "2023-07-11T08:52:36Z")

</div>

There’s a lot of flickering when moving the camera because of the large coordinates your are using, and it’s a bit hard to know if the problem comes from this or from something else. So, I have updated the PG to translate everything so that coordinates are smaller:

> **[Babylon.js Playground](https://playground.babylonjs.com/#GUHWFP%231)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

You can also use the [floating origin trick](https://doc.babylonjs.com/features/featuresDeepDive/scene/floating_origin) if you really need to work with large coordinates.

I do have the same rendering than you with this PG:

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/e/0/e06a4de1cf01b64a754c5d26b75f8b3b3c6c4a13.png)

Same thing with Chrome, Edge and Firefox. I would advice to remove everything from the definition of your polyhedron except for the bits that correspond to that part of the wall and see if you can find the problem that way.

I don’t really understand why your colleague has a different rendering, though…
