App crashing on iphone
5 posters
App crashing on iphone
Is there a limit to how many polys the iphone can load in a scene? I've got a scene with 12,000 faces that runs fine in the simulator (after about 5 seconds of loading), but when I run it on my iphone it says loading for like two minutes and then crashes. When I get rid of the object that has most of the polys, it loads properly.
Many, many thanks!
Many, many thanks!
samson- Posts : 27
Join date : 2008-11-29
Re: App crashing on iphone
Sio2interactive recommends 6,000 max. How many are you running once you get rid of the poly hog object and it works? More than 6,000?
Jonathan
Jonathan
JonPru- Posts : 16
Join date : 2008-11-14
Re: App crashing on iphone
I think the problem might have been that the poly hog was also being used as a static collider, and that was proving too much to load.
samson- Posts : 27
Join date : 2008-11-29
Re: App crashing on iphone
JonPru wrote:Sio2interactive recommends 6,000 max. How many are you running once you get rid of the poly hog object and it works? More than 6,000?
Jonathan
Is this true? My app crash at startup if I have more than ca 6000 triangles with texture or vertex paint, on a iPod touch 1G, version 1.3.3 btw. Cant the device take more? My game needs levels with maybe 100 000+ triangles, is this possible?
oioioi- Posts : 136
Join date : 2008-12-02
Location : Norway
Re: App crashing on iphone
No.
Personally I try to stay under 4000.
100,000 just ain't gonna happen. You need to get creative :-)
Low-poly modeling is an art unto itself. Google the "primitive up" method.
-j
Personally I try to stay under 4000.
100,000 just ain't gonna happen. You need to get creative :-)
Low-poly modeling is an art unto itself. Google the "primitive up" method.
-j
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Re: App crashing on iphone
In my game a penguin slide down a snow track, don't think creativity help here . This just need lots of triangles. Any tips? My game looks a bit like this:
Any chance of making something like this?
Any chance of making something like this?
oioioi- Posts : 136
Join date : 2008-12-02
Location : Norway
Re: App crashing on iphone
You can definitely do that within the triangle limits. It might not look quite as nice, but it can still look good.
I would open Maya and get to work with the polygon sculpt tool.
Best,
-j
I would open Maya and get to work with the polygon sculpt tool.
Best,
-j
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Re: App crashing on iphone
6k per FOV is a good limit when you are using lights & physic & animation & OGG playback, however with the latest SIO2 the limit can be raised up to 10k (I personally test near 15k with 2 threads, and the FPS was around 40)... but of course it ALWAYS depends what you are doing...
Re: App crashing on iphone
You can also optimize it by using a paged (tiled) terrain.
Best,
-j
Best,
-j
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Re: App crashing on iphone
hmmmm, Maya is 2000$+, right?
What is paged terrain? Can find any thing with google
What is paged terrain? Can find any thing with google
oioioi- Posts : 136
Join date : 2008-12-02
Location : Norway
Re: App crashing on iphone
What I would do is create 2 terrain:
1st: Low res of the terrain that you tag as ghost and static triangle mesh, Bullet have better performance using large triangle mesh than multiple small ones.
2nd: High res terrain that I would cut into stripes so there's always a limited amount of triangles that are displayed on screen. Make sure that the camera cend is just the good distance so you'll be able to "control" the number of triangles displayed. If you have curve you can also use simple geometry that are tagged as ghost that you use for primary clipping, think like a big box that if the box is visible then you check if what inside that box is visible. It is fairly easy to implement using SIO2 to create your own clipping hierarchy.
1st: Low res of the terrain that you tag as ghost and static triangle mesh, Bullet have better performance using large triangle mesh than multiple small ones.
2nd: High res terrain that I would cut into stripes so there's always a limited amount of triangles that are displayed on screen. Make sure that the camera cend is just the good distance so you'll be able to "control" the number of triangles displayed. If you have curve you can also use simple geometry that are tagged as ghost that you use for primary clipping, think like a big box that if the box is visible then you check if what inside that box is visible. It is fairly easy to implement using SIO2 to create your own clipping hierarchy.
Re: App crashing on iphone
Thanks a lot!
Now I got confused about the triangle number, again. 6k is loaded at once or draw each frame?
Now I got confused about the triangle number, again. 6k is loaded at once or draw each frame?
oioioi- Posts : 136
Join date : 2008-12-02
Location : Norway
Re: App crashing on iphone
Draw each frame... not the total number in your scene... and like I said you can even go up that depending on what you are doing like in your case a racing game... you can blow that 6k big time at least twice...
Re: App crashing on iphone
hehe, I thought it was per scene
oioioi- Posts : 136
Join date : 2008-12-02
Location : Norway
Similar topics
» Tutorial04 porblem
» BAD ACCESS crashing on App Loading
» Textures-related crashing (putpkt: write failed: Broken pipe)
» Lua and the iPhone SDK
» iPhone 3D CPU & Bus Speed
» BAD ACCESS crashing on App Loading
» Textures-related crashing (putpkt: write failed: Broken pipe)
» Lua and the iPhone SDK
» iPhone 3D CPU & Bus Speed
Permissions in this forum:
You cannot reply to topics in this forum