Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by welsh · Jul 19, 2012 at 12:56 AM · cameraiosgraphicsprojection

Graphics Problems on iOS 4.x

Hi All

I've been developing a game on iOS 5.1, everything works as expected. However, when I run the exact same ipa on a device with iOS 4.x installed there are major issues with the graphics. It looks like some elements of the scene are being projected onto the ground plane instead of rendering properly within the scene. It's hard to determine exactly what's happening because I can't see the draw call pipeline on iOS 4.x. Looking at the warnings/errors in the Xcode GPU analytics, I can see there are loads of "Use of Unlinked Program" errors (52,000 of them in the first 10 seconds of boot) and a fair few "Draw Call Exceeded Element Array Buffer Bounds" errors (7,000 in the same period). On iOS 5.x I don't get errors for unlinked programs but I do still get the element array buffer bounds one thrown up to a much lesser extent (1,000 in roughly the same period). I'm just wondering if anybody else has encountered this? If I swap to an orthographic camera it renders everything consistently between the iOS versions (i.e. iOS version doesn't affect what gets displayed). Seems very strange that the same device with an older iOS would break the graphics....Note, I'm using Unity Pro 3.5.3, targeting iOS 4.1 with the latest SDK 5.1 to build the app.

Cheers Alan.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by welsh · Jul 19, 2012 at 10:03 AM

Hi All

OK I found the problem, here's an outline in-case anybody else encounters it;

For reasons I am unable to explain, iOS 4.x cannot handle "fixed" element types in the shader parameters. This may be limited to the fragment shader inputs (I can't be sure as I changed fragment after vertex and it worked). I've no idea how or why iOS 5.x is able to deal with them when it is utilizing the same GPU but changing them from "fixed" or "fixed4" etc. to their "half" equivalents fixed the issue instantly.

Cheers Alan.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by welsh · Jul 19, 2012 at 10:03 AM

Also note that changing the element type from "fixed" to "half" has noticeably hurt frame rate on lower spec devices [sigh].

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Multiple cameras not working correctly on iPad Air 0 Answers

How to make skybox transparent. 2 Answers

camera move(slide) continiously on IOS 1 Answer

Sun-shaft camera glitch 0 Answers

Camera / Graphic bug with 2D Sprites [Please help me solve this] 4 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges