Bogus vert count for test scene

I have found that some of my vert/tri counts have been off so I created the basic Unity cube with a single Camera, no lights, and a simple flat shader but it read 24 verts and 32 tris… I also tried a basic cube made in Maya and it showed the same stats even though in Maya it shows 8/12 (as it should).

I tried other larger models and they were also off but not in any sort of linear manner that I could see.

Am I missing something? Does this have something to do with the dynamic batching?

modelling programs don’t necesarily show the correct data as they treat multiple vertices in the same position just with distinct uv coordinates or normals as 1 although they can not be stored in one technically at all

It should show 24/12 (and does in Unity 2.6.1). You can’t have 8 vertices for a cube, because the vertices need to be split for the hard edges, so 4 vertices per face x 6 faces = 24. Not sure where the 32 tris are coming from in Unity iPhone though.

(Well, technically you can get 8/12 in Unity by setting the smoothing angle of the cube mesh to 180 with calculate normals on, but the lighting will be quite messed up without those hard edges. It can be correct for some objects not to have hard edges, like a sphere, but that doesn’t work too well for cubes…)

–Eric

Do you guys have any maxscript or Mel script, so we could see the total vertex count and tri count as they should be on the GPU?
Thanks!

Unity iPhone 1.5.1 shows exactly what GPU gets

Thanks, I’ve seen that, but it would be really helpful if we also had this info when modeling the geometry in the 3D apps.

kick the modeling app dev if they could fix up their output to show the real data, not the fictive render time data (because what they send is equal to the stuff on the iphone more or less, the majority of the rendering oriented apps just don’t care about it)