As for Z-buffering, I may have to use it after all. I just need that flexibility, especially for animations that change depth a lot (missile flying through). I may have to sacrifice alpha-blending and use alpha-testing. There are some other things I can try for sorting, such as sorting only indices and using glDrawElements (so I only have to move around the indices). But I'll use the Z-buffer for now.
I'm pretty stuck right now, so I'm gonna take a break from rendering optimization and move on to the UI and gameplay. I've been sketching up some UI schemes (what to click to do what, etc.), and I think it can be made pretty minimal yet not lose the depth of X-Com's controls. Other iPhone apps, like Safari, employ some pretty slick ways of augmenting the touch controls, such as the magnifying glass for text: touch and hold your finger for 0.5 secs on some text, and a little magnifying glass comes up, and then you can drag to move the cursor between letters precisely. I'd like to do that for toggling map-layers, or maybe some context sensitive menus.
No comments:
Post a Comment