Help ! app crashes continously at startup

Hello, I successfully got around creating my first level for my 3d game for the iPhone. It was working perfectly on the Unity Remote. however when i did build and run the application crashed after showing the made with unity screen. This is my first 3d Game ever and i dont know what to do to make it work. Please Help :!:

PS - I have attached the highest stats during my test

173143--6216--$picture_18_124.png

also the 3d model was purchased for its low polygon count.

There’s no way that’s going to run on an iPhone, not even close. The reason it runs in Unity Remote is because it’s running on the computer, which is far more powerful than an iPhone. You’re going to have to massively reduce everything: draw calls < 30, not 576, vertices < 10K, not 540K, reduce texture memory usage, etc. I’d strongly recommend reading up on the device and its limitations.

–Eric

thanks for the reply … ive spent A LOT on these models :smile: is there anyways of using them on the iPhone ??? played around with textures a bit as in many models with the same texture placed together it dropped the draw call to 200 what else can i do ??? if i remove the texture all together will it reduce the draw calls ??? Thanks a lot for all your help

I don’t know…can you get the number of vertices to around 10K or below? If not, then no, you can’t really use them.

Have fewer objects, or wait until Unity 1.1 is released, which will have dynamic batching for objects with few polygons.

No. You need to make the textures way smaller though, since you completely maxed out the VRAM, which is probably what’s crashing.

–Eric

oh my…5xx draw calls…on the iphone…That’s too hot.
With that, you might want to start looking at maybe making that game more of a web thing cuz you’ll kill any iphne (even the new one, and 2 future genereations) with that.

Are the models all buildings? (Is that the 3dRT city set? ) If so you should be able to reduce the polys without a huge impact on the look.

Are there places where you could try occlusion culling? (Which I know nothing about, except what I’ve read in the docs.)

yes they are buildings but not the 3drt ones. Have purchased it from http://www.turbosquid.com/3d-models/city-updated-3d-3ds/327318 i am completely new to game development. I have managed to get the draw calls considerably down by making all the buildings same.
draw calls are down to 196, tris-22.9k and verts 38.1k any way else i can get these down to so i can run it in any of the current gen iphones ?

Look around the forum for a mesh combine script. Might help you drop drawcalls considerably. Even better, combine the whole city into one giant mesh in your 3d program (3ds max recommended for that one)…but we’re still looking at some pretty ungodly verts/polys there.

Typically on any mobile platform, you should start with basic games first to get a feel of its capabilities. A city-scope game on a mobile platform for someone of your level might be too much of a stretch for now (you’ll get there).

I believe you can pull this off with enough of an understand in model optimization(or simple poly reduce), occlusion culling, etc and come up with something that’s actually playable of that magnitude…but i recommend starting with some minor projects first to build up awareness in these areas first or you’ll find yourself hitting lots of brick walls that you find you then have to waste time backtracking and re-designing because you didn’t have “the fundamentals”. I can honestly say it’s been an interesting journey of knowledge for me personally. Guys on here are pretty helpful.

And I love unity because you have no limit on the number of projects you can publish with it so do a small/training/sellable project. And when you know sme of the ins and outs, Your big project will be waiting for you and you’ll “do it right”.

turbosquid is about the worst place to buy models for games in general and a total no go for iPhone assets likely.

Turbosquid models are targeted at rendering primarily, “low” there normally means 20k - 50k polygons which is high to ultra high for games on pc and completely impossible for the iphone.

i had seen the link on one of the forum topics for getting models for games so i bought it thinking itll work. Thanks anyways.

Ps- which is the place you suggest to buy 3d models for games particularly iPhone ???

Nowhere actually if you mean “buy, drag and drop”

Game models for the iphone require normally very situation and game specific optimizations to offer the best performance while still be able to offer the desired quality.

As such you will have them to be done on a per game base.

What you can do is visit the common “game model sellers” (arteria, 3drt, …) and buy models there to use them as base for your project specific models.

thanks…