Optimum ordering for packed vertex arrays on iPhone

Posted by Pestilence on Stack Overflow See other posts from Stack Overflow or by Pestilence
Published on 2009-12-10T23:50:38Z Indexed on 2010/06/01 10:43 UTC
Read the original article Hit count: 208

Filed under:
|
|
|

Is there an optimum packing format for vertex arrays on the iPhone hardware? My textured (triangle) arrays are ordered:

  1. Vertex (x, y, z)
  2. Vertex Normal (x, y, z)
  3. Texture Coordinates (u, v)

This is the way I've always done it. Should the UVs come before the normals? I'm not sure if it matters. I'd assume that the texturing & lighting units would have a preference, but I can't find anything about it. I certainly can't detect a difference.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk