iPhone Unity 1.5 scene update problem? 65000 vertex limit

After updating my iPhone unity 1.03 to 1.5, my project was upgraded.

After playing my scene, I now receive an error (multiple times) that reads:
Failed setting triangles. Some indices are referencing out of bounds vertices.
UnityEditor.PostprocessScene:Postprocess() (at /Users/build/builds/unity-iphone/iphone/Editor/Mono/PostprocessScene.cs:16)

[/Users/build/builds/unity-iphone/iphone/Projects/…/Runtime/Filters/Mesh/LodMesh.cpp line 686]

The result being that none of my static buildings display any more. Actually, they’re static, I wonder unchecking static will remove the problem. Will try that.

I assume this is related to the 65000 vertex limit per mesh. I could be wrong.

Thing is, none of my meshes are that large, generally around 2000 vertices max (when I do mesh info).

If I select all objects in the scene, mesh info says it’s about 21,000 vertices.

Curiously the runtime stats HUD in the game view says there are 81k vertices.

Is unity tessellating things without me knowing? Even then a single mesh wouldn’t exceed the limit.

My geometry has not changed since version 1.03, so I assume the upgrade has caused this problem? Or else it is no longer handling a situation that it quietly handled before.

Thanks,
Matt.

Right.
Now that I’ve had sufficient wine, here’s the situation.

My buildings etc. were marked as static which is something that worked just fine in the previous versions of iPhone Unity basic.
My understanding was that there were optimisations that could be made (I assume there’s a bunch of processing that isn’t required if an object isn’t moving).

However, since updating to 1.5, static appears to mean something else now. My static meshes now don’t get rendered runtime and produce the 65000 vertex error (despite the geometry not exceeding this limit). Unfortunately it doesn’t specify the offending meshes.

Anyhow, I unchecked the “static” property on these objects and now they render and don’t produce errors.

I realise that the new batching feature isn’t applied to static objects in the basic version, but does this mean there are no other optimisations that were previously performed? In that case this should be a disabled feature.

Now that I’ve removed all of the “static” settings, rather than the errors I get this warning instead:
“Geometry marked as static will not gain a performance benefit in Unity iPhone Basic. Static batching is available only with Unity iPhone Advanced license.
UnityEditor.PostprocessScene:Postprocess() (at /Users/build/builds/unity-iphone/iphone/Editor/Mono/PostprocessScene.cs:16)”
I really can’t find any geometry that’s marked static.
In fact, this warning would have been more useful earlier than than the misleading error regarding vertices.

So, I can now proceed as before with everything rendering, but should note that no objects should be marked as static withthe basic version of unity iPhone.

Other people may find this useful to know.

Regards,
Matt.

But how, I mean, how do we get rid of that warning?

All my geometry isn’t marked as static now, but I keep seeing the same warning. How do we get rid of the warning after we unchecked the static mark of the models??

Cheers!

I don’t know. I haven’t had the time to confirm, but I suspect that maybe there’s something in the standard packages that may be marked as static. Just a guess.

I posted this same post earlier to a new topic and now posting it here too.

I’m getting three errors when setting my scene objects to “static” while making occlusion culling in Unity iPhone Advanced. This is causing all static meshes to stop rendering and become invisible when hitting “play” which I believe is result of those “mesh is too large” errors. But any of those meshes does not have so much vertices. I’m using lightmaps, so does Unity count every vertex twice because of two draw calls that having a lightmap causes or what could be the reason? :?

And here are errors:

Mesh.vertices is too large. A mesh may not have more than 65000 vertices. 

Mesh.uv is out of bounds. The supplied array needs to be the same size as the Mesh.vertices array. // This error repeated 5 times. 

Failed setting triangles. Some indices are referencing out of bounds vertices.

The last posting sounds a lot like static batching is biting you in cases where parts of a surface have two UVs and others having while batching naturally expects the whole model to be consistent.

I would recommend to file a bug report with the asset

Any development about that thread? I would like to know what happened with that finally.

Are you still encountering this problem? These threads you’re digging up are from 2009. Unity iPhone has changed a lot since then.

True, but I was interested in that post because Madventurer got an error message I actually have, which is “Failed setting triangles. Some indices are referencing out of bounds vertices.”

See a related post about my problem.

Unity iPhone 1.x went out of support a year ago, you should use Unity 3 for anything near current

Which is the case. I guess Daniel is true, I shouldn’t have revived this old thread. Still, dunno if you can help me with my current problem.

Is the 65000 limit still persist on Unity 3 ?

Objects still can not have more than 65000 tris / vertices per mesh
But the bug related to static batching has been resolved (was already on 1.7 I think)