# Number of vertices in the scene before and after the export to babylon format

**URL:** <https://forum.babylonjs.com/t/number-of-vertices-in-the-scene-before-and-after-the-export-to-babylon-format/3271>\
**Category:** Questions\
**Created:** [May 16, 2019, 6:28pm UTC](https://forum.babylonjs.com/t/number-of-vertices-in-the-scene-before-and-after-the-export-to-babylon-format/3271 "2019-05-16T18:28:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nogalo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nogalo/32/120_2.png) [@nogalo](https://forum.babylonjs.com/u/nogalo)\
**Post date:** [May 16, 2019, 6:28pm UTC](https://forum.babylonjs.com/t/number-of-vertices-in-the-scene-before-and-after-the-export-to-babylon-format/3271/1 "2019-05-16T18:28:39Z")

</div>

Hi.

I wanted to ask this for some time. In this case I have a scene in the 3dsMax which says that there is 413000 vertices in the scene. After the export, the inspector says that there are 2.3 million vertices in the scene.

So I am wondering why is the difference so drastic. What is going on in between.

---

<div class="post-metadata">

**Author:** ![syntheticmagus](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/syntheticmagus/32/395_2.png) [@syntheticmagus](https://forum.babylonjs.com/u/syntheticmagus)\
**Post date:** [May 17, 2019, 5:15pm UTC](https://forum.babylonjs.com/t/number-of-vertices-in-the-scene-before-and-after-the-export-to-babylon-format/3271/2 "2019-05-17T17:15:34Z")

</div>

Hi nogalo,

Interesting, that seems like a strange number. Do you have a Playground that shows the problem? It’s much easier to diagnose issues and test solutions that way. 🙂

This sounds like it might be an importer question, though. @Drigax, have you seen something like this before?

---

<div class="post-metadata">

**Author:** ![Drigax](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/drigax/32/16585_2.png) [@Drigax](https://forum.babylonjs.com/u/Drigax)\
**Post date:** [May 17, 2019, 5:29pm UTC](https://forum.babylonjs.com/t/number-of-vertices-in-the-scene-before-and-after-the-export-to-babylon-format/3271/3 "2019-05-17T17:29:03Z")

</div>

~~This doesn’t seem like a known issue off the top of my head, but I usually don’t work with high poly test scenes, so I never noticed this personally.~~

Now that I think about it, we have noticed a drastic increase in export file size, and it would be good to pinpoint what may be contributing to this.

Do you know if the face count is consistent between max scene/babylon export? we may be duplicating vertices for each exported face, but this is just a hunch.

@nogalo if you can upload a test .max scene and .babylon that reproduces this issue, I’d be more than happy to take a deep look into it soon as I get the bandwidth, most likely within 2 weeks 🙂.

---

<div class="post-metadata">

**Author:** ![nogalo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nogalo/32/120_2.png) [@nogalo](https://forum.babylonjs.com/u/nogalo)\
**Post date:** [May 17, 2019, 5:57pm UTC](https://forum.babylonjs.com/t/number-of-vertices-in-the-scene-before-and-after-the-export-to-babylon-format/3271/4 "2019-05-17T17:57:42Z")

</div>

Hi. I’ve created a test scene for this. This scene in 3dsMax has 9339 (except if 3dsMax is lying to me). And you can see that in the babylon scene (link bellow) it has 54900. Which is kinda insane increase. I thought it was maybe due the triangulation of the mesh during the export process, but I am not sure that should make a difference, especially not this drastic.

[https://playground.babylonjs.com/#SQUZ9W](https://playground.babylonjs.com/#SQUZ9W)

Here is a link to the files (max, babylon);

> **[test.rar (422.29KB) - SendSpace.com](https://www.sendspace.com/file/bhjxnu)**
>
> Send, Receive, Track & Share Your Big Files with SendSpace file sharing!

---

<div class="post-metadata">

**Author:** ![nogalo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nogalo/32/120_2.png) [@nogalo](https://forum.babylonjs.com/u/nogalo)\
**Post date:** [May 17, 2019, 6:02pm UTC](https://forum.babylonjs.com/t/number-of-vertices-in-the-scene-before-and-after-the-export-to-babylon-format/3271/5 "2019-05-17T18:02:19Z")

</div>

[https://playground.babylonjs.com/#SQUZ9W#1](https://playground.babylonjs.com/#SQUZ9W#1)

I’ve simplified things completely and I’ve just put a single cube in the scene (which has 8 vertices, which normal cube suppose to have); You can see there are 36 vertices in the playground after import;

Also you can see that indeed the face count has doubled on the cube. 12 instead of 6

---

<div class="post-metadata">

**Author:** ![MarianG](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mariang/32/138_2.png) [@MarianG](https://forum.babylonjs.com/u/MarianG)\
**Post date:** [May 17, 2019, 6:08pm UTC](https://forum.babylonjs.com/t/number-of-vertices-in-the-scene-before-and-after-the-export-to-babylon-format/3271/6 "2019-05-17T18:08:29Z")

</div>

[Here](http://www.html5gamedevs.com/topic/19677-3ds-max-exporting-three-times-the-number-of-vertices/) is an old answer related to the same issue

---

<div class="post-metadata">

**Author:** ![nogalo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nogalo/32/120_2.png) [@nogalo](https://forum.babylonjs.com/u/nogalo)\
**Post date:** [May 17, 2019, 7:51pm UTC](https://forum.babylonjs.com/t/number-of-vertices-in-the-scene-before-and-after-the-export-to-babylon-format/3271/7 "2019-05-17T19:51:40Z")

</div>

Okay. So that’s how it’s suppose to be. I will mark @MarianG as a solution, because that pretty much answers the question. Thanks

---

<div class="post-metadata">

**Author:** ![Drigax](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/drigax/32/16585_2.png) [@Drigax](https://forum.babylonjs.com/u/Drigax)\
**Post date:** [May 20, 2019, 2:19pm UTC](https://forum.babylonjs.com/t/number-of-vertices-in-the-scene-before-and-after-the-export-to-babylon-format/3271/8 "2019-05-20T14:19:30Z")

</div>

Thanks for the help @MarianG!
