Iphone game upload issue. (i'm a newbie)

Hey there.

I am having some issues with uploading my simplistic game to the iPhone. I am just learning the ropes of how game development works but I have yet to make it work.

I’ve just finished a project, that I have written a control script for and it seems to work perfectly with the remote app when editing inside unity. However once I build and run my game, it uploads it to the device and runs it just like any other application, but with one major flaw. Once the unity logo goes away, I’m left with a distorted and static image of my game.

I’ve tried this both on the 3G and on a touch but with no luck. Is this some sort of rendering problem? or is there some settings I need to change? and most importantly, how can I fix it!?!?

help me out please.


172304--6190--$photo_140.jpg

looks a bit like a clip plane thing there.

Did you ensure to enforce iphone emulation in the graphics settings?

All that is different now is that I can see a bit more of the blue background, but still no luck. :x

anything else anyone can suggest please?

Looks like depth (z) buffer inaccuracies. Z-buffer precision is determined by the ratio of your far and near camera planes, so try changing your near and far values on your camera. Basically, bring your far clip plane in some (esp if you don’t need it all the way out at 1000) and push your near plane out a bit…

here is a lengthy discussion on z-buffer accuracy calculations

http://www.sjbaker.org/steve/omniv/love_your_z_buffer.html

I’m guessing the iphone has 16bit z-buffer, but your computer probably has 32bit, thus the difference.

-jdm