Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7628779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:39:38+00:00 2026-05-31T05:39:38+00:00

I found a fix to support iPad retina display for my cocos2d game. It

  • 0

I found a fix to support iPad retina display for my cocos2d game. It was unable to display anything when I ran the game in portrait mode in the ipad retina simulator. But when I changed the default setting from kCCDirectorProjection3D to kCCDirectorProjection2D it started working fine.

I want to know what exactly does kCCDirectorProjection2D/kCCDirectorProjection3D do? Will changing the default setting cause any problems?

Thanks
Abhinav

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:39:39+00:00Added an answer on May 31, 2026 at 5:39 am

    3D Projection (default):

    • uses OpenGL perspective projection with a fixed camera position and viewpoint
    • Nodes are drawn in the order they are added to the node hierarchy. You can influence the draw order via the zOrder property. zOrder is the same as z in addChild:z:.

    enter image description here

    Looking at the picture you’ll have to imagine that your nodes are all drawn at the same depths, for example directly on the back plane. Therefore they all appear at the same size. Correct overlapping of nodes is achieved merely by rendering each node in a certain order.

    You can still change the true OpenGL rendering depth of nodes via vertexZ but it is not recommended in 3D projection because it will have the effect of nodes being rendered slightly offset from their position due to the 3D projection.

    2D Projection:

    • uses OpenGL orthogonal projection
    • Nodes are drawn in order of vertexZ property which takes precedence over zOrder.
    • Changing vertexZ also affects the size of nodes. If you do change vertexZ you will have to enable depth buffering in EAGLView for correct rendering. This is most often used to render overlapping tiles in isometric tilemaps correctly.
    • You can’t use 2D Projection with cocos3d.
    • CCCamera will behave differently.
    • 3D, Grid and Camera actions (page turn, waves, etc.) do not work correctly or behave differently in 2D Projection, or may even reset to 3D Projection.

    enter image description here

    With 2D projection you can now move sprites at any depth using vertexZ without the node position being offset. However, unless you enable depth buffering, your nodes will appear smaller or larger depending on their vertexZ property.

    If you don’t change the vertexZ property of any node, 2D Projection should give identical results to 3D Projection. However some nodes or actions may require 3D Projection to work correctly.

    Check the link at the end of this sentence if you want to know all the gnarly details about OpenGL projection matrices.

    Both projections have the same performance characteristics. However enabling 2D Projection without using vertexZ usually only makes sense when you’re working with tilemaps.

    Long story short: as long as your app works fine in 2D Projection and shows no bugs after thorough testing, you should be fine.

    But I’m sure this is not the correct fix for iPad Retina. For all we know until March 16th, it could be an issue that only occurs in the iPad Retina Simulator. And the issue is more likely going to be fixed by updating the retina mode function of CCDirector.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just found out that by converting PNG32 to PNG8 via Photoshop will fix
Found quite a few links related but nothing in the area of how I
Found this: Sub SurroundWithAppendTag() DTE.ActiveDocument.Selection.Text = .Append( + DTE.ActiveDocument.Selection.Text + ) End Sub But
So, I recently found this little gem. http://support.microsoft.com/kb/323308 Essentially, IE doesn't haven't Cache-Control: no-cache
I do not really now much about javascript but found on the web the
I'm currently developing a video player with support for ipad. It's more of a
I found that omnicppcomplete does not support typedef-ed struct name . I don't know
I'm trying to modify existing perl script to support geocoding. Found this module for
I tried to compile wxWidgets-2.9.2 with opengl support by calling configure --with-opengl But it
I already asked something similar, but the solution I found help me partially, so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.