# Blender to babylon Vertex and Indices Count

**URL:** <https://forum.babylonjs.com/t/blender-to-babylon-vertex-and-indices-count/25505>\
**Category:** Questions\
**Created:** [November 23, 2021, 1:03pm UTC](https://forum.babylonjs.com/t/blender-to-babylon-vertex-and-indices-count/25505 "2021-11-23T13:03:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![poetoem](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@poetoem](https://forum.babylonjs.com/u/poetoem)\
**Post date:** [November 23, 2021, 1:03pm UTC](https://forum.babylonjs.com/t/blender-to-babylon-vertex-and-indices-count/25505/1 "2021-11-23T13:03:39Z")

</div>

Hey guys,

I am optimizing a relatively complex mesh.  
What dazzles me is the difference in vertex counts in Blender and Babylon as well as active indices.

Right now I am at:  
Left Blender, Right Babylon:  
Vertex: 47,944 / 106,172  
Faces: 41,924 / 102306  
Active Indices: - / 306918

What can I do to improve this? Or is this normal behaviour?  
Values are taken from the sandbox!

Thanks so much for any help!  
Best regards!

Edit:  
I guess faces could be down to Triangulation. But is that doubling the vert count?

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [November 23, 2021, 2:01pm UTC](https://forum.babylonjs.com/t/blender-to-babylon-vertex-and-indices-count/25505/2 "2021-11-23T14:01:46Z")

</div>

I think that happens because of some default setting on the sandbox, like showing reflections. @RaananW is that it?

---

<div class="post-metadata">

**Author:** ![poetoem](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@poetoem](https://forum.babylonjs.com/u/poetoem)\
**Post date:** [November 23, 2021, 3:54pm UTC](https://forum.babylonjs.com/t/blender-to-babylon-vertex-and-indices-count/25505/3 "2021-11-23T15:54:08Z")

</div>

Okay, because this is bugging me…

A Blender standard Cube exported as glb has 24 Vertecies inside babylon? So triple?  
12 face - double?

Isn’t this rather inefficient? Can I improve on this somehow?

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [November 23, 2021, 4:00pm UTC](https://forum.babylonjs.com/t/blender-to-babylon-vertex-and-indices-count/25505/4 "2021-11-23T16:00:59Z")

</div>

do you see the same in other viewers ? cause it might simply be related to how blender is exporting its data ?

---

<div class="post-metadata">

**Author:** ![Vinc3r](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vinc3r/32/25340_2.png) [@Vinc3r](https://forum.babylonjs.com/u/Vinc3r)\
**Post date:** [November 23, 2021, 4:09pm UTC](https://forum.babylonjs.com/t/blender-to-babylon-vertex-and-indices-count/25505/5 "2021-11-23T16:09:02Z")

</div>

Polycount-way-of-calculation differs from 3D engines/software, it depends about the needs of users I guess.

First, here a basic difference:  
[![](https://i.imgur.com/mufkoOj.png) ](https://i.imgur.com/mufkoOj.png)  
Blender will count 8 vertices no matter if the cube is flat shaded or not, but a 3D engine will take into account vertex normals, so a flat cube with 8 vertices will become a 24 vertices one when smooth-shaded but with autosmooth enabled ([I made a Blender addon](https://github.com/Vinc3r/Polycount) to get a more accurate polycount - but not enough sufficient until I take the time to do some maths… could be long).

You will also have UV coords which are probably count in the Inspector Stats tab, and maybe some other properties that I can’t remember right now.

By the way, talking about my addon, I’ve tried to compare between some software what polycount is shown for the same object, [here the results](https://github.com/Vinc3r/Polycount/blob/master/_testFiles_/_comparisons_.md) so far that I still don’t explain 😂

---

<div class="post-metadata">

**Author:** ![poetoem](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@poetoem](https://forum.babylonjs.com/u/poetoem)\
**Post date:** [November 23, 2021, 4:14pm UTC](https://forum.babylonjs.com/t/blender-to-babylon-vertex-and-indices-count/25505/6 "2021-11-23T16:14:46Z")

</div>

Ah okay thanks!

So I don’t export anything stupid. It’s just a calculation thing!  
That clarifies a lot. Thank you!

---

<div class="post-metadata">

**Author:** ![JCPalmer](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jcpalmer/32/42_2.png) [@JCPalmer](https://forum.babylonjs.com/u/JCPalmer)\
**Post date:** [November 23, 2021, 5:27pm UTC](https://forum.babylonjs.com/t/blender-to-babylon-vertex-and-indices-count/25505/7 "2021-11-23T17:27:35Z")

</div>

Triangles are triangles. While that might be just a touch obvious, it does not matter whether flat or smooth. Blender can also have lines, quads, and more. Everybody has triangles. Vertices can also be different in Blender & BJS due to multi-materials. Border vert in BJS are doubled up, while not in Blender.

So in Blender, I just look at the triangles. It will be equal to the size of `Mesh.indices() / 3`. I never even bother to look in BJS, because it has this thing for vertices. This whole `totalVertices()` in BJS is kind of irrelevant. This is the reason in the log & csv files of the .babylon exporter I now report in triangles.
